Test Steps are not fetched when retrieving testcases by testset

Friday, December 2, 2016
Avatar
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
Avatar
inflectra.jimx
re: abanerjee Friday, December 2, 2016
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

Spira Helps You Deliver Quality Software, Faster and With Lower Risk

And if you have any questions, please email or call us at +1 (202) 558-6885

 

Statistics
  • Started: Friday, December 2, 2016
  • Last Reply: Thursday, December 8, 2016
  • Replies: 1
  • Views: 2397