-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy pathJUnitModelTest.java
220 lines (186 loc) · 4.89 KB
/
JUnitModelTest.java
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
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
package com.nordstrom.automation.selenium.junit;
import static org.junit.Assume.assumeNoException;
import org.junit.Ignore;
import org.junit.Test;
import com.nordstrom.automation.selenium.annotations.InitialPage;
import com.nordstrom.automation.selenium.core.ModelTestCore;
import com.nordstrom.automation.selenium.examples.ExamplePage;
import com.nordstrom.automation.selenium.examples.JUnitTargetRoot;
import com.nordstrom.automation.selenium.exceptions.ElementReferenceRefreshFailureException;
import com.nordstrom.automation.selenium.exceptions.ShadowRootContextException;
@InitialPage(ExamplePage.class)
public class JUnitModelTest extends JUnitTargetRoot {
@Test
public void testBasicPage() {
ModelTestCore.testBasicPage(this);
}
@Test
@Ignore
public void updateTextInputSameValue() {
ModelTestCore.updateTextInputSameValue(this);
}
@Test
@Ignore
public void updateTextInputNewValue() {
ModelTestCore.updateTextInputNewValue(this);
}
@Test
@Ignore
public void updateTextInputBoolValue() {
ModelTestCore.updateTextInputBoolValue(this);
}
@Test
@Ignore
public void updateTextInputNullValue() {
ModelTestCore.updateTextInputNullValue(this);
}
@Test
@Ignore
public void updateCheckboxSameValue() {
ModelTestCore.updateCheckboxSameValue(this);
}
@Test
@Ignore
public void updateCheckboxNewValue() {
ModelTestCore.updateCheckboxNewValue(this);
}
@Test
@Ignore
public void updateCheckboxStringValue() {
ModelTestCore.updateCheckboxStringValue(this);
}
@Test
@Ignore
public void updateCheckboxNullValue() {
ModelTestCore.updateCheckboxNullValue(this);
}
@Test
@Ignore
public void testParagraphs() {
ModelTestCore.testParagraphs(this);
}
@Test
@Ignore
public void testTable() {
ModelTestCore.testTable(this);
}
@Test
@Ignore
public void testFrameByLocator() {
ModelTestCore.testFrameByLocator(this);
}
@Test
@Ignore
public void testFrameByElement() {
ModelTestCore.testFrameByElement(this);
}
@Test
@Ignore
public void testFrameByIndex() {
ModelTestCore.testFrameByIndex(this);
}
@Test
@Ignore
public void testFrameById() {
ModelTestCore.testFrameById(this);
}
@Test
@Ignore
public void testComponentList() {
ModelTestCore.testComponentList(this);
}
@Test
@Ignore
public void testComponentMap() {
ModelTestCore.testComponentMap(this);
}
@Test
@Ignore
public void testFrameList() {
ModelTestCore.testFrameList(this);
}
@Test
@Ignore
public void testFrameMap() {
ModelTestCore.testFrameMap(this);
}
@Test
@Ignore
public void testShadowRootByLocator() {
try {
ModelTestCore.testShadowRootByLocator(this).run();
} catch (ShadowRootContextException e) {
assumeNoException(e);
}
}
@Test
@Ignore
public void testShadowRootByElement() {
try {
ModelTestCore.testShadowRootByElement(this).run();
} catch (ShadowRootContextException e) {
assumeNoException(e);
}
}
@Test
@Ignore
public void testShadowRootList() {
try {
ModelTestCore.testShadowRootList(this).run();
} catch (ShadowRootContextException e) {
assumeNoException(e);
}
}
@Test
@Ignore
public void testShadowRootMap() {
try {
ModelTestCore.testShadowRootMap(this).run();
} catch (ShadowRootContextException e) {
assumeNoException(e);
}
}
/**
* This test verifies that stale elements are automatically refreshed
* and that the search context chain gets refreshed efficiently.
*/
@Test
@Ignore
public void testRefresh() {
ModelTestCore.testRefresh(this);
}
@Test
@Ignore
public void testCssOptional() {
ModelTestCore.testCssOptional(this);
}
@Test
@Ignore
public void testXpathOptional() {
ModelTestCore.testXpathOptional(this);
}
@Test
@Ignore
public void testBogusOptional() {
ModelTestCore.testBogusOptional(this);
}
@Test
@Ignore
public void testOptionalBehavior() {
ModelTestCore.testOptionalBehavior(this);
}
@Test(expected = ElementReferenceRefreshFailureException.class)
@Ignore
public void testReferenceRefreshFailure() {
ModelTestCore.testReferenceRefreshFailure(this);
}
@Test
@Ignore
public void testShadowParagraphs() {
try {
ModelTestCore.testShadowParagraphs(this).run();
} catch (ShadowRootContextException e) {
assumeNoException(e);
}
}
}