TestLink环境搭建

来源:互联网 发布:软件类型分类 编辑:程序博客网 时间:2024/06/05 08:44

项目组比较小,所以一直采用xls来管理测试用例,但是随着用例越来越多,感觉excel不是很适用,所以就找了一下有没有什么轻量级的测试用例管理系统,然后就发现了testlink。

在自己的机器上搭建了环境,现在说下一些注意事项。

环境: win7,32位


前置条件:

1. testlink下载 : http://jaist.dl.sourceforge.net/project/testlink/TestLink 1.9/TestLink 1.9.10/testlink-1.9.10.tar.gz
2. mysql 下载:http://cdn.mysql.com/Downloads/MySQLInstaller/mysql-installer-community-5.6.17.0.msi
3. apache+php相关参见php+apache: http://blog.csdn.net/close_marty/article/details/38016037

mysql下载完成并安装,testlink下载到本地,解压即可,无需安装。

mysql安装过程中的注意事项:

1、Server Configuration Type
Config Type 下拉列表项用来配置当前服务器的类型。选择哪种服务器将影响到MySQL Configuration Wizard(配置向导)对内存、硬盘和过程或使用的决策,可以选择如下所示的
3种服务器类型:
(1)Developer Machine(开发机器):该选项代表典型个人用桌面工作站。假定机器上运行着多个桌面应用程序。将MySQL服务器配置成使用最少的系统资源。 

(2)Server Machine(服务器):该选项代表服务器,MySQL服务器可以同其它应用程序一起运行,例如FTP、email和web服务器。MySQL服务器配置成使用适当比例的系统资源。 

(3)Dedicated MySQL Server Machine(专用MySQL服务器):该选项代表只运行MySQL服务的服务器。假定运行没有运行其它应用程序。MySQL服务器配置成使用所有可用系统资源。
作为初学者,选择“Developer Machine”(开发者机器)已经足够了,这样占用系统的资源不会很多。
2、Enable TCP/IP Networking
左边的复选框中可以启用或禁用TCP/IP网络,并配置用来连接MySQL服务器的端口号,默认情况启用TCP/IP网络,默认端口为3306。要想更改访问MySQL使用的端口,直接在文本输入框中输入新的端口号即可,但要保证新的端口号没有被占用。


testlink配置问题:

1. Read/write permissions 中出现错误:

Checking if /var/testlink/logs/ directory exists [S]Failed!Checking if /var/testlink/upload_area/ directory exists [S]Failed!

解决方法:

找到 testlink目录下的config.ini.php文件,修改两个地方:

a. $tlCfg->log_path 修改为 'D:\Apache\Apache24\htdocs\testlink\logs'

$g_repositoryPath 修改为 'D:\Apache\Apache24\htdocs\testlink\upload_area'


2. 警告:Warning: strftime(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. in D:\Apache\Apache24\htdocs\testlink\config.inc.php on line 785

解决方法:

修改php.ini中的 date.timezone = PRC


3.使用过程中发现警告:

  • 你需要注意一些安全警告. 查看详细信息在文件: D:\Apache\Apache24\htdocs\testlink\logsconfig_check.txt. 要禁用警告输出,设置 $tlCfg->config_check_warning_mode = 'SILENT';
按要求设置即可,修改config_check_warning_mode  为SILENT












0 0
原创粉丝点击