Community Tip - Need to share some code when posting a question or reply? Make sure to use the "Insert code sample" menu option. Learn more! X
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? 🙂
Solved! Go to Solution.
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=firstYou 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,
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=firstYou 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,
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