Fork me on GitHub

testlink的学习

TestLink

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

testlink这类工具一般都用于在服务器端,所以博主偏重讲下linux下的testlink的安装配置。

安装

  1. 从网上下载testlink的压缩包,将安装包解压,放到xampp的htdocs目录下,改名为testlink。
  2. 启动Apache,浏览器打开testlink,点击New installation,选择协议,点击下一步:

    1
    http://ip/testlink
  3. continue然后配置mysql,安装成功,登录testlink,默认用户名/密码为admin/admin

注意

中间配置可能会有警告,对其安装并没有影响,如果有需要可以修改篇配置来消掉警告。

1
2
3
4
5
6
Maximun Session Idle Time before Timeout :shot.consider to extend
//配置文件中找到对应值调大
Checking max.execution time(Parameter max_execution_time) 30 seconds –we suggest 120 seconds in order to manage hundred of test cases
//配置文件中找到对应值调大
Checking maximal allowed memory (Parameter memory_limit)
//配置文件中找到对应值调大

安装

  1. 在服务器上直接下载testlink压缩包,或在Windows上通过远程工具将下载好的testlink压缩包传到服务器。也可以在服务器上直接通过wget命令下载。

  2. 解压,然后将其移至Apache工作目录/var/www/html/文件夹下,重命名为testlink:

    1
    2
    tar -zxvf testlink-1.9.14.tar.gz
    mv testlink-1.9.14 /var/www/html/testlink
  3. 在浏览器打开http://ip/testlink

  4. 警告和错误信息处理:(操作后都必须要重启Apache)
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    警告信息:
    Maximum Session Idle Time before Timeout
    24 minutes and 0 seconds - (Short. Consider to exten
    d.)
    解决:修改php.ini文件
    session.gc_maxlifetime = 3600

    警告信息:
    Checking max. execution time (Parameter max_execution_time)
    30 seconds - We suggest 120 seconds in order to manage hundred of test cases (edit php.ini)
    解决:
    修改php.ini文件
    max_execution_time = 12Checking LDAP libraryFailed! LDAP library not enabled. LDAP authentication cannot be used. (default internal authentication will works)

    警告信息:Checking if /var/testlink/logs/ directory exists [S]
    Failed!
    Checking if /var/testlink/upload_area/ directory exists [S]
    解决:
    修改/testlink/config_inc.php文件
    log_path = '/var/www/html/testlink/logs/';
    $g_repositoryPath = '/var/www/html/testlink/upload_area/';
    然后检查/var/www/html/testlink/下是否有logs文件夹和upload_area文件夹,没有则创建。
    检查这两个文件夹的权限,均赋权777
    chmod 777 logs/
    chmod 777 upload_area/

  1. 在浏览器中直接输入地址访问登录:
    1
    http://ip/testlink/

默认登录账号/密码为:admin/admin

配置

1
2
3
4
5
6
警告信息:
There are security warnings for your consideration. See details on file: C:/xampp/htdocs/testlink/logs/config_check.txt. To disable any reference to these checkings, set $tlCfg->config_check_warning_mode = 'SILENT';
解决:
vim /var/www/html/testlink/config.inc.php
将$tlCfg->config_check_warning_mode = 'FILE';修改为:
$tlCfg->config_check_warning_mode = 'SILENT';
-------------本文结束感谢您的阅读-------------
如果您对博主的原创满意,欢迎您继续支持下博主~