I'm testing a web application using QALoad, and I have 2 questions about "Verify"
1) The manual says that
boolean Verify ( enumeration type, string expected );
Returns true if the text matches the text in the page. Otherwise, returns false.
and my sample code fragment:
boolean passed = Verify(PAGE_TITLE, "You Have Logged In");
RR__printf("!!!!!!login %s", passed ? "passed" : "failed");
I found that if logging in failed, then the executing jumped immediately to RESTART_TRANSACTION_BOTTOM(), that means you have no chance to check returned value of Verify, which conflicts with the manual says.
2) How can I make a verify of my own?
I think that assertion, as a common mechanism, should be provided by a testing tool, but I looked through the language reference and found nothing.
Please describe "logging in failed." I have not experienced what you describe. If I provide, say, the wrong password, I get an error on the next request. I have not seen it jump to the end of the transaction loop.
A problem is a difference between what is perceived and what is desired, that
we want to reduce (Dewey 1933)