Test Case management Tool-testlink

Source: Internet
Author: User
Tags chmod php file ssh testlink

Testlink is a web-based test case management system, the main function is the creation, management and execution of test cases, and also provides some simple statistical functions, the main functions include: test requirements management test case management test cases to test the requirements of the coverage of testing the test plan for the development of test case execution Measurement and statistics of large amounts of test data installation XAMPP

On a Mac, the terminal uses SSH to connect remotely to a Linux server:

$ ssh-p root@29.45.71.131
$ Enter password

After connecting with the Linux server, download the XAMPP installation package using the WGET-C command, and if you have a different connection, use Ps-ef|grep wget to see clearly that the server is downloading:

$ wget-c Https://sourceforge.net/projects/xampp/files/XAMPP%20Linux/7.2.0/xampp-linux-x64-7.2.0-0-installer.run

After successful download, the LS command can be used to see a file named "Xampp-linux-x64-7.2.0-0-installer.run" in the directory, before installation, you need to give the file to install the program permissions, and then you can run the Setup program:

$ chmod 755 xampp-linux-x64-7.2.0-0-installer.run
$./xampp-linux-x64-7.2.0-0-installer.run

The XAMPP commands that are commonly used under Linux are as follows:

# start XAMPP
$/opt/lampp/./lampp Start
# stop XAMPP
$/opt/lampp/./lampp Stop
# restart XAMPP
$/opt/lampp/./ LAMPP Restart
# security settings
$/opt/lampp/./lampp Secure
# Uninstall XAMPP
$ rm-rf/opt/lampp
Installing Testlink

Download the Testlink. tar.gz package using the WGET-C command:

$ wget-c https://ncu.dl.sourceforge.net/project/testlink/TestLink%201.9/TestLink%201.9.16/testlink-1.9.16.tar.gz

Extract the Testlink to the Htdocs file under the XAMPP installation directory:

$ TAR-ZXVF./testlink-1.9.16.tar.gz-c/opt/lampp/htdocs/

Open the browser, enter the URL "http://29.45.71.131/testlink-1.9.16/install/index.php" and click "New Installation" to install the Testlink:

Testlink installation Times "Checking if/var/testlink/logs/directory exists [S] failed!" and "Checking if/var/testlink/upload_area/directory exists [S] failed!
"Error, modify the config.inc.php file under Testlink:

$ vi/opt/lampp/htdocs/testlink-1.9.16/config.inc.php
into VI mode
/$TLCFG->log_path = '/var/testlink/logs/'; /* UNIX Example *
/[I]
Note:/$tlCfg->log_path = '/var/testlink/logs/';/* UNIX Example *
/Add: $TLCFG- Log_path = ' [Install directory path]/testlink/logs/';
[ESC]
/$g _repositorypath = '/var/testlink/upload_area/';  /* UNIX Example *
/[I]
Note: $g _repositorypath = '/var/testlink/upload_area/';  /* UNIX Example * *
add: $g _repositorypath = ' [Install directory path]/testlink/upload_area/';
[ESC]
: Wq
exit VI mode

If you re-report "Directory is writable (by user used to run webserver process)" error, you need to give Upload_area, Gui/templates_ in the Testlink directory C and Templates_c files set 777 permissions:

$ chmod 777/opt/lampp/htdocs/testlink-1.9.16/upload_area/
$ chmod 777/opt/lampp/htdocs/testlink-1.9.16/logs/
$ chmod 777/opt/lampp/htdocs/testlink-1.9.16/gui/templates_c/

Next, click "Process testlink setup!" When you configure database access in the definition of DB of Access :

            database type db
host            Testlink and database are populated with localhost on the same host, otherwise the database connection address is            The database name for the Testlink connection

Table prefix             is empty by default     , and the database admin login is the root username of the DB admin
password  root user's password, default is empty

Testlink DB login        maintains user name of Testlink database
testlink DB Passwaord    maintain user's password

When in the Configuration Database page, click "Process testlink setup!", may come out to report "Writing configuration file:failed!" Error, you need to set 777 permissions to the Testlink directory at this time:

$ chmod 777/opt/lampp/htdocs/testlink-1.9.16

When the installation is complete, the following information is displayed:

You may see the prompt text "Deprecated: ... phpmailer/phpmailerautoload.php on line 45" displayed on the page, and you need to modify the parameters:

$ vi/opt/lampp/htdocs/testlink-1.9.16/third_party/phpmailer/phpmailerautoload.php
into VI mode
/function __ AutoLoad ($classname)
[I]
modified to: function Spl_autoload_register ($classname)
[ESC]
: Wq
Exit VI Mode
Configure Testlink

Open the browser, enter the URL "http://29.45.71.131/testlink-1.9.16/", you can access the Testlink login page:

After entering the login page, enter the default user name and password, which is "admin". After successful login, click the button shown in the image below to enter the account settings:

Select Simplified Chinese and click Save:

Now configure the mailbox, to NetEase yeah mailbox as an example, open the Testlink directory under the config.inc.php file to modify the following sections:

$ vi/opt/lampp/htdocs/testlink-1.9.16/config.inc.php
into VI mode
/$g _smtp_host
[I]
$g _smtp_host        = ' smtp.yeah.net ';  # Mail server address
$g _tl_admin_email     = ' test@yeah.net ';  # Problem Error Notification mailbox
$g _from_email         = ' test@yeah.net ';  # received the sender's email address
$g _return_path_email  = ' test@yeah.net ';  # The recipient replied to the email address
$g _smtp_username    = ' test@yeah.net ';  # Fill in the Yeah email address here
$g _smtp_password    = ' 123456 ';  # Here fill in yeah email authorization password, note must not email password
$g _smtp_connection_mode = ' SSL ';  # The mode connected to the SMTP server
$g _smtp_port = 587;  # SMTP port to use
[ESC]
: Wq
exit VI mode

After the mailbox is set up, you can use Testlink password retrieval function and so on to send mail. After a new user logs in, if "There is security ... disable any reference to these checkings, set $tlCfg->config_check_warning_mode = ' S Ilent '; " Error prompt, open the config.inc.php file in the Testlink directory to modify the following sections:

$ vi/opt/lampp/htdocs/testlink-1.9.16/config.inc.php
into VI mode
/$TLCFG->config_check_warning_mode = ' FILE ';
[I]
Modified to: $TLCFG->config_check_warning_mode = ' SILENT ';
[ESC]
: Wq
exit VI mode
using Testlink

Testlink can manage multiple projects, and individual test projects are independent and cannot share data, and only admin users can set up the project. After the admin user has set up the project, the tester can do the related management work such as test requirement, test case, test plan and so on. When you first log in to the system, the page is the Project creation page:

The test project has the following properties: Name, a unique name prefix for each test project, the identifier as a prefix item description for the test case, a description of the project and a comment information to enable the product requirements feature, and if selected, the home page of the test project will display the requirements area to enable the test priority. When selected, you enable test automation in the test suite area of the home page with a "Set test case urgency" option enabled, and if selected, when you create a test case, the "Test by" drop-down selection box appears, including the "Manual" and "automatic" two option activities, and non-admin users can only "test project" in the top right corner See the active item in the drop-down selection box

After creating the project is to assign roles, the default roles in Testlink include: admin, Administrator, highest level, have all permissions leader, project responsible person, in addition to product permissions, custom field permissions, user rights, others have permission senior tester, Advanced testers, with test case management, test plan management permissions and requirements and keyword View permissions tester, testers, user-only test plan execution and view permissions guest, anonymous user, only View permissions Test Disnger, Test Designer, Edit and view test case permissions, Keyword Management permissions

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.