It's all about the answers!

Ask a question

Creating execution record through REST API


preetam mudliar (611) | asked May 22 '12, 3:24 a.m.
Hi,

We are trying to use the REST API to execute a test script using .net. We are new to RQM and would request some help with steps that would be reuired to execute a test script using the API calls. Examples of URL to be used for REST calls would be helpful.

We are using RQM 2.0 version as of now.

Thanks in advance.

6 answers



permanent link
Paul Slauenwhite (8.4k12) | answered May 22 '12, 8:17 a.m.
FORUM MODERATOR / JAZZ DEVELOPER
Unfortunately, the RQM REST API does not support test execution. I would suggest using the Command Line Adapter (see http://pic.dhe.ibm.com/infocenter/clmhelp/v3r0m1/topic/com.ibm.rational.test.qm.doc/topics/t_cmd_line_execution.html).

permanent link
preetam mudliar (611) | answered May 23 '12, 1:39 a.m.
As per the wiki site for RQM, REST API does support creating/updating/reading executionresult and execution work items. Will this not be enough to execute the test using REST API calls ?

If not, is this supported in RQM 3.0 and higher versions ?

Thanks.
----------------------------------------------------------------------------

Unfortunately, the RQM REST API does not support test execution. I would suggest using the Command Line Adapter (see http://pic.dhe.ibm.com/infocenter/clmhelp/v3r0m1/topic/com.ibm.rational.test.qm.doc/topics/t_cmd_line_execution.html).

permanent link
Paul Slauenwhite (8.4k12) | answered May 23 '12, 6:36 a.m.
FORUM MODERATOR / JAZZ DEVELOPER
Yes, you can CRUD the test results required/generated by a test execution (varying support provided over the releases since 1.0 - check https://jazz.net/wiki/bin/view/Main/RqmApi#Resources_and_their_Supported_Op), but you cannot execute a test.

permanent link
Lars Ohlén (2566) | answered May 24 '12, 4:47 a.m.
So the solution is to create an external component that fetch test execution record(s), executes the test based on the read content, and then reports the test execution result back to RQM?

How does the test adapter concept fit into this way of working?

Also intrested if someone could elaborate a bit about how this could work in a Continous Integration scenario? (the CI engine handles the build, invokes test and then need the result back)

Is REST based execution something that is included in 4.X (or planned)?

permanent link
Paul Slauenwhite (8.4k12) | answered May 24 '12, 7:34 a.m.
FORUM MODERATOR / JAZZ DEVELOPER
So the solution is to create an external component that fetch test execution record(s), executes the test based on the read content, and then reports the test execution result back to RQM?


Yes, that's one solution. However, I would encourage you to look at the Command Line Adapter before implementing your own custom solution.

How does the test adapter concept fit into this way of working?


The test adapter uses a similar but internal approach/API. The adapter is executed, test execution record data is pasted to the adatper, and test result data is passed back from the adapter.

Also intrested if someone could elaborate a bit about how this could work in a Continous Integration scenario? (the CI engine handles the build, invokes test and then need the result back)


I've asked the RQM execution component team to comment.

Is REST based execution something that is included in 4.X (or planned)?


No. See https://jazz.net/jazz02/resource/itemName/com.ibm.team.workitem.WorkItem/21416.

permanent link
Kurtis Martin (1.4k11) | answered May 24 '12, 8:52 a.m.
JAZZ DEVELOPER
Hi,

We are trying to use the REST API to execute a test script using .net. We are new to RQM and would request some help with steps that would be reuired to execute a test script using the API calls. Examples of URL to be used for REST calls would be helpful.

We are using RQM 2.0 version as of now.

Thanks in advance.


If your .net application can be invoked from the command-line the the recommended way to integrate it with RQM is via the Command-line adapter as suggested by Paul. That is the purpose of the command-line adapter and here is another article which talks integrating custom test tools with RQM via the CLA:

https://jazz.net/library/article/809

Some of the features mention in that article or specific to RQM 3.x and others are new features that will be in RQM 4.x. RQM 2.x offers basic integration via the CLA, but 3.x and 4.x or more feature rich.

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.