|
|
|
|
113
|
|
113
|
|
114
|
window.panel(new ClassFinder<ActionNamePanel>(ActionNamePanel.class, null)).
|
114
|
window.panel(new ClassFinder<ActionNamePanel>(ActionNamePanel.class, null)).
|
115
|
textBox().enterText("test1");
|
115
|
textBox().enterText("test1");
|
|
|
116
|
+ robot().waitForIdle();
|
|
|
117
|
+
|
116
|
final JPanelFixture triggers = window.panel(
|
118
|
final JPanelFixture triggers = window.panel(
|
117
|
new ClassFinder<ActionTriggersPanel>(ActionTriggersPanel.class, null));
|
119
|
new ClassFinder<ActionTriggersPanel>(ActionTriggersPanel.class, null));
|
118
|
|
120
|
|
119
|
triggers.comboBox().selectItem("Client closed");
|
121
|
triggers.comboBox().selectItem("Client closed");
|
|
|
122
|
+ robot().waitForIdle();
|
|
|
123
|
+
|
120
|
triggers.button(JButtonMatcher.withText("Add")).requireEnabled().
|
124
|
triggers.button(JButtonMatcher.withText("Add")).requireEnabled().
|
121
|
click();
|
125
|
click();
|
|
|
126
|
+ robot().waitForIdle();
|
122
|
|
127
|
|
123
|
window.panel(new ClassFinder<ActionConditionsPanel>(ActionConditionsPanel.class, null)).
|
128
|
window.panel(new ClassFinder<ActionConditionsPanel>(ActionConditionsPanel.class, null)).
|
124
|
button(JButtonMatcher.withText("Add")).requireDisabled();
|
129
|
button(JButtonMatcher.withText("Add")).requireDisabled();
|
|
|
|
|
134
|
|
139
|
|
135
|
window.panel(new ClassFinder<ActionNamePanel>(ActionNamePanel.class, null)).
|
140
|
window.panel(new ClassFinder<ActionNamePanel>(ActionNamePanel.class, null)).
|
136
|
textBox().enterText("test1");
|
141
|
textBox().enterText("test1");
|
|
|
142
|
+ robot().waitForIdle();
|
137
|
|
143
|
|
138
|
final int items = triggers.comboBox().target.getItemCount();
|
144
|
final int items = triggers.comboBox().target.getItemCount();
|
139
|
triggers.comboBox().requireEnabled().selectItem("Channel message received");
|
145
|
triggers.comboBox().requireEnabled().selectItem("Channel message received");
|
140
|
- triggers.button(JButtonMatcher.withText("Add")).requireEnabled().
|
|
|
141
|
- click();
|
|
|
|
|
146
|
+ robot().waitForIdle();
|
|
|
147
|
+
|
|
|
148
|
+ triggers.button(JButtonMatcher.withText("Add")).requireEnabled().click();
|
|
|
149
|
+ robot().waitForIdle();
|
142
|
|
150
|
|
143
|
final JLabelFixture label =
|
151
|
final JLabelFixture label =
|
144
|
triggers.label(JLabelMatcher.withText("Channel message received"));
|
152
|
triggers.label(JLabelMatcher.withText("Channel message received"));
|
|
|
|
|
149
|
|
157
|
|
150
|
window.panel(new ClassFinder<ActionNamePanel>(ActionNamePanel.class, null)).
|
158
|
window.panel(new ClassFinder<ActionNamePanel>(ActionNamePanel.class, null)).
|
151
|
textBox().deleteText();
|
159
|
textBox().deleteText();
|
|
|
160
|
+ robot().waitForIdle();
|
|
|
161
|
+
|
152
|
triggers.button(new ClassFinder<ImageButton>(ImageButton.class, null)).
|
162
|
triggers.button(new ClassFinder<ImageButton>(ImageButton.class, null)).
|
153
|
requireDisabled();
|
163
|
requireDisabled();
|
154
|
triggers.comboBox().requireDisabled();
|
164
|
triggers.comboBox().requireDisabled();
|
155
|
window.panel(new ClassFinder<ActionNamePanel>(ActionNamePanel.class, null)).
|
165
|
window.panel(new ClassFinder<ActionNamePanel>(ActionNamePanel.class, null)).
|
156
|
textBox().enterText("test1");
|
166
|
textBox().enterText("test1");
|
|
|
167
|
+ robot().waitForIdle();
|
157
|
|
168
|
|
158
|
triggers.button(new ClassFinder<ImageButton>(ImageButton.class, null)).
|
169
|
triggers.button(new ClassFinder<ImageButton>(ImageButton.class, null)).
|
159
|
requireEnabled().click();
|
170
|
requireEnabled().click();
|
|
|
171
|
+ robot().waitForIdle();
|
160
|
|
172
|
|
161
|
for (Component comp : triggers.panel(new ClassFinder<ActionTriggersListPanel>(ActionTriggersListPanel.class,
|
173
|
for (Component comp : triggers.panel(new ClassFinder<ActionTriggersListPanel>(ActionTriggersListPanel.class,
|
162
|
null)).target.getComponents()) {
|
174
|
null)).target.getComponents()) {
|
|
|
|
|
173
|
|
185
|
|
174
|
window.panel(new ClassFinder<ActionNamePanel>(ActionNamePanel.class, null)).
|
186
|
window.panel(new ClassFinder<ActionNamePanel>(ActionNamePanel.class, null)).
|
175
|
textBox().enterText("test1");
|
187
|
textBox().enterText("test1");
|
|
|
188
|
+ robot().waitForIdle();
|
|
|
189
|
+
|
176
|
final JPanelFixture triggers = window.panel(
|
190
|
final JPanelFixture triggers = window.panel(
|
177
|
new ClassFinder<ActionTriggersPanel>(ActionTriggersPanel.class, null));
|
191
|
new ClassFinder<ActionTriggersPanel>(ActionTriggersPanel.class, null));
|
178
|
|
192
|
|
179
|
triggers.comboBox().selectItem("Channel message received");
|
193
|
triggers.comboBox().selectItem("Channel message received");
|
|
|
194
|
+ robot().waitForIdle();
|
180
|
triggers.button(JButtonMatcher.withText("Add")).requireEnabled().
|
195
|
triggers.button(JButtonMatcher.withText("Add")).requireEnabled().
|
181
|
click();
|
196
|
click();
|
|
|
197
|
+ robot().waitForIdle();
|
182
|
|
198
|
|
183
|
window.radioButton(new JRadioButtonByTextMatcher("All of the conditions are true")).
|
199
|
window.radioButton(new JRadioButtonByTextMatcher("All of the conditions are true")).
|
184
|
requireEnabled().requireSelected();
|
200
|
requireEnabled().requireSelected();
|
|
|
|
|
194
|
|
210
|
|
195
|
window.radioButton(new JRadioButtonByTextMatcher("The conditions match a custom rule")).
|
211
|
window.radioButton(new JRadioButtonByTextMatcher("The conditions match a custom rule")).
|
196
|
click().requireSelected();
|
212
|
click().requireSelected();
|
|
|
213
|
+ robot().waitForIdle();
|
197
|
window.panel(new ClassFinder<ActionConditionsTreePanel>(ActionConditionsTreePanel.class,
|
214
|
window.panel(new ClassFinder<ActionConditionsTreePanel>(ActionConditionsTreePanel.class,
|
198
|
null)).textBox(new ClassFinder<JTextField>(JTextField.class,
|
215
|
null)).textBox(new ClassFinder<JTextField>(JTextField.class,
|
199
|
null)).requireEnabled().enterText("invalid");
|
216
|
null)).requireEnabled().enterText("invalid");
|
|
|
217
|
+ robot().waitForIdle();
|
200
|
|
218
|
|
201
|
window.button(JButtonMatcher.withText("OK")).requireDisabled();
|
219
|
window.button(JButtonMatcher.withText("OK")).requireDisabled();
|
202
|
}
|
220
|
}
|
|
|
|
|
207
|
|
225
|
|
208
|
window.panel(new ClassFinder<ActionNamePanel>(ActionNamePanel.class, null)).
|
226
|
window.panel(new ClassFinder<ActionNamePanel>(ActionNamePanel.class, null)).
|
209
|
textBox().enterText("test1");
|
227
|
textBox().enterText("test1");
|
|
|
228
|
+ robot().waitForIdle();
|
210
|
final JPanelFixture triggers = window.panel(
|
229
|
final JPanelFixture triggers = window.panel(
|
211
|
new ClassFinder<ActionTriggersPanel>(ActionTriggersPanel.class, null));
|
230
|
new ClassFinder<ActionTriggersPanel>(ActionTriggersPanel.class, null));
|
212
|
|
231
|
|
213
|
triggers.comboBox().selectItem("Channel message received");
|
232
|
triggers.comboBox().selectItem("Channel message received");
|
|
|
233
|
+ robot().waitForIdle();
|
214
|
triggers.button(JButtonMatcher.withText("Add")).requireEnabled().
|
234
|
triggers.button(JButtonMatcher.withText("Add")).requireEnabled().
|
215
|
click();
|
235
|
click();
|
|
|
236
|
+ robot().waitForIdle();
|
216
|
|
237
|
|
217
|
window.panel(new ClassFinder<ActionConditionsPanel>(ActionConditionsPanel.class, null)).
|
238
|
window.panel(new ClassFinder<ActionConditionsPanel>(ActionConditionsPanel.class, null)).
|
218
|
button(JButtonMatcher.withText("Add")).requireEnabled().
|
239
|
button(JButtonMatcher.withText("Add")).requireEnabled().
|
219
|
click();
|
240
|
click();
|
|
|
241
|
+ robot().waitForIdle();
|
220
|
|
242
|
|
221
|
Pattern pattern = Pattern.compile(".+<body>(.+)</body>.+", Pattern.DOTALL);
|
243
|
Pattern pattern = Pattern.compile(".+<body>(.+)</body>.+", Pattern.DOTALL);
|
222
|
|
244
|
|
|
|
|
|
228
|
|
250
|
|
229
|
window.panel(new ClassFinder<ActionConditionEditorPanel>(ActionConditionEditorPanel.class,
|
251
|
window.panel(new ClassFinder<ActionConditionEditorPanel>(ActionConditionEditorPanel.class,
|
230
|
null)).comboBox("argument").selectItem("message");
|
252
|
null)).comboBox("argument").selectItem("message");
|
|
|
253
|
+ robot().waitForIdle();
|
231
|
|
254
|
|
232
|
matcher = pattern.matcher(window.panel(new ClassFinder<ActionConditionDisplayPanel>(ActionConditionDisplayPanel.class,
|
255
|
matcher = pattern.matcher(window.panel(new ClassFinder<ActionConditionDisplayPanel>(ActionConditionDisplayPanel.class,
|
233
|
null)).textBox(new ClassFinder<TextLabel>(TextLabel.class,
|
256
|
null)).textBox(new ClassFinder<TextLabel>(TextLabel.class,
|
|
|
|
|
237
|
|
260
|
|
238
|
window.panel(new ClassFinder<ActionConditionEditorPanel>(ActionConditionEditorPanel.class,
|
261
|
window.panel(new ClassFinder<ActionConditionEditorPanel>(ActionConditionEditorPanel.class,
|
239
|
null)).comboBox("component").selectItem("content");
|
262
|
null)).comboBox("component").selectItem("content");
|
|
|
263
|
+ robot().waitForIdle();
|
240
|
|
264
|
|
241
|
matcher = pattern.matcher(window.panel(new ClassFinder<ActionConditionDisplayPanel>(ActionConditionDisplayPanel.class,
|
265
|
matcher = pattern.matcher(window.panel(new ClassFinder<ActionConditionDisplayPanel>(ActionConditionDisplayPanel.class,
|
242
|
null)).textBox(new ClassFinder<TextLabel>(TextLabel.class,
|
266
|
null)).textBox(new ClassFinder<TextLabel>(TextLabel.class,
|
|
|
|
|
246
|
|
270
|
|
247
|
window.panel(new ClassFinder<ActionConditionEditorPanel>(ActionConditionEditorPanel.class,
|
271
|
window.panel(new ClassFinder<ActionConditionEditorPanel>(ActionConditionEditorPanel.class,
|
248
|
null)).comboBox("comparison").selectItem("contains");
|
272
|
null)).comboBox("comparison").selectItem("contains");
|
|
|
273
|
+ robot().waitForIdle();
|
249
|
|
274
|
|
250
|
matcher = pattern.matcher(window.panel(new ClassFinder<ActionConditionDisplayPanel>(ActionConditionDisplayPanel.class,
|
275
|
matcher = pattern.matcher(window.panel(new ClassFinder<ActionConditionDisplayPanel>(ActionConditionDisplayPanel.class,
|
251
|
null)).textBox(new ClassFinder<TextLabel>(TextLabel.class,
|
276
|
null)).textBox(new ClassFinder<TextLabel>(TextLabel.class,
|
|
|
|
|
255
|
|
280
|
|
256
|
window.panel(new ClassFinder<ActionConditionEditorPanel>(ActionConditionEditorPanel.class,
|
281
|
window.panel(new ClassFinder<ActionConditionEditorPanel>(ActionConditionEditorPanel.class,
|
257
|
null)).textBox().enterText("foo");
|
282
|
null)).textBox().enterText("foo");
|
|
|
283
|
+ robot().waitForIdle();
|
258
|
|
284
|
|
259
|
matcher = pattern.matcher(window.panel(new ClassFinder<ActionConditionDisplayPanel>(ActionConditionDisplayPanel.class,
|
285
|
matcher = pattern.matcher(window.panel(new ClassFinder<ActionConditionDisplayPanel>(ActionConditionDisplayPanel.class,
|
260
|
null)).textBox(new ClassFinder<TextLabel>(TextLabel.class,
|
286
|
null)).textBox(new ClassFinder<TextLabel>(TextLabel.class,
|
|
|
|
|
269
|
|
295
|
|
270
|
window.panel(new ClassFinder<ActionNamePanel>(ActionNamePanel.class, null)).
|
296
|
window.panel(new ClassFinder<ActionNamePanel>(ActionNamePanel.class, null)).
|
271
|
textBox().enterText("test1");
|
297
|
textBox().enterText("test1");
|
|
|
298
|
+ robot().waitForIdle();
|
272
|
final JPanelFixture triggers = window.panel(
|
299
|
final JPanelFixture triggers = window.panel(
|
273
|
new ClassFinder<ActionTriggersPanel>(ActionTriggersPanel.class, null));
|
300
|
new ClassFinder<ActionTriggersPanel>(ActionTriggersPanel.class, null));
|
274
|
|
301
|
|
275
|
triggers.comboBox().selectItem("Channel message received");
|
302
|
triggers.comboBox().selectItem("Channel message received");
|
|
|
303
|
+ robot().waitForIdle();
|
276
|
triggers.button(JButtonMatcher.withText("Add")).requireEnabled().click();
|
304
|
triggers.button(JButtonMatcher.withText("Add")).requireEnabled().click();
|
|
|
305
|
+ robot().waitForIdle();
|
277
|
|
306
|
|
278
|
window.button(JButtonMatcher.withText("OK")).requireEnabled();
|
307
|
window.button(JButtonMatcher.withText("OK")).requireEnabled();
|
279
|
|
308
|
|
280
|
window.panel(new ClassFinder<ActionConditionsPanel>(ActionConditionsPanel.class, null)).
|
309
|
window.panel(new ClassFinder<ActionConditionsPanel>(ActionConditionsPanel.class, null)).
|
281
|
button(JButtonMatcher.withText("Add")).requireEnabled().click();
|
310
|
button(JButtonMatcher.withText("Add")).requireEnabled().click();
|
|
|
311
|
+ robot().waitForIdle();
|
282
|
|
312
|
|
283
|
window.panel(new ClassFinder<ActionConditionEditorPanel>(ActionConditionEditorPanel.class,
|
313
|
window.panel(new ClassFinder<ActionConditionEditorPanel>(ActionConditionEditorPanel.class,
|
284
|
null)).comboBox("argument").requireEnabled();
|
314
|
null)).comboBox("argument").requireEnabled();
|
|
|
|
|
292
|
|
322
|
|
293
|
window.panel(new ClassFinder<ActionConditionEditorPanel>(ActionConditionEditorPanel.class,
|
323
|
window.panel(new ClassFinder<ActionConditionEditorPanel>(ActionConditionEditorPanel.class,
|
294
|
null)).comboBox("argument").selectItem("message");
|
324
|
null)).comboBox("argument").selectItem("message");
|
|
|
325
|
+ robot().waitForIdle();
|
295
|
window.panel(new ClassFinder<ActionConditionEditorPanel>(ActionConditionEditorPanel.class,
|
326
|
window.panel(new ClassFinder<ActionConditionEditorPanel>(ActionConditionEditorPanel.class,
|
296
|
null)).comboBox("component").requireEnabled();
|
327
|
null)).comboBox("component").requireEnabled();
|
297
|
window.panel(new ClassFinder<ActionConditionEditorPanel>(ActionConditionEditorPanel.class,
|
328
|
window.panel(new ClassFinder<ActionConditionEditorPanel>(ActionConditionEditorPanel.class,
|
|
|
|
|
302
|
|
333
|
|
303
|
window.panel(new ClassFinder<ActionConditionEditorPanel>(ActionConditionEditorPanel.class,
|
334
|
window.panel(new ClassFinder<ActionConditionEditorPanel>(ActionConditionEditorPanel.class,
|
304
|
null)).comboBox("component").selectItem("content");
|
335
|
null)).comboBox("component").selectItem("content");
|
|
|
336
|
+ robot().waitForIdle();
|
305
|
window.panel(new ClassFinder<ActionConditionEditorPanel>(ActionConditionEditorPanel.class,
|
337
|
window.panel(new ClassFinder<ActionConditionEditorPanel>(ActionConditionEditorPanel.class,
|
306
|
null)).comboBox("comparison").requireEnabled();
|
338
|
null)).comboBox("comparison").requireEnabled();
|
307
|
window.panel(new ClassFinder<ActionConditionEditorPanel>(ActionConditionEditorPanel.class,
|
339
|
window.panel(new ClassFinder<ActionConditionEditorPanel>(ActionConditionEditorPanel.class,
|
|
|
|
|
310
|
|
342
|
|
311
|
window.panel(new ClassFinder<ActionConditionEditorPanel>(ActionConditionEditorPanel.class,
|
343
|
window.panel(new ClassFinder<ActionConditionEditorPanel>(ActionConditionEditorPanel.class,
|
312
|
null)).comboBox("comparison").selectItem("contains");
|
344
|
null)).comboBox("comparison").selectItem("contains");
|
|
|
345
|
+ robot().waitForIdle();
|
313
|
window.panel(new ClassFinder<ActionConditionEditorPanel>(ActionConditionEditorPanel.class,
|
346
|
window.panel(new ClassFinder<ActionConditionEditorPanel>(ActionConditionEditorPanel.class,
|
314
|
null)).textBox().requireEnabled();
|
347
|
null)).textBox().requireEnabled();
|
315
|
window.button(JButtonMatcher.withText("OK")).requireEnabled();
|
348
|
window.button(JButtonMatcher.withText("OK")).requireEnabled();
|