HsacAcceptanceTests.SlimTests.BrowserTest.RepeatUntilTests.ClickUntilNotTest


This test ensures that we can keep clicking until a condition is NOT met.

We use a mock server running to serve the HTML defined in this page.


variable defined: HTML= {{{ <html> <body> <a href="FitNesseMock/2.html">link</a> <label for="field">Counter</label> <input id="field" value="1"> </body> </html>}}}


variable defined: HTML3= {{{ <html> <body> <a href="FitNesseMock/4.html">link</a> <label for="field">Counter</label> <input id="field" value="3"> </body> </html>}}}

script mock xml server setup
add response
<html>
<body>
<a href="FitNesseMock/2.html">link</a>
<label for="field">Counter</label>
<input id="field" value="1">
</body>
</html>
add response
<html>
<body>
<a href="FitNesseMock/2.html">link</a>
<label for="field">Counter</label>
<input id="field" value="1">
</body>
</html>
add response
<html>
<body>
<a href="FitNesseMock/4.html">link</a>
<label for="field">Counter</label>
<input id="field" value="3">
</body>
</html>
add response
<html>
<body>
<a href="FitNesseMock/2.html">link</a>
<label for="field">Counter</label>
<input id="field" value="1">
</body>
</html>
add response
<html>
<body>
<a href="FitNesseMock/2.html">link</a>
<label for="field">Counter</label>
<input id="field" value="1">
</body>
</html>
$url<-[http://127.0.0.1:8001/FitNesseMock] get mock server url

script browser test
open $url->[http://127.0.0.1:8001/FitNesseMock]
repeat at most 10 times
seconds before timeout 1
click link until value of Counter is not 1
check repeat count 2
check value of Counter 3

script mock xml server setup
stop