Skip to main content
4-Participant
July 1, 2023
Solved

CLI command to create test session in PTC integrity

  • July 1, 2023
  • 1 reply
  • 2877 views

• 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"

 

 

 

 

 

 

 

 

 

Best answer by IvyZhuang

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:

IvyZhuang_0-1689236755131.png

 

Regards,

Ivy

 

1 reply

17-Peridot
July 3, 2023

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"
4-Participant
July 3, 2023

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.

SS_10728259_0-1688396163736.png

 

 
IvyZhuang17-PeridotAnswer
17-Peridot
July 13, 2023

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:

IvyZhuang_0-1689236755131.png

 

Regards,

Ivy