I frequently run into cases where someone wants to generate an error if something is found. So they add a contains rule, which by default comes out as:
contains "oops, I did it again" When true PassTestIfNotAlreadyFailed DeclareExecutionIssue OK:{auto_message_true} When false FailTest DeclareExecutionIssue Error:{auto_message_false}
So they say, "oh, that's backwards", and change the Pass/Fail:
contains "oops, I did it again" When true FailTest DeclareExecutionIssue OK:{auto_message_true} When false PassTestIfNotAlreadyFailed DeclareExecutionIssue Error:{auto_message_false}
Then they run their test, and they get a message that doesn't match the results. Sure, their fault, but an easy mistake to make. I've made it many times myself.
It would be cool if iTest would warn you "Hey, OK and Fail don't seem to go together". Are you sure?
Answer by Eric Miller · Oct 17, 2011 at 06:30 PM
Thanks for a good idea. I have submitted a feature request to the iTest team.
tooltips for blue boxes 1 Answer
Adding a call to something not in favorites 1 Answer
command line help would be nice 2 Answers
How does some one call a procedure from a global rule? 1 Answer
My test is running, but where am I? 2 Answers
Copyright 2008- Spirent Communications, all rights reserved. Terms and Conditions.