Main Content

queryTestScripts

Query OSLC service provider for test scripts

    Description

    example

    testScripts= queryTestScripts(myQueryCapability)returns the available test script resources in the Open Services for Lifecycle Collaboration (OSLC) service provider that is associated with the query capabilitymyQueryCapability.

    Examples

    collapse all

    This example shows how to submit a query request for test script resources with a configured OSLC client.

    After you have created and configured the OSLC clientmyClientas described inCreate and Configure an OSLC Client for the Quality Management Domain, create a query capability for the test script resource type.

    myQueryCapability = getQueryService(myClient,'TestScript')
    myQueryCapability = QueryCapability with properties: queryParameter: '' client: [1×1 oslc.Client] queryBase: 'https://localhost:9443/rm/views?oslc.query=true&projectURL=http...' resourceShape: {0×1 cell} dom: [1×1 matlab.io.xml.dom.Element] title: 'Query Capability' resourceType: {1×2 cell}

    Submit a query request to the service provider for the available test script resources.

    testScripts = queryTestScripts(myQueryCapability)
    testScripts = 1×5 TestScript array with properties: ResourceUrl Dirty IsFetched Title Identifier

    Input Arguments

    collapse all

    OSLC resource query capability, specified as anoslc.core.QueryCapabilityobject.

    Output Arguments

    collapse all

    OSLC test script resource, returned as anoslc.qm.TestScriptobject.

    Version History

    Introduced in R2021a