Skip to main content
1-Visitor
Jul 21, 2017 1:03 PM UTC
Solved

CLI - Create a Test Suite and a Test Session

Hi there,

 

I am trying to create a Test Suite with Test Cases and later a Test Session within a batch script. For the Test Cases I am using "im createcontent" but I have no clue which commands to use for the Test Suite and Test Session. Is it possible to create such elements / documents with a batch script? If yes, how? 🙂

1-Visitor
Jul 25, 2017 7:26 AM UTC

Hello @JosefK,

you need to keep the integrity document model in mind (see support document CS186280 ).

First you need to create your Test Suite (segment)

im createsegment --field='Project=/Project2/Release 1.0' --type='Test Document' --field='Category=Document'

Then you can add your content (node)

im createcontent --parentID=23 --insertLocation=first 
You can then create your test session using
im createissue --type="Test Session" --field="Summary=Tests for..." --field="Project=/Projects/Release1" --field="Test Objective=Hardware Testing"
Regards,
Dominik

3 replies

1-Visitor
Jul 25, 2017 7:26 AM UTC

Hello @JosefK,

you need to keep the integrity document model in mind (see support document CS186280 ).

First you need to create your Test Suite (segment)

im createsegment --field='Project=/Project2/Release 1.0' --type='Test Document' --field='Category=Document'

Then you can add your content (node)

im createcontent --parentID=23 --insertLocation=first 
You can then create your test session using
im createissue --type="Test Session" --field="Summary=Tests for..." --field="Project=/Projects/Release1" --field="Test Objective=Hardware Testing"
Regards,
Dominik
Translate
JosefK1-VisitorAuthor
1-Visitor
Jul 26, 2017 11:41 AM UTC

Thanks a lot. Createsegemnt was the last piece in the puzzle for my problem 😉

Translate