最近由於新項目需要,建立一個TestLink來管理測試。主要用來對測試用例的管理,多人協作。TestLink的安裝和配置都比較簡單,但是也有一些小坑需要注意。
- 官網下載XAMPP。這是TestLink需要的運行環境。如果機器沒有安裝JDK,需要先安裝最新JDK。XAMPP建議不要選擇最新的版本,會出現后面安裝中MySQL不兼容的問題(應該是TestLink的PHP和XAMPP里面的MYSQL不兼容。選擇5.6的最近版本比較好。Download XAMPP, version 5.6.XXX. Install
URL: https://www.apachefriends.org/zh_cn/index.html

- 配置XAMPP。Configure XAMPP for Testlink.
配置Apache的端口,選一個不常用的端口。Config Apache.Config->httpd.conf.

Listen 80 => Listen 8083

ServerName localhost:80 => ServerName localhost:8083
Save and Close.
- 把MYSQL加入到系統環境變量里。Add XAMPP mysql to system environment variables.
The bin path, add it to environment variables.

- 啟動 Apache, MySQL. Start Apache, MySQL, Tomcat.

- 下載安裝TestLink. 直接解壓到XAMPP安裝目錄的htdocs下面。改下testlink名字,去掉版本信息。 Download TestLink and exact to xampp subfolder htdocs.
Download URL: http://www.testlink.org/

- 配置MySQL, 為testlink創建需要的數據庫。Configure MYSQL and create testlink database.
- 建立ROOT用戶。Configure root user in Mysql.
CMD: change directory to bin folder.
Run command:

-
- Set password for root user in phpMyAdmin.
D:\xampp\phpMyAdmin
File: config.inc.php

Edit.
Set: $cfg['Servers'][$i]['auth_type'] = 'cookie';
$cfg['Servers'][$i]['password'] = 'password123';

- 重啟MySQL, 訪問phpMyAdmin頁面。Restart mysql and visit. http://localhost:8083/phpmyadmin/

- Create testlink database.
Shell.

Command
mysql -u root
Use mysql;
Create database testlink;
Use testlink

- Check from phpMyAdmin.

- Add user for testlink DB.
Privileges->Add user account. Go.

- Try installation. Browser visit: http://localhost:8083/testlink

- Agree continue.

- Several issues.

- Update configure file.
D:\xampp\php\php.ini
Maximum Session execution Time:

LDAP:
;extension=php_ldap.dll
Remove”;” on the line.

- Ignore the error for the idle time and the Postgres Database error, because here I use database Mysql not Postgres DB.
- Restart services and close browser and try installation again. OK, continue.

- Database setting.

- Process TestLink Setups. Installation successfully.

- Great!!

