It's all about the answers!

Ask a question

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


LUIZ DE ALMEIDA (23016192) | 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. 

References:

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="com.ibm.rqm.execution.common.state.passed"
    startTime="1218355995597" endTime="12183559956247">
    <qmresult:stepresult>
      <qmresult:property propertyName="CustomProperty" propertyValue="CustomValue" propertyType="NamespacePrefix:NamespaceURI"/>
    </qmresult:stepresult>
  </qmresult:stepresults>
    

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.

Regards,
Luiz Cesar.

Accepted answer


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

As of ETM 7.0, CRUDing test case step results is supported (see https://jazz.net/pub/new-noteworthy/etm/7.0/7.0/index.html#27). 

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.
FORUM MODERATOR / JAZZ DEVELOPER

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.


Comments
LUIZ DE 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.
FORUM MODERATOR / JAZZ DEVELOPER

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 com.ibm.rqm.execution.ExecutionElementResult. How would I then create this as part of a new test result? Do I have to create a sibling of the com.ibm.rqm.execution.ExecutionResult of type com.ibm.rqm.execution.ExecutionElementResult in one single rdf description and link it via rdf:nodeID?

Any help is highly appreciated.

Thanks in advance and best regards,
Thomas


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.


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.