Skip to main content
3-Newcomer
February 12, 2025
Solved

How to add a test Item in an already created Test Session via CLI

  • February 12, 2025
  • 2 replies
  • 1527 views

Hello there, 

I would like to ask if there is a way to add one / multiple test Items in an already created Test Session via CLI.
I am working on an Windows machine if it makes any difference

I tried with editissue command but, as far as I understand, there is no --type argument in order to select my Test Session ID. 

Thank you in advance

Best answer by LLawton

You have to familiarize yourself with the "im editissue" command.

There is no "type" argument because it doesn't make sense here since it cannot be changed. It sounds like you're trying to add Test Cases to a Test Session, presumably in the planning phase. The ID of the Test Session you're trying to edit is an option for the command, not an argument. So in this case, the command would be something like:

im editissue --addFieldValues="Planned Test Cases"=60719 65409

In other words, "add TC 60719" to TS 65409. (note that my field names may be different from yours.)

I hope this is the answer you're looking for.

2 replies

avillanueva
23-Emerald I
23-Emerald I
February 13, 2025
3-Newcomer
February 13, 2025

I am sorry if this is the wrong forum to ask, 
Do you have any recommendation in order to ask in the correct forum? 

avillanueva
23-Emerald I
23-Emerald I
February 13, 2025
LLawton16-PearlAnswer
16-Pearl
February 14, 2025

You have to familiarize yourself with the "im editissue" command.

There is no "type" argument because it doesn't make sense here since it cannot be changed. It sounds like you're trying to add Test Cases to a Test Session, presumably in the planning phase. The ID of the Test Session you're trying to edit is an option for the command, not an argument. So in this case, the command would be something like:

im editissue --addFieldValues="Planned Test Cases"=60719 65409

In other words, "add TC 60719" to TS 65409. (note that my field names may be different from yours.)

I hope this is the answer you're looking for.

3-Newcomer
February 17, 2025

Thank you very much for spending the time to answer my question.
That was exactly what I was looking for. I will invest some time to understand the edit issue command.

Best Regards 
Konstantinos