Forum Discussion

Jasper175's avatar
Jasper175
Frequent Contributor
14 years ago

Yellow - Assertion Failure

Hello,

There have come to be many times where I need something to fail, but I don't want it to be "RED" and wish to continue the test run.
I know of the feature to not fail on Error, however I'm using a setup script throughout other testSuites where if my TestSuite "Subscribe" fails then : runner.cancel("Subscribe Failure")

However there are some testSteps I have that fail or pass I don't want it "Red" otherwise it's recorded as the test failed and thus cancels my test.

Perhaps what would suffice is each assertion to have it's own property, like a Medium (yellow), Red (High) failure attribute to it? Where I could right click on it and set to Meduim/High or something.

Just a thought - it could help.

Thank you,
Rob

1 Reply

  • Hello,

    what do you think about adding some custom Script assertion ?
    I'm not sure about it's contents in your specific case, but it can (as a result) set some property value on test suite level,
    eg. statusOfSubscribe = "RED", "YELLOW" or 1, 2, 3, etc.

    Then you could use that value and execute/fail/etc other test suites/cases...

    Does this help ?

    Regards,
    Vladimir
    SmartBear Software