Forum Discussion

danmit's avatar
danmit
Occasional Contributor
2 years ago

Pass test suite with failed test cases

Hello!

 

I have a API that has a feature still under development so I am getting a 500 error when running some teste. I know this issue will be addressed in future updates. Is it possible to have the test suite pass but still keep those test cases that failed with their status?

 

I would like to have them in the report but not fail the whole test suite for two tests. 

 

 

3 Replies

  • richie's avatar
    richie
    Community Hero
    Hey @damnit,

    Do you definitely want to execute these currently failing tests? You could disable them so they don't get executed.
    Or if you want them executed you could alter the assertions so they pass (which is, i admit, a rubbish solution)
    Or you could perhaps force the test case status change to pass after executing the final teststep in the testcase? Have a look at the following stackoverflow link. This looks to do this option.
    I can't think of any others, but i'm sure the groovy experts will have a whizzy way of doing it!

    Cheers,

    Rich