Main Content

getStatus

Get locally stored status from OSLC test result resource object

Since R2021a

    Description

    status = getStatus(myTR) returns the text contents of the RDF/XML element oslc_qm:status for the test result 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) website.

    example

    Examples

    collapse all

    This example shows how to get the OSLC test result status.

    After you have created and configured the OSLC client myClient as 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 existing test results.

    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'

    Input Arguments

    collapse all

    OSLC test result resource, specified as an oslc.qm.TestResult object.

    Output Arguments

    collapse all

    OSLC test result resource status, returned as a character vector.

    Version History

    Introduced in R2021a