Any way or CLI command to get testcase ID's from testsuite
Jul 04, 2023
01:27 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Jul 04, 2023
01:27 PM
Any way or CLI command to get testcase ID's from testsuite
- Tags:
- cli
- test management
4 REPLIES 4
Jul 04, 2023
02:40 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Jul 04, 2023
02:40 PM
Able to use createquery command and working fine..Now how to run created query through CLI?
Please support
Jul 05, 2023
04:55 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Jul 05, 2023
04:55 AM
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
Jul 05, 2023
08:50 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Jul 05, 2023
08:50 AM
Thanks, No familiar with java much. Could you please share it in python if possible?
Jul 12, 2023
01:49 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
