Community Tip - Have a PTC product question you need answered fast? Chances are someone has asked it before. Learn about the community search. X
• Name : Shekhar Sabale
• Product: Integrity 11
• Product Release: 2017
• Help Topic Title: CLI command to create test session in PTC integrity
• Level of Expertise in the Product (Beginner, Intermediate, Advanced) : Beginner
• Comments:
Trying to find CLI command to create test session item in PTC integrity. Checking below PTC reference: http://support.ptc.com/help/integrity_hc/integrity111_hc/en/index.html#page/IntegrityHelp%2Fim_createissue.html%23
Tried below command seems not working, It required more operands; Please assist me regarding this.
im createissue --type=Test Session --field="Summary=Update release notes" --field="Assigned User=SHEKHAR SABALE" --field="Project=/L2H0090" --field="Test Objective=19715867" --field="State =Submitted"
Solved! Go to Solution.
Hi SS_10728259,
You're right. If related item ids are multiple, then use a space to split them.
im createissue --type="Test Session" --field="Summary=Update release notes" --field="Assigned User=SHEKHAR SABALE" --field="Project=/L2H0090" --field="Test Objective=19715867" --field="State=Submitted" --field="Tests=id1 id2..."
Here is my test result:
Regards,
Ivy
Hi SS_10728259,
Two places in your command need be modified:
1. Type name includes a space, so it needs double quotes for type name
2. "State =" has an unnecessary space between State and =
Therefore, the command should be
im createissue --type="Test Session" --field="Summary=Update release notes" --field="Assigned User=SHEKHAR SABALE" --field="Project=/L2H0090" --field="Test Objective=19715867" --field="State=Submitted"
Hello IvyZhuang,
Thanks a lot for the answer It is working as expected.
One more quick help required.
Want to update field is equal to Tests with my testcase IDs in Item ID's as shown below in picture.
It shall take IDs with space in between. What shall be command to do this?
Thanks in advance.
Hi SS_10728259,
You're right. If related item ids are multiple, then use a space to split them.
im createissue --type="Test Session" --field="Summary=Update release notes" --field="Assigned User=SHEKHAR SABALE" --field="Project=/L2H0090" --field="Test Objective=19715867" --field="State=Submitted" --field="Tests=id1 id2..."
Here is my test result:
Regards,
Ivy
Already resolved, Thanks for the answer.