Creating Multiple Test Case Execution Records with REST API for a single Test Case
![]()
The RQM interface can generate multiple test case execution records for a single test case given a preset iteration and the presence of multiple test environments.
Given a new iteration and knowledge of the available test environments in an RQM project, how could one PUT multiple test case execution records into a single test case with the RqmApi?
I currently crash my JazzClient application when attempting to create multiple test case execution records for a single test case, and I cannot set the test environment or iteration (something I would like to be able to do).
Cheers.
|
4 answers
![]()
Stephane Leroy (1.4k●1●4●9)
| answered Oct 02 '14, 5:47 a.m.
JAZZ DEVELOPER edited Oct 03 '14, 3:31 a.m.
Hi Matthew,
I guess you would need to iterate in your client app. But since you mention a crash, I'd advise you to reproduce with an attempt to create the smallest amount of TCERs. Ideally, you would want to reduce this number to 1 only. From there, you could debug / check whether your POST/PUT URL, headers and the Test Phase, Test Env, Test Plan that you feed your new TCERs are really valid. In case of incorrect configuration, the RQM would normally provide you some useful message. References: - the core one is RQM Reportable REST API: https://jazz.net/wiki/bin/view/Main/RqmApi - for examples of URLs, you could refer to the following blog post: http://sleroyblog.wordpress.com/2013/04/09/querying-rqm-40-through-oslc-and-rest-api/ Regards, Stéphane |
![]()
We are almost on the same page;
Is it possible to set Test Environment and Iteration for a Test Case Execution Record, in general, from the Rqm Reportable REST API via a PUT request when creating a Test Case Execution Record? (Note that a GET request on a Test Case Execution Record does not report Test Environment or Iteration).
I am trying to add multiple TCER's to a single test case with constant test plan and test phase attributes. Test Environment and Iteration are the only attributes that will be different between the single test cases multiple TCER's (besides their respective external ID's)
Comments 1
Hi Matthew,
Thanks Stephane. I was not aware that iteration is configurable by "Test Phase". Can you point me to where this is documented in Jazz for the RqmAPi? Thanks Stephane. I was not aware that iteration is configurable by "Test Phase". Can you point me to where this is documented in Jazz for the RqmAPi? Matthew, for clarifications on Test Phases and Iterations, I suggest you check the references provided by Don in this previous question:
|
Your answer
Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.