- add selenium testcase to cover test result submission

This commit is contained in:
ccooper%deadsquid.com 2007-12-11 16:37:02 +00:00
Родитель 2da5a49347
Коммит 4ca23a6a3c
3 изменённых файлов: 145 добавлений и 0 удалений

Просмотреть файл

@ -23,6 +23,9 @@
<tr>
<td><a target="testFrame" href="testcases/manage_test_runs_delete_test_run.html">Manage Test Runs - Delete</a></td>
</tr>
<tr>
<td><a target="testFrame" href="testcases/run_tests_add_results.html">Run Tests - Add Results</a></td>
</tr>
</table>
</body>

Просмотреть файл

@ -75,6 +75,9 @@
<td><a target="testFrame" href="testcases/manage_test_runs_delete_test_run.html">Manage Test Runs - Delete</a></td>
</tr>
<tr>
<td><a target="testFrame" href="testcases/run_tests_add_results.html">Run Tests - Add Results</a></td>
</tr>
<tr>
<td><a target="testFrame" href="testcases/manage_testdays_add.html">Manage Test Days - Add</a></td>
</tr>
<tr>

Просмотреть файл

@ -0,0 +1,139 @@
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>run_tests_add_results</title>
</head>
<body>
<table cellpadding="1" cellspacing="1" border="1">
<thead>
<tr><td rowspan="1" colspan="3">run_tests_add_results</td></tr>
</thead><tbody>
<tr>
<td>open</td>
<td>/run_tests.cgi</td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
<td>link=Firefox 3.0 Catch-All Test Run</td>
<td></td>
</tr>
<tr>
<td>type</td>
<td>build_id_new</td>
<td>2007112718</td>
</tr>
<tr>
<td>select</td>
<td>platform_new</td>
<td>label=Mac (Intel) (*)</td>
</tr>
<tr>
<td>select</td>
<td>opsys_new</td>
<td>label=Mac OS 10.4 (*)</td>
</tr>
<tr>
<td>select</td>
<td>locale</td>
<td>label=en-US</td>
</tr>
<tr>
<td>clickAndWait</td>
<td>//input[@value='Submit configuration']</td>
<td></td>
</tr>
<tr>
<td>click</td>
<td>document.form.testgroup[4]</td>
<td></td>
</tr>
<tr>
<td>click</td>
<td>document.form.subgroup_54[2]</td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
<td>Submit</td>
<td></td>
</tr>
<tr>
<td>click</td>
<td>top_all</td>
<td></td>
</tr>
<tr>
<td>click</td>
<td>link=Hide All</td>
<td></td>
</tr>
<tr>
<td>click</td>
<td>top_all</td>
<td></td>
</tr>
<tr>
<td>click</td>
<td>document.form.testresult_3972[1]</td>
<td></td>
</tr>
<tr>
<td>click</td>
<td>document.form.testresult_3973[1]</td>
<td></td>
</tr>
<tr>
<td>chooseCancelOnNextConfirmation</td>
<td></td>
<td></td>
</tr>
<tr>
<td>click</td>
<td>Submit3973</td>
<td></td>
</tr>
<tr>
<td>assertConfirmation</td>
<td>Did you intend to only submit a single test result? (Hint: There is a 'Submit All Results' button at the bottom of the page.)</td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
<td>document.form.Submit[1]</td>
<td></td>
</tr>
<tr>
<td>click</td>
<td>link=Run Tests - Your Chosen Test Run »</td>
<td></td>
</tr>
<tr>
<td>verifyText</td>
<td>//td[1]</td>
<td>Firefox 3.0 Catch-All Test Run</td>
</tr>
<tr>
<td>verifyText</td>
<td>//tr[4]/td[2]</td>
<td>Build ID: 2007112718, Platform: Mac (Intel), Operating System: Mac OS 10.4</td>
</tr>
<tr>
<td>verifyText</td>
<td>//div[3]/div/p[1]</td>
<td>You have submitted 2 test results. Thank you for your testing efforts.</td>
</tr>
<tr>
<td>verifyText</td>
<td>//div/table/tbody/tr/td[1]/strong</td>
<td>exact:Pass:</td>
</tr>
<tr>
<td>verifyText</td>
<td>//div[3]/div/table/tbody/tr/td[2]</td>
<td>2</td>
</tr>
</tbody></table>
</body>
</html>