OSLC API Test Result creation does not add the depending Test Plan
Hello,
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:
Content-Type:application/rdf+xml
and this is the body:
<?xml version="1.0" encoding="UTF-8"?><rdf:RDFxmlns:rqm_auto="http://jazz.net/ns/auto/rqm#"xmlns:acp="http://jazz.net/ns/acp#"xmlns:calm="http://jazz.net/xmlns/prod/jazz/calm/1.0/"xmlns:acc="http://open-services.net/ns/core/acc#"xmlns:process="http://jazz.net/ns/process#"xmlns:dcterms="http://purl.org/dc/terms/"xmlns:skos="http://www.w3.org/2004/02/skos/core#"xmlns:jrs="http://jazz.net/ns/jrs#"xmlns:oslc_auto="http://open-services.net/ns/auto#"xmlns:xsd="http://www.w3.org/2001/XMLSchema#"xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"xmlns:bp="http://open-services.net/ns/basicProfile#"xmlns:cmx="http://open-services.net/ns/cm-x#"xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#"xmlns:rqm_lm="http://jazz.net/ns/qm/rqm/labmanagement#"xmlns:oslc="http://open-services.net/ns/core#"xmlns:owl="http://www.w3.org/2002/07/owl#"xmlns:rqm_process="http://jazz.net/xmlns/prod/jazz/rqm/process/1.0/"xmlns:oslc_config="http://open-services.net/ns/config#"xmlns:oslc_cm="http://open-services.net/ns/cm#"xmlns:rqm_qm="http://jazz.net/ns/qm/rqm#"xmlns:oslc_qm="http://open-services.net/ns/qm#"xmlns:oslc_rm="http://open-services.net/ns/rm#"xmlns:foaf="http://xmlns.com/foaf/0.1/" ><oslc_qm:TestResult><dcterms:title> OSLC TestCaseResult</dcterms:title><oslc_qm:reportsOnTestPlan rdf:resource="https://alm.example.com/qm/oslc_qm/contexts/_Rn6h0O7KEeqljtlpuXuKZQ/resources/com.ibm.rqm.planning.VersionedTestPlan/_j4cqgaLUEe2d74_MdcPWdQ"/><oslc_qm:reportsOnTestCase rdf:resource="https://alm.example.com/qm/oslc_qm/contexts/_Rn6h0O7KEeqljtlpuXuKZQ/resources/com.ibm.rqm.planning.VersionedTestCase/_8yO3UXYNEe2_5qJvuRyxbw"/><oslc:serviceProvider rdf:resource="https://alm.example.com/qm/oslc_qm/contexts/_Rn6h0O7KEeqljtlpuXuKZQ/services.xml"/><oslc_qm:status rdf:datatype="http://www.w3.org/2001/XMLSchema#string">com.ibm.rqm.execution.common.state.failed</oslc_qm:status></oslc_qm:TestResult></rdf:RDF>
Comments
Michael Rowe
FORUM ADMINISTRATOR / FORUM MODERATOR Apr 11 '23, 8:24 a.m.What is your OSLC-Core-Version header? Also, can is the response that you get?
Catalin Morcan
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.
Catalin Morcan
Apr 11 '23, 8:58 a.m.OSLC-Core-Version header is 2.0
Ian Barnard
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER Apr 11 '23, 12:01 p.m.With 201 the Location header in the response is the URL of the new test result
1 vote
Catalin Morcan
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