kmv
5 years agoOccasional Contributor
SOAPUI TestRunner test case count and runner (teardown) test case count mismatch
Hi,
Structure and flow of Project
- TestSuite
- Test Case 1
- Test Step (REST request)
- Test Case 1
- Test Case 2
- Test Step (REST Request)
- Test Step (Groovy script) (this script will call and execute Test Case 3 based on condition, test case 3 will be disabled state, if condition pass it will enable test case and execute and again it will be disabled
- Test Case 3
- Test Step (REST Request)
Problem Statement : If we execute above TestSuite via 'SOAPUI-TestRunner', number of test case executed count is correct, in our sample case : Total Test case count : 4 (which is correct, since test case 3 got executed twice via groovy script (Test Case 1 + Test case 2 + Test case 3 + Test Case 3),
but if we try to get total Test case executed count from teardown its showing as 'Test case count : 2
Teardown script not considering test cases which got executed via groovy script
Attached snapshots for reference
Any help or support would be great, thanks