安装 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()函数)。
主页>产品管理>测试项目管理中,项目编辑页面选择缺陷跟踪系统。
如果在添加缺陷跟踪系统之前添加的项目,这个地方是空的,执行用例时看不出效果。
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()函数)。
主页>产品管理>测试项目管理中,项目编辑页面选择缺陷跟踪系统。
如果在添加缺陷跟踪系统之前添加的项目,这个地方是空的,执行用例时看不出效果。
相关文章推荐
- Testlink和mantis的集成问题
- Testlink 安装、升级 问题解决汇总
- 【记录】安装WAMP问题汇总
- wamp集成环境安装后无法启动的问题
- mantis 安装配置问题汇总
- 解决wamp、vertrigo等集成环境安装后apache不能启动的问题
- CentOS 6.5 + Nginx 1.8.0 + PHP 5.6(with PHP-FPM) 负载均衡源码安装 之 (四)问题汇总
- linux安装MySql问题汇总
- WPF发布后在客户端通过浏览器进行安装时问题汇总
- OpenBR windows官网安装问题汇总
- Ubuntu 上R包安装问题汇总
- oracle安装及视图工具连接出现的各种问题汇总
- 安装testlink遇到的问题
- 安装wamp时 apache启动不了 非80端口占用的问题
- Android Studio 搭配 Tortoise SVN 安装问题汇总
- 安装PHP常见问题汇总
- 安装Wamp3.x遇到的问题总结
- Jenkins+Gradle实现android开发持续集成问题汇总
- mantis和testlink集成
- mac 安装问题汇总