It's all about the answers!

Ask a question

How to create the "stepresult" of a test result by OSLC

Luiz Almeida (23015388) | asked Nov 27 '18, 11:13 a.m.

Hi fellows,

I'm trying to implement an adapter that is called by JUnit Selenium to record a test result in RQM using OSLC API of RQM. 


The application is already working. Junit calls my app passing some parameters (TCER, test result (pass or fail), execution time, etc.). However, I could not create the "stepresult" so far.

In the example I'm following, I saw that the tags are:

<qmresult:stepresults result=""
    startTime="1218355995597" endTime="12183559956247">
      <qmresult:property propertyName="CustomProperty" propertyValue="CustomValue" propertyType="NamespacePrefix:NamespaceURI"/>

When I put these tags in my code, I can't do the post. I receive the 404 error.

So, what I'm trying to do is possible? If so, what can I do to accomplish that?

Thanks in advance for any typs.

Luiz Cesar.

Accepted answer

permanent link
Paul Slauenwhite (8.4k12) | answered Aug 07 '20, 12:11 p.m.

As of ETM 7.0, CRUDing test case step results is supported (see 

Ralph Schoon selected this answer as the correct answer

2 other answers

permanent link
Paul Slauenwhite (8.4k12) | answered Nov 28 '18, 6:28 a.m.

Hi Luiz,

Unfortunately, this is not supported when updating a test result (see Support creating/adding/updating/removing test script step results when creating/updating test execution results using the OSLC QM API. (166236)).  However, you can add step results to test results when creating test results (only).  GET an existing test result to see the structure of the step result or see the OSLC QM shape document for test results.

Luiz Almeida commented Nov 28 '18, 7:05 a.m.

Hi Paul,

Thanks for your answer.

In fact, what I realy want is to create test results with related steps result and not to update an existing test result.

The problem is I did not get the correct sintax to put the step result so far. All I have tried did not work. As I said, I always receive an 404 error when I do the POST.

An example would help me a lot. Do you know where I can find it?

Paul Slauenwhite commented Nov 28 '18, 7:18 a.m.

There is no example code or documentation. I would suggest to GET an existing test result to see the structure of the step result or see the OSLC QM shape document for test results.

Thomas Merx commented Aug 07 '20, 11:29 a.m. | edited Aug 07 '20, 11:30 a.m.

 Hi Paul,

I want to do the same and thus read the test result, which includes a test step via the OSLC API. However, in the returned rdf, I can only see the porperty rqm_qm:containsStepResult, which points to an external How would I then create this as part of a new test result? Do I have to create a sibling of the of type in one single rdf description and link it via rdf:nodeID?

Any help is highly appreciated.

Thanks in advance and best regards,

permanent link
Reginald Heller (111) | answered Feb 25 '22, 2:27 a.m.
edited Feb 28 '22, 12:00 a.m.

 Thanks for sharing really information 

Your answer

Register or to post your answer.