It's all about the answers!

Ask a question

OSLC API Test Result creation does not add the depending Test Plan

Catalin Morcan (132) | asked Apr 10 '23, 9:44 a.m.


I am using Postman to create a Test Result using the OSLC API, but I cannot add the TestPlan that I want the Test Result to report on. I cannot find what is causing this.

This is the URI:

I use this headers:


and this is the body:
<?xml version="1.0" encoding="UTF-8"?>
    xmlns:oslc_rm=""xmlns:foaf="" > 
        <dcterms:title> OSLC TestCaseResult</dcterms:title>
        <oslc_qm:reportsOnTestPlan rdf:resource=""/>
        <oslc_qm:reportsOnTestCase rdf:resource=""/>
        <oslc:serviceProvider rdf:resource=""/>
        <oslc_qm:status rdf:datatype=""></oslc_qm:status>

Michael Rowe commented Apr 11 '23, 8:23 a.m. | edited Apr 11 '23, 8:24 a.m.

What is your OSLC-Core-Version header?  Also, can is the response that you get? 

Catalin Morcan commented Apr 11 '23, 8:26 a.m.

That is the only header I added. The rest of them are auto generated from the body I think.

I get status 201 Created as response and the response body is empty.

Catalin Morcan commented Apr 11 '23, 8:58 a.m.

OSLC-Core-Version header is 2.0 

Ian Barnard commented Apr 11 '23, 12:01 p.m.

With 201 the Location header in the response is the URL of the new test result

Catalin Morcan commented Apr 12 '23, 1:52 a.m.

 I know where the result is located. The issue is that the new test result does not contain the test case it reports on even though it was added in the request body

Be the first one to answer this question!

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.