Test Steps are not fetched when retrieving testcases by testset

Friday, December 2, 2016 10:57:57 AM
Hi,

I am trying to fetch the test cases associated with a particular test set id. For this purpose I am using the method of web service 

RemoteTestCase[] testCases = spira.TestCase_RetrieveByTestSetId(int testSetId)

Everything works fine, I am getting all the test cases associated with the test set. But none of test cases have test steps. All of them are showing test steps as null. Test steps should should also be fetched as part of the test case.Just wanted to know why this method behaving like this? Is there any other way by which I can retrieve l all the test cases associated with a test set and also get the the test steps.

Thanks,
Abhijit Banerjee
1 Replies
Thursday, December 8, 2016 6:22:48 PM
Avatar
re: abanerjee on Friday, December 2, 2016 10:57:57 AM
Hi Abhijit,

That is correct. You need to use the separate function TestCase_RetrieveById(...) for each individual test case to get their steps.

So you need to loop for each test case in the set and then call the function above. We do that for performance reasons.

Regards

Jim
Statistics
  • Started: Friday, December 2, 2016 10:57:57 AM
  • Last Reply: Thursday, December 8, 2016 6:22:48 PM
  • Replies: 1
  • Views: 587