question

dclaar avatar image
dclaar Suspended asked dclaar Suspended posted

analysis enhancement - check if message and status match

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?

 

 

 

iTestfeature request
10 |950

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

·
EricGregMiller avatar image
EricGregMiller answered EricGregMiller posted

Thanks for a good idea. I have submitted a feature request to the iTest team.

10 |950

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.