度过了一个冬眠,在春末夏初之际,补充自己的营养,努力学习,努力工作!

TestLink简明配置手册

上一篇 / 下一篇  2012-02-09 13:45:15 / 个人分类:testlink

51Testing软件测试网9IbWc+z `$sv(E

配置文件概述
(m"k SFQK0
     所有的配置参数都在 config.inc.php 文件以及config.inc.php 所包含的文件中. 以下是该版本配置文件的列表51Testing软件测试网 _+L@,Gm1Q
Testlink配置文件config.inc.php(在Testlink安装目录下),找到下面的位置。

RtMz ]m U0
  • config.inc.php 主配置文件, 它包含其他的配置文件. 该文件里列出了配置参数的默认值.
  • config_db.inc.php 包含访问数据库所需要的参数. 该文件在TestLink被安装或者升级时自动创建. 一般情况下, 我们不需要手动修改它.
  • custom_config.inc.php 如果想修改config.inc.php文件中的默认值, 可以在该文件中设置. 即该文件中设置的值会覆盖config.inc.php中的值. 这样做的好处是你的配置信息可以直接复制到升级之后的版本中.
  • /cfg/<bug_tracker>.cfg.php 设置缺陷跟踪工具的数据库访问参数
  • /cfg/const.inc.php 定义常量以及不允许修改的变量
  • /gui/templates/input_dimensions.conf 代替HTML输入字段属性(如 maxlength 和 size等) 的硬编码,
  • /cfg/tl_fckeditor_config.js 设置fckeditor组建的配置

51Testing软件测试网NyHk[E4VUV'j

51Testing软件测试网YSm3?j8Ay&jcvc

打开Testlink配置文件config.inc.php或custom_config.inc.php(在Testlink安装目录下),找到下面的位置。51Testing软件测试网 [%c [y k1u

l4\ B&kw%wr7m!U0(红色文字:表示需要修改的方。

GPp-W{6jr7e3We(G051Testing软件测试网-LF}w/|1c2r3jq)h

蓝色文字:对需要修改的地方的解释说明。)51Testing软件测试网D0`~(gsm*Y9`

51Testing软件测试网?l;zY:f3\ l

51Testing软件测试网Mo ['X9j)E,~:\

51Testing软件测试网U,uIwEY*A&v

// ----------------------------------------------------------------------------51Testing软件测试网$Q"_J6Og)S
/** [SMTP] */
51Testing软件测试网'k]3c!z+hu7o e

kM4y3M|y2E%G0// Developer Note:51Testing软件测试网 ~y%P;X;ft}g'D$H
// these config variable names has been choosed to maintain compatibility51Testing软件测试网&S!M.]*y*W\_
// with code taken from Mantis.
(~eS!I Hhj;n0//
#@q|bN1Rx0// SMTP server Configuration ("localhost" is enough in the most cases)
/A bTFw)R4[9\0$g_smtp_host        = 'mailserver'; # SMTP server MUST BE configured(SMTP
服务器地址,必须配置)51Testing软件测试网3F*OV0mzM^_ [c

51Testing软件测试网8p4A)gi?C(F d4u?

# Configure using custom_config.inc.php
:dh'Wvaz,V&~9dLk0$g_tl_admin_email     ='123@123.com'; # for problem/error notification
(管理员账户的邮件地址,主要接收发生的一些问题,或错误,等信息)
*K,qW*Bt\0L*@6h0$g_from_email         ='123@123.com'; # email sender
(发送邮件的邮件地址)
6N9up\$H oR\ {a0$g_return_path_email ='123@123.com';
(具体用处未知,和sender保持一致即可)51Testing软件测试网#Y(~?;TY'Nvj5|2D

51Testing软件测试网1Y]T6x*v8T\/jo

# Urgent = 1, Not Urgent = 5, Disable = 0
6s+gTN9Yg m0$g_mail_priority =5;  
(发送邮件的优先级,设为551Testing软件测试网/mO$Z$bH3P

b5dm3DK.lv7s)W"l0# Taken from mantis for phpmailer config51Testing软件测试网yNB!{(h |Y
define ("SMTP_SEND",2);51Testing软件测试网4aXZ!? c}Tr
$g_phpMailer_method = SMTP_SEND;

)Y"tUb9n)l0

t h;F(AR4Zv&m f0// Configure only if SMTP server requires authentication51Testing软件测试网,[.eE,L4L{8H
$g_smtp_username    = '123'; # user
(用于发送邮件的账户的用户名)51Testing软件测试网h~xz*k$x.d'b/]
$g_smtp_password    = '123456'; # password
(用于发送邮件的账户的密码)

-D4k8LUB EdQ"} n0

!](E9e g'U8h051Testing软件测试网osDg2m y

51Testing软件测试网Iz Q:JB T

p~s9W{*MI0

Testlink汉化51Testing软件测试网Cb,l)SC8j*K Q `p,\

config.inc.phpcustom_config.inc.php文件中修改如下

9E _)iGNf0

$tlCfg->default_language = 'zh_CN';

L%ZHu1Lm J3bo0

$tlCfg->config_check_warning_mode = 'SILENT';51Testing软件测试网 lawJ$QP T


TAG:

 

评分:0

我来说两句

Open Toolbar