testlink 安装方法

所需软件:

testlink-1.9.13.tar.gz

xampp-linux-x64-5.6.8-0-installer.run

1、将软件放到tmp目录下
cd /tmp
chmod 755 xampp-linux-x64-5.6.8-0-installer.run
./xampp-linux-x64-5.6.8-0-installer.run
安装时数据库密码输入为空
XAMPP会安装在/opt/lampp目录下。

使用命令启动lampp:

/opt/lampp/lampp start



2、开放80端口
/sbin/iptables -I INPUT -p tcp --dport 8080 -j ACCEPT(开放80端口)
/etc/rc.d/init.d/iptables save(保存开放配置)
/etc/init.d/iptables restart(重启防火墙)
chkconfig iptables on(自启动开启指定端口)

3、修改xmmapp访问权限
vi /opt/lampp/etc/extra/httpd-xampp.conf
:set nu 显示所有行号
注释掉62行 Require local

4、将testlink-1.9.13.tar.gz 解压到 /opt/lampp/htdocs 目录下
tar -zxvf testlink-1.9.13.tar.gz -C /opt/lampp/htdocs
解压后重命名目录testlink-1.9.13为testlink

5、添加文件夹,并赋予文件夹读写权限
/var/testlik/logs
/var/testlik/uploa_area

6、访问http://172.0.10.21/testlink进行初次安装
配置为数据库登录:root 密码空,管理员admin admin

7、在/opt/lampp/htdocs/testlink下创建文件config_db.inc.php
复制提示的信息
<?php
// Automatically Generated by TestLink Installer - Wed, 05 Aug 15 08:21:28 +0200
define('DB_TYPE', 'mysql');
define('DB_USER', 'admin');
define('DB_PASS', 'admin');
define('DB_HOST', 'localhost');
define('DB_NAME', 'testlink');
define('DB_TABLE_PREFIX', '');

8、修改testlink上传文件大小限制
vi /opt/lampp/htdocs/testlink/config.inc.php
:set nu 显示所有行号

/$tlCfg->import_file_max_size_bytes  找到字符串
$tlCfg->import_file_max_size_bytes值为2097152       (2M)
$tlCfg->import_max_row值为100000

 配置邮件通知

vi /opt/lampp/htdocs/testlink/config.inc.php

更改[SMTP]下的内容

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

$g_tl_admin_email = 'xxx@xxx.com'; # for problem/error notification
$g_from_email = 'xxx@xxx.com'; # email sender
$g_return_path_email = 'xxx@xxx.com';

$g_smtp_username = 'xxx'; # user
$g_smtp_password = 'xxx'; # password

 $g_smtp_port = 25;

--------------------------------参考资料---------------------------------------------------

大家在使用testlink导入测试时,可能会遇到由于上传的文件太大,而不能上传的现象。当然建议大家在导入用例或者上传文件时,不要上传过大的文件,因为这样的速度确实非常慢。可是由于特殊的原因我们必须要导入或者上传大文件时怎么办呢?
这里主要修改两个参数:
1、打开文件config.inc.php,找到
$tlCfg->import_file_max_size_bytes = '409600';// in bytes
$tlCfg->import_max_row = '10000'; // in chars
修改你要的大小

2、修改完上面的参数之后,还是不可以的,因为还要受到php中参数的限制,php默认上传文件的大小是2M,我们需要修改php中的参数:
打开php.ini(文件的位置在linux中位于 /etc/目录下),修改max_filesize为8M
; Maximum allowed size for uploaded files.
upload_max_filesize = 8M
之后重启一下apache,这样我们就可以上传大文件了!

原文地址:https://www.cnblogs.com/txqz/p/4704975.html