The following test script checks that when verifyFailureOnNext and verifyErrorOnNext are
used, the following command should fail and the verified error message must match the actual message.
If this functionality is working correctly, each of the following verifyText commands
should fail because the verifyFailure/Error doesn't match.
Tests for expectError and expectFailure commands
|
open |
../tests/html/test_click_page1.html |
|
verifyFailureOnNext |
The next command actually succeeds so this verify is wrong |
|
verifyText |
link |
Click here for next page |
verifyFailureOnNext |
The next command does fail, but this is the wrong message |
|
verifyText |
link |
foo |
verifyErrorOnNext |
The next command actually succeeds so this verify is wrong |
|
verifyText |
link |
Click here for next page |
verifyErrorOnNext |
The next command does error, but this is the wrong message |
|
verifyText |
notAlink |
foo |
verifyErrorOnNext |
The next command has a failure, not an error |
|
verifyText |
link |
foo |