Forum Discussion

h00mta's avatar
14 years ago

How do I verify that the correct page has been reached?

Hi

I'm load testing a page in my webapp.

I see that there is a "Error Codes that Count as Failures" textbox in the Web Page Runner settings. I guess that it is used to report failures when any of the specified error codes are present in the response.

But I would like to have the response checked for some word that means success. Lets say that a successful login to my site generates a response with the word "Welcome" in it. Can I check for that instead of just check for errors?

Best regards,
Mattias
  • Having created the test in SoapUI, you can add assertions in your test request. I believe in your case, you can click on the add assetion button. Then when the drop-down box appears, click on 'contains' then type in the string you want to verify, in your case 'Welcome'.

    I hope this answers your question!

    Mike