| Super Context and expectation of failure [message #1780105] |
Wed, 17 January 2018 07:34  |
Eclipse User |
|
|
|
Hi all,
I've just started using RCPTT and I've come across a situation I can't find a solution to - looking for help :)
Basically, I have built a test that works fine with my app - briefly, it takes some credentials and calls a web service to get some other information back.
I'd like to run the same test with correct and incorrect credentials, and expect the second run to cause an error. I've set up a super context with two sets of parameters; the correct parameters work fine, but I can't figure out how to tell the test to expect the second set of parameters to fail.
I guess it would be possible to duplicate the test and modify the second copy to check for the failure, but that just feels wrong somehow, I now have two places to maintain essentially the same code.
Is there a way to do this? I had a look through the docs but I couldn't find anything.
Cheers,
KEv.
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03385 seconds