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

CLI - Create a Test Suite and a Test Session

SOLVED
Highlighted
Regular Member

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

Tags (2)
1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted

Re: CLI - Create a Test Suite and a Test Session

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

View solution in original post

3 REPLIES 3
Highlighted

Re: CLI - Create a Test Suite and a Test Session

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

View solution in original post

Highlighted

Re: CLI - Create a Test Suite and a Test Session

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

Highlighted

Re: CLI - Create a Test Suite and a Test Session

Hello Dominik,

 

As per your answer,

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

If I need to create Test Suite then what value shall I use in --type? as --type = Test Suite gives an error 
MKS6412130: Type "Test Suite" does not exist

Can you please help me with the --type we can use for Test Suite and Test Case as well.
Also from where we can get all the types for other entities as well.

Thanks & Regards,
Pushpendra Singh

 

Announcements