How to call testcase B1 and B2 from testcase A

Hi guys, i’m learning how to call test cases so would like to find out whether is possible to call test cases in such scenarios.

TCA call TCB1
WebUI.callTestCase(findTestCase(‘TCA’), [:], FailureHandling.STOP_ON_FAILURE)

WebUI.callTestCase(findTestCase(‘TCB1’), [:], FailureHandling.STOP_ON_FAILURE)

Again rerun TCA and call TCB2
WebUI.callTestCase(findTestCase(‘TCA’), [:], FailureHandling.STOP_ON_FAILURE)

WebUI.callTestCase(findTestCase(‘TCB2’), [:], FailureHandling.STOP_ON_FAILURE)

the execution doesnt work for Again rerun TCA and call TCB2*

Anyone has same experience with me and how do i overcome this?

What happens? What errors do you get?

you are calling TCA from himself. good luck with that, you just designed a fork bomb!

1 Like