cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - When posting, your subject should be specific and summarize your question. Here are some additional tips on asking a great question. X

Any way or CLI command to get testcase ID's from testsuite

SS_10728259
4-Participant

Any way or CLI command to get testcase ID's from testsuite

 

 

4 REPLIES 4

Able to use createquery command and working fine..Now how to run created query through CLI?

Please support

Hi @SS_10728259 

 

you can get them using something like this:

Command cmdS = new Command("im viewissue");
cmdS.addSelection("Id of your Test Suite");
Response result = integritySession.execute(cmdS);
WorkItemIterator wit = result.getWorkItems();
while (wit.hasNext()) {
	WorkItem wi = wit.next();
	ItemListImpl fieldValue = (ItemListImpl) wi.getField("Contains").getValue();
	for (Iterator it = fieldValue.iterator(); it.hasNext();) {
		Item item = (Item) it.next();
		System.out.println(item.getId());
	}
}

 

Regards

Zeiad

Thanks, No familiar with java much. Could you please share it in python if possible?

 

@SS_10728259 

Sorry .. i am no familiar with Python.

Top Tags