您的位置:首页 > 其它

安装 testlink-1.9.4(wamp) ,并与 mantis 集成问题汇总

2013-09-14 09:02 597 查看
转自:http://wenku.baidu.com/view/c3f4e630376baf1ffc4fad45.html

1. Read/write permissions报错

问题:

Checking if /var/testlink/logs/ directory exists [S] </B<< td> Failed! Checking if /var/testlink/upload_area/ directory exists [S] </B<< td> Failed!

解决方法:

修改config.inc.php文件:

testlinkDir表示安装目录路径,本次安装为 D:/wamp/www/testlink-1.9.4

//$tlCfg->log_path = '/var/testlink/logs/'; /* unix example 注释掉该句,添加如下内容*/ $tlCfg->log_path = 'testlinkDir/logs/';

//$g_repositoryPath = '/var/testlink/upload_area/'; /* unix example 注释掉该句,添加如下内容*/

$g_repositoryPath = 'testlinkDir/upload_area/';

2. 更改导入测试套件和测试用例文件大小

a. 打开config.inc.php,查找$tlCfg->import_file_max_size_bytes,将后面的数据‘409600’

改为期望的数据值。 b. $tlCfg->import_max_row = '10000' 是导入文件一行的大小限制。

3. 禁用TestLink安全警告输出

修改config.inc.php文件:

将$tlCfg->config_check_warning_mode中'FILE'改为' SILENT';

4. 禁止新用户注册

打开config.inc.php,找到$tlCfg->user_self_signup ,将其后true改为false,在登录界面便取消了New User链接。

5. 解决结果查看中TestLink图表显示乱码问题

a. 将下载或从Windows中提取到的字体SIMYOU.TTF拷贝到Testlink中的Pchart的字体

目录,路径为: ..\testlink\third_party\pchart\Fonts 注:若是下载的字体,需要将字体文件拷贝到c:/windows/fonts文件夹目录下

b. 修改config.inc.php:将

$tlCfg->charts_font_path = TL_ABS_PATH . “third_party/pchart/Fonts/tahoma.ttf”; 中的字体重新设置:

$tlCfg->charts_font_path = “c:/windows/fonts/SIMYOU.TTF“;

6. TestLink时区问题

TestLink服务器时间和北京时间差8个小时左右,可按照下面的方法解决:

a. 在php.ini(在apache/bin目录下)中设置date.timezone的值为PRC,设置好以后的

为:date.timezone=PRC b. 同时取消这一行代码的注释,即去掉前面的分号就可以了; c. 重启Apache服务器。

7. 邮件配置

修改config.inc.php文件红色标注部分

// ---------------------------------------------------------------------------- /* [SMTP] */ /**

* @var string SMTP server name or IP address ("localhost" should work in the most cases) * Configure using custom_config.inc.php * @uses lib/functions/email_api.php */

$g_smtp_host = 'mail.XXX.com.cn'; # SMTP server MUST BE configured

# Configure using custom_config.inc.php

$g_tl_admin_email = ' Testlink@mail.XXX.com.cn '; # for problem/error notification $g_from_email = ' Testlink@mail.XXX.com.cn '; # email sender $g_return_path_email = ' Testlink@mail.XXX.com.cn '; /**

* Email notification priority (low by default) * Urgent = 1, Not Urgent = 5, Disable = 0

**/

$g_mail_priority = 5; /**

* Taken from mantis for phpmailer config * select the method to mail by:

* PHPMAILER_METHOD_MAIL - mail() * PHPMAILER_METHOD_SENDMAIL - sendmail * PHPMAILER_METHOD_SMTP - SMTP */

$g_phpMailer_method = PHPMAILER_METHOD_SMTP;

/** Configure only if SMTP server requires authentication */ $g_smtp_username = 'Testlink@mail.XXX.com.cn'; # user $g_smtp_password = '123456'; # password

/**

* This control the connection mode to SMTP server. * Can be '', 'ssl','tls'

* @global string $g_smtp_connection_mode */

$g_smtp_connection_mode = ''; /**

* The smtp port to use. The typical SMTP ports are 25 and 587. The port to use * will depend on the SMTP server configuration and hence others may be used. * @global int $g_smtp_port

*/

$g_smtp_port = 25;

// ----------------------------------------------------

8. 与mantis集成

主页>产品管理>Issue Tracker Management,添加一个Issue Tracker(点击“Show configuration example”可弹出示例,如果不能弹出,去lib/issuetrackerintegration/目录中相关文档中找public static function getCfgTemplate()函数)。

主页>产品管理>测试项目管理中,项目编辑页面选择缺陷跟踪系统。

如果在添加缺陷跟踪系统之前添加的项目,这个地方是空的,执行用例时看不出效果。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: