Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

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

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.

0 votes


Accepted answer

Permanent link

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

0 votes


2 other answers

Permanent link

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.

0 votes

Comments

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?

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.

 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

 Thanks for sharing really information 


0 votes

Your answer

Register or log in 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.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 10,951
× 60

Question asked: Nov 27 '18, 11:13 a.m.

Question was seen: 3,151 times

Last updated: Feb 28 '22, 12:00 a.m.

Confirmation Cancel Confirm