代码改变世界

testlink 环境搭建(傻瓜版)

2011-11-24 22:23  虫师  阅读(56340)  评论(8编辑  收藏  举报

     今天抽了点时间把testlink 环境搭建了一下,一直觉得这东西不怎么先进了,因为QC \禅道 等管理工具自带测试用例管理,貌似好多公司还在用,所以下载下来熟悉一下。

     禅道:在这里给禅道打个小广告吧,记得初进公司做测试,搭建bug管理平台。听说别人说有JIRA和TD两款工具,那时才疏学浅,花了很大功夫没有成功。后然很偶然的搜索到了禅道。如果你使用或听过bugfree的话,禅道的作者就是bugfree的作者(王春生),由于各种原因春哥的bugfree被窃取了,后来用敏捷的思想开发了禅道。我加了禅道项目管理群,半天功夫就搭建好了禅道。后来,得到老大认可,把禅道在我们项目组中推广。滴水之恩......

    现在,考虑公司大局,改用redmine来管理项目,但它没有用例管理。之前,老大要换平台,然后让我了解一下JIRA和bugzilla ,我花了点时间搭建了JIRA 和bugzilla 环境,并简单的整理了一下两个平台的使用说明。现在一直觉得禅道是最好用的,也许它是我接触的第一款项目管理工具吧。跑题了,下面说testlink环境的搭建。^_^!

-----//testlink环境搭建

testlink?

TestLink 是基于web的测试用例管理系统,主要功能是测试用例的创建、管理和执行,并且还提供了一些简单的统计功能。


准备工作:

Vertrigoserv 2.24 :VertrigoServ是一套与AppServ类似的整合型WebServer。我叫傻瓜式一体环境包。  

下载地址:   http://vertrigo.sourceforge.net/ 

Testlink 1.9.1  :  http://www.teamst.org/ 

 

安装步骤:

 

1. 安装Vertrigoserv ,当然,你也可以用其它的傻瓜式一体环境包。如:appservXAMPP

2. 将下载的testlink文件解压,放到....\VertrigoServ\www\目录下面

3. 启动server 服务,打开浏览器,输入:http://lcoalhost   如果可打开服务,那么说明没有端口冲突。

 

配置testlink

 

在浏览器输入:http;//lcoalhost/testlink

 

第一步:如果是第一次安装的话,我们这里选择new installation

第二步:Acceptance of License(接受许可)

提示我们是否接受协议。在I agree to the rerms set out in this license 前面复选框打勾,点击“Continue”按钮。

第三步:Verification of System and configuration requirements (检验系统和配置要求)

上面会给出一个警告:

Notice:Undefined index: type in D:\Program Files\VertrigoServ\www\testlink\install\installCheck.php on line 41

如果在页面最下方有:Your system is prepared for TestLink configuration (no fatal problem found).  提示,那么点击左侧的按钮“Continue

 

第四步:Definition of DB access (数据库访问的定义)

这里我们需要注意的选项:

 Set an existing database user with administrative rights (root):(设置一个数据库管理权限)

填写我们数据库的用户名和密码。

This user requires permission to create databases and users on the Database Server.
These values are used only for this installation procedures, and is not saved

用户需要在数据库服务器上创建数据库和用户的权限。这些值仅用于此安装程序,并且不保存 。

 

Define database User for Testlink access(定义Testlink访问数据库用户

 

This user will have permission only to work on TestLink database and will be stored in TestLink configuration. All TestLink requests to 

the Database will be done with this user.

此用户将只允许工作testlink数据库和将存储在testlink配置。所有testlink请求的数据库将完成这个用户。

 

填写完用户信息后,点击页面底部“process TestLink Setup!”按钮

 

遇到的两个错误:

错误一:

PHP Warning: date(): 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 ‘UTC’ for ’8.0/no DST’ instead in

解决办法:

出入格林威治标准时间和北京时间大概差8个小时左右,我们可以按照下面的方法解决:

在php.ini中设置date.timezone的值为PRC,设置好以后的为:date.timezone=PRC,同时取消这一行代码的注释,即去掉前面的分号就可以了。


错误二:

当用户登录后(使用admin/admin登录)

页面上面为会安全提示,如下:

There are security warnings for your consideration. See details on file: D:\Program files\VertrigoServ

\www\testlink\logs\config_check.txt. 

To disable any reference to these checkings, 

set $tlCfg->config_check_warning_mode = 'SILENT'; 

 

   解决办法:

....\VertrigoServ\www\testlink\ 根目录下找到config.inc.php 文件打开,

$tlCfg->config_check_warning_mode = 'FILE';

改为:

$tlCfg->config_check_warning_mode = 'SILENT';

 

testlink使用:

关于testlink的使用,在网上找到了一份非常好的文档,所以,这里没必要讲解了。把链接贴出。

http://www.ossxp.com/doc/testlink/admin_guide/admin_guide.html#id6 

 

ps: selenium自动化测试工具近期是没什么时间学习和写笔记了,希望千万别它弄成个太监了。




Web Page Counters
Computer Desks