-
Notifications
You must be signed in to change notification settings - Fork 3.6k
/
AddUserAddressZipNullTest.html
104 lines (103 loc) · 1.96 KB
/
AddUserAddressZipNullTest.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>AddUserAddressZipNullTest</title>
</head>
<body>
<table cellpadding="1" cellspacing="1" border="1">
<thead>
<tr><td rowspan="1" colspan="3">AddUserAddressZipNullTest</td></tr>
</thead><tbody>
<tr>
<td>open</td>
<td>/web/guest/home/</td>
<td></td>
</tr>
<tr>
<td>waitForVisible</td>
<td>link=Control Panel</td>
<td>Control Panel</td>
</tr>
<tr>
<td>clickAtAndWait</td>
<td>link=Control Panel</td>
<td>Control Panel</td>
</tr>
<tr>
<td>clickAtAndWait</td>
<td>link=Users and Organizations</td>
<td>Users and Organizations</td>
</tr>
<tr>
<td>type</td>
<td>//input[@id='_125_keywords']</td>
<td>selen01</td>
</tr>
<tr>
<td>clickAtAndWait</td>
<td>//input[@value='Search']</td>
<td>Search</td>
</tr>
<tr>
<td>clickAtAndWait</td>
<td>//td[2]/a</td>
<td>User Name</td>
</tr>
<tr>
<td>waitForVisible</td>
<td>//a[@id='_125_addressesLink']</td>
<td>Addresses</td>
</tr>
<tr>
<td>assertPartialText</td>
<td>//a[@id='_125_addressesLink']</td>
<td>Addresses</td>
</tr>
<tr>
<td>clickAt</td>
<td>//a[@id='_125_addressesLink']</td>
<td>Addresses</td>
</tr>
<tr>
<td>waitForVisible</td>
<td>//input[@id='_125_addressStreet1_0']</td>
<td></td>
</tr>
<tr>
<td>type</td>
<td>//input[@id='_125_addressStreet1_0']</td>
<td>12345 Test Street</td>
</tr>
<tr>
<td>select</td>
<td>//select[@id='_125_addressCountryId0']</td>
<td>label=United States</td>
</tr>
<tr>
<td>type</td>
<td>//input[@id='_125_addressZip0']</td>
<td></td>
</tr>
<tr>
<td>type</td>
<td>//input[@id='_125_addressCity0']</td>
<td>test city</td>
</tr>
<tr>
<td>clickAndWait</td>
<td>//input[@value='Save']</td>
<td>Save</td>
</tr>
<tr>
<td>assertText</td>
<td>xPath=(//div[@class='portlet-msg-error'])[1]</td>
<td>Your request failed to complete.</td>
</tr>
<tr>
<td>assertText</td>
<td>xPath=(//div[@class='portlet-msg-error'])[2]</td>
<td>Please enter a valid postal code.</td>
</tr>
</tbody></table>
</body>
</html>