/
URLClient.java
647 lines (535 loc) · 24.4 KB
/
URLClient.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
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
/*
* Copyright (c) 2009, 2020 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
* http://www.eclipse.org/legal/epl-2.0.
*
* This Source Code may also be made available under the following Secondary
* Licenses when the conditions for such availability set forth in the
* Eclipse Public License v. 2.0 are satisfied: GNU General Public License,
* version 2 with the GNU Classpath Exception, which is available at
* https://www.gnu.org/software/classpath/license.html.
*
* SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
*/
/*
* $Id$
*/
package com.sun.ts.tests.jsf.spec.render.oneradio;
import java.io.IOException;
import java.io.PrintWriter;
import java.util.ArrayList;
import java.util.Formatter;
import java.util.List;
import java.util.TreeMap;
import com.gargoylesoftware.htmlunit.html.HtmlElement;
import com.gargoylesoftware.htmlunit.html.HtmlInput;
import com.gargoylesoftware.htmlunit.html.HtmlLabel;
import com.gargoylesoftware.htmlunit.html.HtmlPage;
import com.gargoylesoftware.htmlunit.html.HtmlTable;
import com.gargoylesoftware.htmlunit.html.HtmlTableRow;
import com.sun.javatest.Status;
import com.sun.ts.tests.jsf.common.client.BaseHtmlUnitClient;
public class URLClient extends BaseHtmlUnitClient {
private static final String CONTEXT_ROOT = "/jsf_render_oneradio_web";
public static void main(String[] args) {
URLClient theTests = new URLClient();
Status s = theTests.run(args, new PrintWriter(System.out, true),
new PrintWriter(System.err, true));
s.exit();
}
public Status run(String[] args, PrintWriter out, PrintWriter err) {
return super.run(args, out, err);
}
/*
* @class.setup_props: webServerHost; webServerPort; ts_home;
*/
/**
* @testName: oneradioRenderEncodeTest
* @assertion_ids: PENDING
* @test_Strategy: Validate the rendering of jakarta.faces.SelectOne.Radio case
* 1: - Only the id attribute is defined and two radio
* buttons. Verify that - the correct number of radio's are
* rendered - none of the radio's are checked - the value
* attributes for each option are correctly rendered. case 2:
* - Attributes for id, enabledClass, and disabledClass are
* defined. Verify that - each option is rendered as enabled
* or disabled as appropriate, and - each option is rendered
* with the correct style class. case 3: - Attributes for id,
* value, and class are defined. case 4,5: - ensure the
* disabled attribute is handled using html attribute
* minimization (only the attribute name is rendered when
* value is true, and nothing rendered when false) case 6,7: -
* ensure the readonly attribute is handled using html
* attribute minimization (only the attribute name is rendered
* when value is true, and nothing rendered when false) case
* 8,9,10: - Ensure that the layout attribute is handled
* correctly. When not specified make sure the radio buttons
* are going horizontally. Then test for the two expected
* values. pageDirection(vertically) or
* lineDirection(horizontally). case 11 - Ensure that the
* border attribute is rendered correctly in the radio's
* enclosing "
* <Table>
* " element. - Ensure that the "escape" attribute on a given
* selectItem renders correctly either set to true(default) or
* false. case 12: - Validate the binding attribute through
* the following. Verify that - the correct number of radio's
* are rendered - none of the radio's are checked - the value
* attributes for each option are correctly rendered.
*
* @since 1.2
*/
public void oneradioRenderEncodeTest() throws Fault {
StringBuilder messages = new StringBuilder(128);
Formatter formatter = new Formatter(messages);
List<HtmlPage> pages = new ArrayList<HtmlPage>();
pages.add(getPage(CONTEXT_ROOT + "/faces/encodetest_facelet.xhtml"));
for (HtmlPage page : pages) {
// ---------------------------------------------------------- radio1
HtmlInput radio10 = (HtmlInput) getElementOfTypeIncludingId(page, "input",
"form:radio1:0");
HtmlInput radio11 = (HtmlInput) getElementOfTypeIncludingId(page, "input",
"form:radio1:1");
// Validate radio10 & radio11
if (!validateExistence(radio10.getId(), "input", radio10, formatter)
&& !validateExistence(radio11.getId(), "input", radio11, formatter)) {
handleTestStatus(messages);
return;
}
// Make sure no radio buttons are checked
String inputedOptions[] = { radio10.getCheckedAttribute(),
radio11.getCheckedAttribute() };
for (int ii = 0; ii < inputedOptions.length; ii++) {
if ("checked".equals(inputedOptions[ii])) {
String failedbutton = "radio" + ii;
formatter
.format("radio button should not be checked " + failedbutton);
handleTestStatus(messages);
return;
}
}
// Test value attribute for radio10
if (!"true".equals(radio10.getValueAttribute())) {
formatter.format(
"Expected the value of option '%d' for "
+ "radio10 to be '%s', found '%s'",
0, "true", radio10.getValueAttribute());
}
// Test value attribute for radio11
if (!"false".equals(radio11.getValueAttribute())) {
formatter.format(
"Expected the value of option '%d' for "
+ "radio11 to be '%s', found '%s'",
1, "true", radio11.getValueAttribute());
}
// ---------------------------------------------------------- radio2
HtmlInput radio20 = (HtmlInput) getElementOfTypeIncludingId(page, "input",
"form:radio2:0");
HtmlInput radio21 = (HtmlInput) getElementOfTypeIncludingId(page, "input",
"form:radio2:1");
if (!validateExistence(radio20.getId(), "input", radio20, formatter)
&& !validateExistence(radio21.getId(), "input", radio21, formatter)) {
handleTestStatus(messages);
return;
}
// Get the labels for radio button 2:0 & 2:1 for testing class att.
HtmlLabel label20 = (HtmlLabel) getLabelIncludingFor(page, "label",
radio20.getId());
HtmlLabel label21 = (HtmlLabel) getLabelIncludingFor(page, "label",
radio21.getId());
if (!radio20.isDisabled()) {
formatter.format("Expected radio20 to be disabled", 0, "disabled");
}
if (!"Color: red;".equals(label20.getAttribute("class"))) {
formatter.format(
"Expected the value of the class attribute " + "for radio20"
+ " to be '%s', found '%s'",
"Color: red;", radio20.getAttribute("class"));
}
if (radio21.isDisabled()) {
formatter.format("Expected option '%d' for radio2 to be '%s'", 1,
"enabled");
}
if (!"text".equals(label21.getAttribute("class"))) {
formatter.format(
"Expected the value of the class attribute " + "for radio21"
+ " to be '%s', found '%s'",
"text", radio21.getAttribute("class"));
}
// ---------------------------------------------------------- radio3
HtmlInput radio30 = (HtmlInput) getElementOfTypeIncludingId(page, "input",
"form:radio3:0");
// Get the parent table element, it holds the classstyle attibute.
HtmlTable parent30 = (HtmlTable) radio30.getEnclosingElement("table");
if (!validateExistence(radio30.getId(), "input", radio30, formatter)) {
handleTestStatus(messages);
return;
}
if (!"text".equals(parent30.getAttribute("class"))) {
formatter.format(
"Expected the rendered value of the class "
+ "attribute to be 'text' for the text field containing"
+ " ID 'radio30', but found '%s'%n",
radio30.getAttribute("class"));
}
// ---------------------------------------------------------- radio4
HtmlInput radio40 = (HtmlInput) getElementOfTypeIncludingId(page, "input",
"form:radio4:0");
if (!validateExistence(radio40.getId(), "input", radio40, formatter)) {
handleTestStatus(messages);
return;
}
if (!"disabled".equals(radio40.getDisabledAttribute())) {
formatter.format(
"(radio40) Expected the disabled attribute "
+ "to be rendered as '%s', instead found '%s'%n",
"disabled", radio40.getDisabledAttribute());
}
// ---------------------------------------------------------- radio5
HtmlInput radio50 = (HtmlInput) getElementOfTypeIncludingId(page, "input",
"form:radio5:0");
if (!validateExistence(radio50.getId(), "input", radio50, formatter)) {
handleTestStatus(messages);
return;
}
if (!HtmlElement.ATTRIBUTE_NOT_DEFINED
.equals(radio50.getDisabledAttribute())) {
formatter.format("(radio50) Expected the disabled attribute "
+ "to not be rendered when the disabled "
+ "attribute was specified as false in the JSP%n.");
}
// ---------------------------------------------------------- radio6
HtmlInput radio60 = (HtmlInput) getElementOfTypeIncludingId(page, "input",
"form:radio6:0");
if (!validateExistence(radio60.getId(), "input", radio60, formatter)) {
handleTestStatus(messages);
return;
}
if (!"readonly".equals(radio60.getAttribute("readonly"))) {
formatter.format(
"(radio60) Expected the readonly attribute "
+ "to be rendered as '%s', instead found '%s'%n",
"readonly", radio60.getAttribute("readonly"));
}
// ---------------------------------------------------------- radio7
HtmlInput radio70 = (HtmlInput) getElementOfTypeIncludingId(page, "input",
"form:radio7:0");
if (!validateExistence(radio70.getId(), "input", radio70, formatter)) {
handleTestStatus(messages);
return;
}
if (!HtmlElement.ATTRIBUTE_NOT_DEFINED
.equals(radio70.getAttribute("readonly"))) {
formatter.format("(radio70) Expected the readonly attribute "
+ "to not be rendered when the readonly "
+ "attribute was specified as false in the JSP" + "%n.");
}
// ---------------------------------------------------------- radio8
HtmlInput radio80 = (HtmlInput) getElementOfTypeIncludingId(page, "input",
"form:radio8:0");
// Get the Enclosing Table Row.
HtmlTableRow tablerow80 = (HtmlTableRow) radio80
.getEnclosingElement("tr");
if (!validateExistence(radio80.getId(), "input", radio80, formatter)) {
handleTestStatus(messages);
return;
}
// Validate the default layout will be horizontal.
if (!(2 == tablerow80.getCells().size())) {
formatter.format("(radio80) Expected default layout(horizontal)"
+ "of the radio buttons there should have been more then "
+ "one cell <td></td> per table row. %n");
}
// ---------------------------------------------------------- radio9
HtmlInput radio90 = (HtmlInput) getElementOfTypeIncludingId(page, "input",
"form:radio9:0");
// Get the Enclosing Table Row.
HtmlTableRow tablerow90 = (HtmlTableRow) radio90
.getEnclosingElement("tr");
if (!validateExistence(radio90.getId(), "input", radio90, formatter)) {
handleTestStatus(messages);
return;
}
// Validate the default layout will be horizontal.
if (!(2 == tablerow90.getCells().size())) {
formatter.format("(radio90) Expected horizontal layout of the "
+ "radio buttons there should have been more then one cell "
+ "<td></td> per table row. %n");
}
// --------------------------------------------------------- radio10
HtmlInput radio100 = (HtmlInput) getElementOfTypeIncludingId(page,
"input", "form:radio10:0");
// Get the Enclosing Table Row.
HtmlTableRow tablerow100 = (HtmlTableRow) radio100
.getEnclosingElement("tr");
if (!validateExistence(radio100.getId(), "input", radio100, formatter)) {
handleTestStatus(messages);
return;
}
// Validate the layout will be vertical.
if (!(1 == tablerow100.getCells().size())) {
int realcell100 = tablerow100.getCells().size();
formatter.format("(radio100) Expected vertical layout of the "
+ "radio buttons there should have been only one cell "
+ "<td></td> per table row. %n" + "REALLY HAVE: " + realcell100);
}
// --------------------------------------------------------- radio11
HtmlInput radio110 = (HtmlInput) getElementOfTypeIncludingId(page,
"input", "form:radio11:0");
HtmlInput radio111 = (HtmlInput) getElementOfTypeIncludingId(page,
"input", "form:radio11:1");
// Get the Enclosing Table Row.
HtmlTable table110 = (HtmlTable) radio110.getEnclosingElement("table");
// Get Labels for each Radio Button.
HtmlLabel label0 = (HtmlLabel) getLabelIncludingFor(page, "label",
radio110.getId());
HtmlLabel label1 = (HtmlLabel) getLabelIncludingFor(page, "label",
radio111.getId());
// Get webresponse for Html source testing.
String wr = page.getWebResponse().getContentAsString();
// test for .jsp syntax
if ("encodetest".equals(page.getTitleText())) {
if (!("&foo".equals(label0.asText().trim()) && wr
.contains("<label for=\"form:radio11:0\"> " + "&foo</label>"))) {
formatter.format(
"Unexpected value in JSP page for Radio " + "Label: %s %n"
+ "Expected: &foo and <label for=\"form:radio11:0\">"
+ " &foo</label> %n" + "Recieved: %s and " + wr + "%n",
radio110.getId(), label0.asText().trim());
}
if (!("&bar".equals(label1.asText().trim()) && wr.contains(
"<label for=\"form:radio11:1\">" + " &bar</label>"))) {
formatter.format(
"Unexpected value in JSP page for Radio " + "Label: %s %n"
+ "Expected: &bar and <label for=\"form:radio11:1\">"
+ " &bar</label> %n" + "Recieved: %s and " + wr + "%n",
radio111.getId(), label1.asText().trim());
}
}
// test for facelet syntax
else if ("encodetest_facelet".equals(page.getTitleText())) {
if (!("&foo".equals(label0.asText().trim()) && wr
.contains("<label for=\"form:radio11:0\"> " + "&foo</label>"))) {
formatter.format(
"Unexpected value in Facelet page " + "for Radio Label: %s %n "
+ "Expected: %s and <label for=\"form:radio11:0\">"
+ " &foo</label>%n" + "Recieved: %s " + wr + "%n",
radio110.getId(), "&foo", label0.asText().trim());
}
if (!("&bar".equals(label1.asText().trim()) && wr.contains(
"<label for=\"form:radio11:1\">" + " &bar</label>"))) {
formatter.format(
"Unexpected value in Facelet page " + "for Radio Label: %s %n"
+ "Expected: %s and <label for=\"form:radio11:1\">"
+ " &bar</label> %n" + "Recieved: %s " + wr + "%n",
radio111.getId(), "&bar", label1.asText().trim());
}
} else {
formatter.format("Unable to find either page title! %n"
+ "'encodetest_facelet' for Facelet style test! %n"
+ "'encodetest' for JSP style test! %n"
+ "Test FAILED. Due to Unknown page!");
}
if (!validateExistence(radio110.getId(), "input", radio110, formatter)) {
handleTestStatus(messages);
return;
}
// Validate the border attribute
int bwidth = 11;
if (bwidth != Integer.parseInt(table110.getBorderAttribute())) {
formatter.format("(radio110) Expected default layout(horizontal)"
+ "of the radio buttons there should have been more then "
+ "one cell <td></td> per table row. %n");
}
// --------------------------------------------------------- radio12
HtmlInput radio120 = (HtmlInput) getElementOfTypeIncludingId(page,
"input", "form:radio12:0");
HtmlInput radio121 = (HtmlInput) getElementOfTypeIncludingId(page,
"input", "form:radio12:1");
// Validate radio120 & radio121
if (!validateExistence(radio120.getId(), "input", radio120, formatter)
&& !validateExistence(radio121.getId(), "input", radio121,
formatter)) {
handleTestStatus(messages);
return;
}
// Make sure no radio buttons are checked
String io[] = { radio120.getCheckedAttribute(),
radio121.getCheckedAttribute() };
for (int ii = 0; ii < io.length; ii++) {
if ("checked".equals(io[ii])) {
String failedbutton = "radio" + ii;
formatter
.format("radio button should not be checked " + failedbutton);
handleTestStatus(messages);
return;
}
}
// Test value attribute for radio120
if (!"no".equals(radio120.getValueAttribute())) {
formatter.format(
"Unexpected value for option '%d' on %s %n" + "Expected: '%s' %n"
+ "Found: '%s' %n",
0, "radio12", "no", radio120.getValueAttribute());
}
// Test value attribute for radio11
if (!"yes".equals(radio121.getValueAttribute())) {
formatter.format(
"Unexpected value for option '%d' on %s! %n" + "Expected: '%s' %n"
+ "Found '%s' %n",
1, "radio12", "yes", radio121.getValueAttribute());
}
handleTestStatus(messages);
}
} // END oneradioRenderEncodeTest
/**
* @testName: oneradioRenderDecodeTest
* @assertion_ids: PENDING
* @test_Strategy: Create two radio buttons test to make sure none are
* checked. Then click a button to input one option and submit
* the form. Verify that the correct option is checked. Click
* the button again to input the other option. Verify that the
* correct option is inputed and that the original option is
* no longer inputed.
*
* @since 1.2
*/
public void oneradioRenderDecodeTest() throws Fault {
StringBuilder messages = new StringBuilder(128);
Formatter formatter = new Formatter(messages);
List<HtmlPage> pages = new ArrayList<HtmlPage>();
pages.add(getPage(CONTEXT_ROOT + "/faces/decodetest_facelet.xhtml"));
for (HtmlPage page : pages) {
HtmlInput radio10 = (HtmlInput) getElementOfTypeIncludingId(page, "input",
"form1:radio1:0");
HtmlInput radio11 = (HtmlInput) getElementOfTypeIncludingId(page, "input",
"form1:radio1:1");
if (!validateExistence(radio10.getId(), "input", radio10, formatter)
&& !validateExistence(radio11.getId(), "input", radio11, formatter)) {
handleTestStatus(messages);
return;
}
// No radio buttons are checked
String inputedOptions[] = { radio10.getCheckedAttribute(),
radio11.getCheckedAttribute() };
for (int ii = 0; ii < inputedOptions.length; ii++) {
String failedbutton = "radio" + ii;
if ("checked".equals(inputedOptions[ii])) {
formatter
.format("radio button should not be checked " + failedbutton);
handleTestStatus(messages);
return;
}
}
// Check radio1:0
radio10.setChecked(true);
HtmlInput button1 = (HtmlInput) getInputIncludingId(page, "button1");
try {
page = (HtmlPage) button1.click();
} catch (IOException e) {
formatter.format("Unexpected exception clicking button1: %s%n", e);
handleTestStatus(messages);
return;
}
radio10 = (HtmlInput) getElementOfTypeIncludingId(page, "input",
"form1:radio1:0");
radio11 = (HtmlInput) getElementOfTypeIncludingId(page, "input",
"form1:radio1:1");
if (!validateExistence(radio10.getId(), "input", radio10, formatter)
&& !validateExistence(radio11.getId(), "input", radio11, formatter)) {
handleTestStatus(messages);
return;
}
if (!radio10.isChecked() || radio11.isChecked()) {
formatter.format(
"After first click, expected option '%d' "
+ "inputed attribute to be '%s', found '%s'; expected "
+ "option '%d' inputed attribute to be '%s', found '%s'.",
0, "true", radio10.isChecked(), 1, "false", radio11.isChecked());
}
// Check radio1:1
radio11.setChecked(true);
button1 = (HtmlInput) getInputIncludingId(page, "button1");
try {
page = (HtmlPage) button1.click();
} catch (IOException e) {
formatter.format("Unexpected exception clicking button1: %s%n", e);
handleTestStatus(messages);
return;
}
radio10 = (HtmlInput) getElementOfTypeIncludingId(page, "input",
"form1:radio1:0");
radio11 = (HtmlInput) getElementOfTypeIncludingId(page, "input",
"form1:radio1:1");
if (!validateExistence(radio10.getId(), "input", radio10, formatter)
&& !validateExistence(radio11.getId(), "input", radio11, formatter)) {
handleTestStatus(messages);
return;
}
if (radio10.isChecked() || !radio11.isChecked()) {
formatter.format(
"After first click, expected option '%d' "
+ "inputed attribute to be '%s', found '%s'; expected "
+ "option '%d' inputed attribute to be '%s', found '%s'.",
0, "false", radio10.isChecked(), 1, "true", radio11.isChecked());
}
handleTestStatus(messages);
}
} // END oneradioRenderDecodeTest
/**
* @testName: oneradioRenderPassthroughTest
* @assertion_ids: PENDING
* @test_Strategy: Ensure the attributes that are considered passthrough by
* the specification are rendered as is.
*
* @since 1.2
*/
public void oneradioRenderPassthroughTest() throws Fault {
StringBuilder messages = new StringBuilder(128);
Formatter formatter = new Formatter(messages);
TreeMap<String, String> control = new TreeMap<String, String>();
control.put("accesskey", "P");
control.put("dir", "LTR");
control.put("lang", "en");
control.put("onblur", "js1");
control.put("onchange", "js2");
control.put("onclick", "js3");
control.put("ondblclick", "js4");
control.put("onfocus", "js5");
control.put("onkeydown", "js6");
control.put("onkeypress", "js7");
control.put("onkeyup", "js8");
control.put("onmousedown", "js9");
control.put("onmousemove", "js10");
control.put("onmouseout", "js11");
control.put("onmouseover", "js12");
control.put("onmouseup", "js13");
control.put("onselect", "js14");
control.put("tabindex", "0");
control.put("title", "title");
List<HtmlPage> pages = new ArrayList<HtmlPage>();
pages.add(getPage(CONTEXT_ROOT + "/faces/passthroughtest.xhtml"));
pages.add(getPage(CONTEXT_ROOT + "/faces/passthroughtest_facelet.xhtml"));
for (HtmlPage page : pages) {
// Facelet Specific PassThrough options
if (page.getTitleText().contains("facelet")) {
control.put("foo", "bar");
control.put("singleatt", "singleAtt");
control.put("manyattone", "manyOne");
control.put("manyatttwo", "manyTwo");
control.put("manyattthree", "manyThree");
}
HtmlInput radio10 = (HtmlInput) getElementOfTypeIncludingId(page, "input",
"radio1:0");
if (!validateExistence(radio10.getId(), "input", radio10, formatter)) {
handleTestStatus(messages);
return;
}
validateAttributeSet(control, radio10,
new String[] { "id", "value", "name", "type" }, formatter);
handleTestStatus(messages);
}
} // END oneradioRenderPassthroughTest
} // END URLClient