1 | <?xml version="1.0" encoding="UTF-8"?> |
---|
2 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> |
---|
3 | <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> |
---|
4 | <head profile="http://selenium-ide.openqa.org/profiles/test-case"> |
---|
5 | <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> |
---|
6 | <link rel="selenium.base" href="" /> |
---|
7 | <title>Register and logout</title> |
---|
8 | </head> |
---|
9 | <body> |
---|
10 | <table cellpadding="1" cellspacing="1" border="1"> |
---|
11 | <thead> |
---|
12 | <tr><td rowspan="1" colspan="3">Register and logout</td></tr> |
---|
13 | </thead><tbody> |
---|
14 | <tr> |
---|
15 | <td>open</td> |
---|
16 | <td>/</td> |
---|
17 | <td></td> |
---|
18 | </tr> |
---|
19 | <tr> |
---|
20 | <td>click</td> |
---|
21 | <td>link=Register</td> |
---|
22 | <td></td> |
---|
23 | </tr> |
---|
24 | <tr> |
---|
25 | <td>selectFrame</td> |
---|
26 | <td>galaxy_main</td> |
---|
27 | <td></td> |
---|
28 | </tr> |
---|
29 | <tr> |
---|
30 | <td>store</td> |
---|
31 | <td>javascript{Math.round( Math.random() * 100000000000 )}</td> |
---|
32 | <td>username</td> |
---|
33 | </tr> |
---|
34 | <tr> |
---|
35 | <td>type</td> |
---|
36 | <td>email</td> |
---|
37 | <td>test${username}@test.com</td> |
---|
38 | </tr> |
---|
39 | <tr> |
---|
40 | <td>type</td> |
---|
41 | <td>password</td> |
---|
42 | <td>test</td> |
---|
43 | </tr> |
---|
44 | <tr> |
---|
45 | <td>type</td> |
---|
46 | <td>confirm</td> |
---|
47 | <td>test</td> |
---|
48 | </tr> |
---|
49 | <tr> |
---|
50 | <td>clickAndWait</td> |
---|
51 | <td>//input[@value='Create']</td> |
---|
52 | <td></td> |
---|
53 | </tr> |
---|
54 | <tr> |
---|
55 | <td>type</td> |
---|
56 | <td>password</td> |
---|
57 | <td>testest</td> |
---|
58 | </tr> |
---|
59 | <tr> |
---|
60 | <td>verifyTextPresent</td> |
---|
61 | <td>Please use a password of at least 6 characters</td> |
---|
62 | <td></td> |
---|
63 | </tr> |
---|
64 | <tr> |
---|
65 | <td>type</td> |
---|
66 | <td>confirm</td> |
---|
67 | <td>test</td> |
---|
68 | </tr> |
---|
69 | <tr> |
---|
70 | <td>clickAndWait</td> |
---|
71 | <td>//input[@value='Create']</td> |
---|
72 | <td></td> |
---|
73 | </tr> |
---|
74 | <tr> |
---|
75 | <td>verifyTextPresent</td> |
---|
76 | <td>Passwords do not match</td> |
---|
77 | <td></td> |
---|
78 | </tr> |
---|
79 | <tr> |
---|
80 | <td>type</td> |
---|
81 | <td>password</td> |
---|
82 | <td>testtest</td> |
---|
83 | </tr> |
---|
84 | <tr> |
---|
85 | <td>type</td> |
---|
86 | <td>confirm</td> |
---|
87 | <td>testtest</td> |
---|
88 | </tr> |
---|
89 | <tr> |
---|
90 | <td>clickAndWait</td> |
---|
91 | <td>//input[@value='Create']</td> |
---|
92 | <td></td> |
---|
93 | </tr> |
---|
94 | <tr> |
---|
95 | <td>verifyTextPresent</td> |
---|
96 | <td>Now logged in as test${username}@test.com</td> |
---|
97 | <td></td> |
---|
98 | </tr> |
---|
99 | <tr> |
---|
100 | <td>selectFrame</td> |
---|
101 | <td>relative=up</td> |
---|
102 | <td></td> |
---|
103 | </tr> |
---|
104 | <tr> |
---|
105 | <td>click</td> |
---|
106 | <td>link=Logout</td> |
---|
107 | <td></td> |
---|
108 | </tr> |
---|
109 | <tr> |
---|
110 | <td>verifyTextPresent</td> |
---|
111 | <td>Logged in as test${username}@test.com</td> |
---|
112 | <td></td> |
---|
113 | </tr> |
---|
114 | <tr> |
---|
115 | <td>selectFrame</td> |
---|
116 | <td>galaxy_main</td> |
---|
117 | <td></td> |
---|
118 | </tr> |
---|
119 | <tr> |
---|
120 | <td>verifyTextPresent</td> |
---|
121 | <td>You are no longer logged in.</td> |
---|
122 | <td></td> |
---|
123 | </tr> |
---|
124 | <tr> |
---|
125 | <td>selectFrame</td> |
---|
126 | <td>relative=up</td> |
---|
127 | <td></td> |
---|
128 | </tr> |
---|
129 | <tr> |
---|
130 | <td>verifyTextPresent</td> |
---|
131 | <td>Login</td> |
---|
132 | <td></td> |
---|
133 | </tr> |
---|
134 | |
---|
135 | </tbody></table> |
---|
136 | </body> |
---|
137 | </html> |
---|