Writing a Test Suite
A test suite is a collection of test cases which is displayed in the leftmost pane in the IDE. The test suite pane can be manually opened or closed via selecting a small dot halfway down the right edge of the pane (which is the left edge of the entire Selenium-IDE window if the pane is closed).
The test suite pane will be automatically opened when an existing test suite is opened or when the user selects the New Test Case item from the File menu. In the latter case, the new test case will appear immediately below the previous test case.
Selenium-IDE does not yet support loading pre-existing test cases into a test suite. Users who want to create or modify a test suite by adding pre-existing test cases must manually edit a test suite file.
The test suite pane will be automatically opened when an existing test suite is opened or when the user selects the New Test Case item from the File menu. In the latter case, the new test case will appear immediately below the previous test case.
Selenium-IDE does not yet support loading pre-existing test cases into a test suite. Users who want to create or modify a test suite by adding pre-existing test cases must manually edit a test suite file.
A test suite file is an HTML file containing a one-column table. Each cell of each row in the <tbody>
section contains a link to a test case. The example below is of a test suite containing four test cases:
<html>
<head>
<meta http-equiv= "Content-Type" content= "text/html; charset=UTF-8" >
<title>Sample Selenium Test Suite</title>
</head>
<body>
<table cellpadding= "1" cellspacing= "1" border= "1" >
<thead>
<tr><td>Test Cases for De Anza A-Z Directory Links</td></tr>
</thead>
<tbody>
<tr><td><a href= "./a.html" >A Links</a></td></tr>
<tr><td><a href= "./b.html" >B Links</a></td></tr>
<tr><td><a href= "./c.html" >C Links</a></td></tr>
<tr><td><a href= "./d.html" >D Links</a></td></tr>
</tbody>
</table>
</body>
</html>
Note: Test case files should not have to be co-located with the test suite file that invokes them. And on Mac OS and Linux systems, that is indeed the case. However, at the time of this writing, a bug prevents Windows users from being able to place the test cases elsewhere than with the test suite that invokes them.
section contains a link to a test case. The example below is of a test suite containing four test cases:
<html>
<head>
<meta http-equiv= "Content-Type" content= "text/html; charset=UTF-8" >
<title>Sample Selenium Test Suite</title>
</head>
<body>
<table cellpadding= "1" cellspacing= "1" border= "1" >
<thead>
<tr><td>Test Cases for De Anza A-Z Directory Links</td></tr>
</thead>
<tbody>
<tr><td><a href= "./a.html" >A Links</a></td></tr>
<tr><td><a href= "./b.html" >B Links</a></td></tr>
<tr><td><a href= "./c.html" >C Links</a></td></tr>
<tr><td><a href= "./d.html" >D Links</a></td></tr>
</tbody>
</table>
</body>
</html>
Note: Test case files should not have to be co-located with the test suite file that invokes them. And on Mac OS and Linux systems, that is indeed the case. However, at the time of this writing, a bug prevents Windows users from being able to place the test cases elsewhere than with the test suite that invokes them.
No comments:
Post a Comment