Receiving Error when calling a test case

I have created Test Case 10 where use I use local variables “TitleText” and “HomeText” which accepts data from external excel source. I am calling same Test Case 10 for my test case 11 where I am using Key Value pair as follows:-

Key Type Key Value Type Value

String “TitleText” Test Data Value Manage Connections Data(5.10)

String “HomeText” Test Data Value Manage Connections Data(5.10)

After running I am receiving following error:-

Test Cases/Test Cases/Manage Connections/TC-MC-011 Verify that user is able to filter buyers or supplier FAILED because (of) java.lang.IllegalArgumentException: Cannot find test case with id ‘Test Cases/Manage Connections/TC-MC-010 Verify that user is able to click the MarketPlace in Manage connections’

Can you please guide me on this?

Can you show me your test script? That error indicates this test case “TC-MC-010 Verify that user is able to click the MarketPlace in Manage connections” is not found, can double check if you pass in the correct path?

I am attaching series of screen shots of location and name of child test case along with error message. ​Test case name and location seems to be fine. If required I will send you my project as well. Kindly look into it.

Call Test Case Error.docx

Murtaja Arifhusen Kadiyani said:

I am attaching series of screen shots of location and name of child test case along with error message. ​Test case name and location seems to be fine. If required I will send you my project as well. Kindly look into it.

Hi Murtaja,

The root cause of this error is because you’ve included ‘Test Cases’ into your called test case, e.g:
findTestCase(‘Test Cases/Your Test Case’)

You should remove it as findTestCase will always look into ‘Test Cases’ folder already, so the correct path should be:
findTestCase(‘Your Test Case’)