TestLink學習二:Windows搭建TestLink環境


環境准備

  搭建php5.4.39+apache2.2+mysq5.5.28l環境

  (可參考http://www.cnblogs.com/yangxia-test/p/4414161.html)

 

(注意:testlink1.9.13要求php5.4以上.)

 

一、Testlink環境搭建

下載你需要用的TestLink版本,本文的TestLink的版本是1.9.13,下載地址:http://sourceforge.net/projects/testlink/files/TestLink%201.9/TestLink%201.9.13/

下載之后,在windows下,發現該文檔的打包方式是Linux下的方式Testlink1.9.13.tar.gz,用Winzip工具解壓就可以看到Testlink1.9.13.tar.gz--->Testlink1.9.13.tar--->TestLink1.9.13,將最后一層重命名為testlink

1、 將”testlink”文件夾復制到”D:\php\”(php的安裝目錄)目錄下;

注意: 將后面的版本號去掉,TestLink1.9.13變成testlink

2、打開IE瀏覽器,輸入:http://IP地址:端口號/testlink(如:http://localhost/testlink); 

3、打開頁面后,點擊“New installation”

4、進入安裝頁面,這個頁面要檢查一些相關配置環境。只管read/write permissions欄是否有failed。在頁面中點擊“new installation”;    

注意:此步驟如如果報Checking if /var/testlink/logs/ directory exists [S] </B<< td>    Failed!
        Checking if /var/testlink/upload_area/ directory exists [S] </B<< td>  Failed!

  修改D:\php\testlink\ config.inc.php文件:

//$tlCfg->log_path = '/var/testlink/logs/'; /* unix example  注釋掉該句,
添加如下內容
$tlCfg->log_path = 'testlinkDir/logs/';

 
//$g_repositoryPath = '/var/testlink/upload_area/';  /* unix example 注釋掉該句,
添加如下內容
$g_repositoryPath = 'testlinkDir/upload_area/';

注意:testlinkDir 表示安裝目錄路徑

 

5、再刷新,如果通過后,就可以進行安裝了

database type選擇MYSQL、database host填寫localhost。database name 填寫testlink .

填寫MYSQL數據庫用戶名和密碼
  Database login: root
  Database password: *******

填寫testlink數據庫的登錄帳號和密碼
  testlink DB login: testlink
  testlink DB password: ******

上述參數配置好后,點擊頁面中【Process Tesklink Setup】按鈕;當出現以下頁面提示時,表示配置成功;

二、登錄使用

1、登錄

安裝好之后,在http://localhost/testlink/login.php登錄頁面使用的登錄名和密碼,默認是admin/admin

 

2、漢化

解決方案:

1)htdocs\testlink目錄下修改文件config.inc.php

將$tlCfg->default_language = 'en_GB';
改為
/* [LOCALIZATION] */
$tlCfg->default_language = 'zh_CN';

2)登錄TestLink,點擊My SettingS,可以查看personal data,其中的locale選擇Chinese Simplified,點擊save.此時頁面為中文的.

 

3、當用戶登錄后(使用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';
改為
/* [LOGGING] */
$tlCfg->config_check_warning_mode = 'SILENT';

 

4、禁止用戶注冊

打開config.inc.php,找到$tlCfg->user_self_signup ,將其后true改為false,在登錄界面便取消了New User鏈接。

 

環境已經基本搭建好了,局域網的其它機器也可以正常訪問,接下來就是學習如何使用它了,加油!


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM