Testing of TestLink Print E-mail
Tuesday, 31 March 2009 11:15

This article describes using of automated set of scripts for regular regression testing of TestLink code.See also pages of our Japan test team Test Task Force .

written by  Masami Ichikawa

The purpose of automation testing is to keep TestLink's basic features work well every day. As you may know, this kind of testing is called regression or smoke test. Scripts are written in tool Selenium [3].

You can download its script from project CVS repository [1]. As you can see the directory contains 2 directories. The "paris" directory is scripts for testing and "testcases" is selenium test cases. You need both directories.

Unfortunately, the scripts depends on some bash commands so it won't be able to work in Windows environment. If you have linux environment, you would be able to run it. but I'll show you easiest way to test with selenium test case which you just need Selenium RC.

There are basic steps:

1. Get latest [1] or version tagged [2] test case from CVS.


2. You need to edit install-mysql.html. You should replace line 41 and 42 which should be your mysql login ID and password.

39 <tr>
40 <td>type</td>
41 <td>databaseloginpassword</td>
42 <td>yourdatabaseloginpassword</td>
43 </tr>

3. The test case use "http://yourserver/testlink" style url. if you want change it, you have to change every single test case files.

Basically, you should change line 13.

11 <tr>
12 <td>open</td>
13 <td>/testlink/login.php</td>
14 <td></td>
15 </tr>

if you use your public_html directory or somewhere else, you may change like this.

11 <tr>
12 <td>open</td>
13 <td>/~foobar/testlink/login.php</td>
14 <td></td>
15 </tr>

4. Delete old database if you have.

5. Run Selenium RC. the command line, for example, would be like this.

$java -jar ./selenium-server.jar -htmlSuite "*custom /usr/bin/iceweasel" "http://localhost" ./testcases/TestRunner.html ./testcases/result.html -timeout 60000


References:

[1]: http://testlink.cvs.sourceforge.net/viewvc/testlink/testing/install-test/

[2]: http://testlink.cvs.sourceforge.net/viewvc/testlink/testing/install-test/testcases/?pathrev=testcase_for_TL1_8_0

[3] Sellenium pages

Last Updated on Tuesday, 31 March 2009 11:22