Get locally stored status from OSLC test result resource object
returns the text contents of the RDF/XML element
status = getStatus(
oslc_qm:status for the
myTR. For more information about RDF/XML elements, see
An XML Syntax
for RDF on the World Wide Web Consortium website and QM Resource Definitions on the Open Services for Lifecycle Collaboration (OSLC)
This example shows how to get the OSLC test result status.
After you have created and configured the OSLC client
described in Create and Configure an OSLC Client for the Quality Management Domain, create a
query capability for the test result resource type. Query the service provide for
myQueryCapability = getQueryService(myClient,'TestResult'); testResults = queryTestResults(myQueryCapability)
testResults = 1×9 TestResult array with properties: ResourceUrl Dirty IsFetched Title Identifier
Retrieve the test result status for one of the test results.
myTR = testResults(1); status = getStatus(myTR)
status = 'example.qm.execution.state.passed'
status— Test result resource status
OSLC test result resource status, returned as a character vector.