Skip to main content
1-Visitor
July 21, 2017
Solved

CLI - Create a Test Suite and a Test Session

  • July 21, 2017
  • 1 reply
  • 4009 views

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? 🙂

Best answer by D_Thierjung

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

1 reply

1-Visitor
July 25, 2017

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
JosefK1-VisitorAuthor
1-Visitor
July 26, 2017

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