Validation Rules in Webtesting using VS2010

Posted by Lexipain on Stack Overflow See other posts from Stack Overflow or by Lexipain
Published on 2011-05-30T09:17:26Z Indexed on 2011/11/23 9:50 UTC
Read the original article Hit count: 337

I'm creating a simple webtest (Recorded Web performance test) that makes sure that a correct error message is displayed if i try to login with a username that does not exist.

However, there are two types of error messages that handle incorrect login info. One is for all the usernames that do not exist and therefore are not allowed, and the other is for usernames that start with the letter 'Q' (which is not allowed for a few reasons).

Now what i want to do is use the 'Find Text' validation rule and the test should pass if ONE of the 'Find Text' parameters is found, and in that case i want the second 'Find Text' rule to be ignored so it doesn't fail the test.

In other words the test should always pass if one of the 'Find Test' rules is found.

How can i achieve that? Is there some if,else statement that i can use for this?

© Stack Overflow or respective owner

Related posts about visual-studio-2010

Related posts about webtest