TestLink 使用XAMPP安裝

最近由於新項目需要,建立一個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';

 

 

 

 

 

 

 

  • Create testlink database.

Shell.

 

 

 

Command

mysql -u root

Use mysql;

Create database testlink;

Use testlink

 

 

 

  1. Check from phpMyAdmin.

 

 

 

  1. Add user for testlink DB.

Privileges->Add user account. Go.

 

 

 

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

 

 

 

 

  1. Agree continue.

 

 

 

  1. Several issues.

 

 

 

  1. Update configure file.

D:\xampp\php\php.ini

Maximum Session execution Time:

 

 

 

LDAP:

;extension=php_ldap.dll

Remove”;” on the line.

 

 

 

 

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

 

 

 

  1. Database setting.

 

 

 

  1. Process TestLink Setups. Installation successfully.

 

 

 

  1. Great!!

 

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章