Forum Discussion
4 Replies
- HimanshuTayalCommunity Hero
jituvrma007 : This should be a practise that you should follow not to Call Test Case of other Test Suite from current Test Case because it will create a ambiguity or difficulty in finding where to update, what you can do instead is:
1. Create 1 Test Suite which contains all Dependent Test Cases,
2. Call that particular Test Case.
Now second part is How to call,
You can use groovy script to call particular Test Case from existing Test Case refer attached project for reference.
- sonya_m
Alumni
Thank you so much Rao and Himanshu! Great advice.
Hi jituvrma007! Did the advice solve your question? Please mark the answer you found helpful as a solution.
- sonya_m
Alumni
jituvrma007 Here's what you should try - create a script that checks the status of the current case. If it is not 'Failed', the script needs to run the needed TestCase.
- nmraoCommunity Hero
General advice is that each test should be testable independent.
If there some dependency, create a test make it disable(this is just reusable test and never get executed directly, only called from other tests as step) and just call this test as using Run test case step in whichever testcase as test step.Please refer documentation
https://support.smartbear.com/readyapi/docs/soapui/steps/run-test-case.html