cancel
Showing results for 
Search instead for 
Did you mean: 

Raise User Defined Error for Assertions

Super Contributor

Raise User Defined Error for Assertions

Hello,
When assertions are encountered, the error contains a message describing the expected result vs actual result.

This is usually enough for the person who is writing the test since he knows what the expected response is.

Example: If you are expecting 0 and got 1, the person writing the test will know the issue and how to debug.

However, when I overtake someone else's project, I find their assertions very vague and they don't really make sense.

It would be cool to have a optional 'User Defined Assertion Message' window Which would make reading assertions much more QA friendly when they are encountered.

So in our example if we could have specified  'User Defined Assertion Message' as 'A non-zero error code signifies that the account is locked', this would be helpful.

Thanks

Ali
2 REPLIES 2
Super Contributor

Re: Raise User Defined Error for Assertions

Hi Ali,

thanks.. would this differ from a possible "description" property for each assertion also?

regards,

/Ole
eviware.com
Super Contributor

Re: Raise User Defined Error for Assertions

If the description can be thrown when the assertion is encountered, then 'user defined error' is not necessary.