OSLC Automation Result fails without Test Case reference
It looks to me like an Automation Result POST into the RQM system (as detailed in https://jazz.net/wiki/bin/view/Main/RQMTestAutomationAdapterAPI Steps 32 - 36) fails if the oslc_qm:reportsOnTestCase triple is not defined (returns 409 result).
In general, I wouldn't think that this is a big problem (though it is listed as optional in the API doc, and not mentioned in the example). The problem I have is that I can't find any way that I can actually find the current test case that is being executed. The Automation Request resource has the following property: oslc_qm:executesTestScript. However, the Test Script resource only provides the following triples: oslc_qm:executionInstructions, oslc_qm:relatedChangeRequest, and oslc_qm:validatesRequirement.
How can I find the Test Case that caused a given Automation Request so that I can link it in the Automation Result? Otherwise, how can I create an Automation Result without specifying the Test Case?
Accepted answer
Hi Elliot,
If you look at the AutomationResult resource shape, the oslc_qm:reportsOnTestCase property is required. The AutomationRequest resource should reference the oslc_qm:TestExecutionRecord in the oslc_auto:executesAutomationPlan property, which contains the executed test case.
We will update the WIKI under RQM Test Automation Adapter API Reference contains incorrect Automation Result vocabulary. (100877).
If you look at the AutomationResult resource shape, the oslc_qm:reportsOnTestCase property is required. The AutomationRequest resource should reference the oslc_qm:TestExecutionRecord in the oslc_auto:executesAutomationPlan property, which contains the executed test case.
We will update the WIKI under RQM Test Automation Adapter API Reference contains incorrect Automation Result vocabulary. (100877).