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

Community Tip - Stay updated on what is happening on the PTC Community by subscribing to PTC Community Announcements. X

CLI - Create a Test Suite and a Test Session

JosefK
10-Marble

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

ACCEPTED SOLUTION

Accepted Solutions
D_Thierjung
12-Amethyst
(To:JosefK)

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
D_Thierjung
12-Amethyst
(To:JosefK)

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

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

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


Top Tags