ok radioButton: Tests related to radio buttons with JavaScript

Test started at Wed Apr 25 13:10:28 CEST 2012, lasting 475 ms.
Source: /raid/volume1/opt/webtest/webtestCC/CanooFunctionalTesting/selftests/tests/radioButton.xml:64:
Base URL (used by invoke steps with a relative URL): http://localhost:19090/selftest/
Simulated browser: IE6
#ResultNameParameterDuration
  1okenableJavaScript
enabletrue
2
  2okinvoke
Open the page with form and JS
Resulting page
-> complete urlhttp://localhost:19090/selftest/form.jsp
urlform.jsp
63
  3okverifyXPath
texttrue
xpathnot(//form/input[@name='myRadioButton']/@checked)
9
  4okverifyXPath
chocolateFlavor is initially disabled
texttrue
xpathboolean(//form/input[@name='chocolateFlavor']/@disabled)
9
  5oksetRadioButton
namemyRadioButton
valuemint
69
  6okverifyXPath
text1
xpathcount(//form/input[@name='myRadioButton']/@checked)
8
  7okverifyXPath
textmint
xpath//form/input[@name='myRadioButton'][@checked]/@value
10
  8okverifyXPath
chocolateFlavor is still disabled
texttrue
xpathboolean(//form/input[@name='chocolateFlavor']/@disabled)
112
  9okclickButton

Resulting page
name
68
  10okverifyText
Checks the received value from radio button
textmyRadioButton: mint
3
  11okverifyXPath
text1
xpathcount(//form/input[@name='myRadioButton']/@checked)
9
  12okverifyXPath
textmint
xpath//form/input[@name='myRadioButton'][@checked]/@value
11
  13oksetRadioButton
namemyRadioButton
valuechocolate
16
  14okverifyXPath
text1
xpathcount(//form/input[@name='myRadioButton']/@checked)
10
  15okverifyXPath
textchocolate
xpath//form/input[@name='myRadioButton'][@checked]/@value
9
  16okverifyXPath
chocolateFlavor is enabled
textfalse
xpathboolean(//form/input[@name='chocolateFlavor']/@disabled)
10
  17oksetRadioButton
2nd click is a no-op
namemyRadioButton
valuechocolate
14
  18okverifyXPath
text1
xpathcount(//form/input[@name='myRadioButton']/@checked)
9
  19okverifyXPath
textchocolate
xpath//form/input[@name='myRadioButton'][@checked]/@value
23
  20okverifyXPath
chocolateFlavor is still enabled
textfalse
xpathboolean(//form/input[@name='chocolateFlavor']/@disabled)
11

Back to Test Report Overview