现在的位置: 首页 > 综合 > 正文

Selenium 日积月累 (更新至2006-10-9)

2012年06月25日 ⁄ 综合 ⁄ 共 1837字 ⁄ 字号 评论关闭
2006-10-9

已经解决的问题:

1.How to write the test script and test suite in Selenium?

 1 The example of Test Suite
 2 
 3 
 4 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
 5 <html>
 6   <head>
 7     <meta http-equiv="content-type" content="text/html; charset=windows-1250">
 8     <meta name="generator" content="PSPad editor, www.pspad.com">
 9     <title>
10     </title>
11   </head>
12   <body>
13 
14     <table id="suiteTable"    cellpadding="1"            cellspacing="1"            border="1"            class="selenium">
15       <tbody>
16 
17         <tr>
18           <td>
19             <b>the suite's name</b>
20           </td>
21         </tr>
22 
23         <tr>
24           <td>
25             <href="the_script_file.html">the script's name</a>
26           </td>
27         </tr>
28 
29       </tbody>
30     </table>
31 
32   </body>
33 </html>

 1 The example of Test Script
 2 
 3 
 4 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
 5 <html>
 6   <head>
 7     <meta http-equiv="content-type" content="text/html; charset=windows-1250">
 8     <meta name="generator" content="PSPad editor, www.pspad.com">
 9     <title>
10     </title>
11   </head>
12   <body>
13 
14     <table cellpadding="1" cellspacing="1" border="1">
15       <tbody>
16 
17         <tr>
18           <td rowspan="1" colspan="3">
19             the scripts name
20             <br>
21           </td>
22         </tr>
23 
24         <tr>
25           <td>
26             command
27           </td>
28           <td>
29             the first argument
30           </td>
31           <td>
32             the second argument
33           </td>
34         </tr>
35 
36       </tbody>
37     </table>
38 
39   </body>
40 </html>

2.Run test case in multi-window mode.
3.Auto run the test suite.
4.The normal feature in Selenium Test Runner.

尚未解决的问题:

1.What's SetUp and TearDown?
2.How to implement and user the Continuous Integration?

抱歉!评论已关闭.