It's all about the answers!

Ask a question

Creating a test execution record programmatically


Michael Marshall (12) | asked Mar 04 '11, 3:16 p.m.
I understand there is no supported way to programmatically START an automated test execution in RQM.(See post: http://jazz.net/forums/viewtopic.php?p=52061#52061 )

Is there a way to programmatically CREATE a test execution record?

If I start / execute an automated test outside of RQM, can I use the REST API to programmatically create an execution record to report the results to RQM when the automation has finished running?

Any help/info on this topic will be appreciated.

Thanks,
Mike

5 answers



permanent link
Kurtis Martin (1.4k11) | answered Mar 06 '11, 10:43 p.m.
JAZZ DEVELOPER
You can create both execution records and execution results via the REST API. The REST API resource type for execution record is "executionworkitem", see:

https://jazz.net/wiki/bin/view/Main/RqmApi

permanent link
pietro marella (953130) | answered Mar 07 '11, 10:39 a.m.
I need to programmatically create a Lab Resource Group within a RQM Project (I'm on RQM 2.0.1)

When I put a LabResourceGroup artifact without specifyng the associated TeamArea I get a java.null.Exception in RQM :
java.lang.NullPointerException
at com.ibm.rational.test.lm.service.integration.jaxb.ResourcegroupPutHandler.extractTeamAreaUUID(ResourcegroupPutHandler.java:114)
at com.ibm.rational.test.lm.service.integration.jaxb.ResourcegroupPutHandler.unmarshal(ResourcegroupPutHandler.java:74)
at com.ibm.rational.test.lm.service.integration.jaxb.ResourcegroupPutHandler.unmarshal(ResourcegroupPutHandler.java:1)
at com.ibm.rqm.integration.handler.AbstractPutHandler.handle(AbstractPutHandler.java:199)
...................)))

It lead me think that I need to specify the TeamArea in the LabResourceGroup.

The problem I have is that the TeamArea is not an artifact I'm able to manage programmatically, I can't find any way to list the actual TeamAreas defined in the Project, get the ID and set it in the LabresourceGroup to be post in the RQM -

Any help?

Thanks in Advance

*piero

permanent link
pietro marella (953130) | answered Mar 07 '11, 10:50 a.m.
sorry, wrong post

permanent link
Susan Hanson (1.6k2201194) | answered Nov 13 '12, 1:41 a.m.
Is there any way to do this via Java APIs and not REST?  If only by REST, does anyone have a short example of how to create a Test Execution Record or Test Case using REST?

permanent link
Paul Slauenwhite (8.4k12) | answered Nov 13 '12, 7:52 a.m.
FORUM MODERATOR / JAZZ DEVELOPER
 RQM does not have public non-REST APIs.  However, you can use the RQM Reportable API.  For example, see https://jazz.net/wiki/bin/view/Main/RqmApi#Create.

Your answer


Register or to post 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.