Main Content

本页采用了机器翻译。点击此处可查看英文原文。

queryTestExecutionRecords

向 OSLC 服务提供商查询测试执行记录

自 R2021a 起

    说明

    示例

    testExecutionRecords = queryTestExecutionRecords(myQueryCapability) 返回与查询功能 myQueryCapability 关联的开放生命周期协作服务 (OSLC) 服务提供商中的可用测试执行记录资源。

    示例

    全部折叠

    此示例显示如何使用配置的 OSLC 客户端提交测试执行记录资源的查询请求。

    按照为质量管理域创建并配置 OSLC 客户端中所述创建并配置 OSLC 客户端myClient 后,为测试执行记录资源类型创建查询功能。

    myQueryCapability = getQueryService(myClient,'TestExecutionRecord')
    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}

    向服务提供方提交可用的测试执行记录资源的查询请求。

    testExecutionRecords = queryTestExecutionRecords(myQueryCapability)
    testExecutionRecords = 
    
      1×5 TestExecutionRecord array with properties:
    
        ResourceUrl
        Dirty
        IsFetched
        Title
        Identifier

    输入参数

    全部折叠

    OSLC 资源查询功能,指定为 oslc.core.QueryCapability 对象。

    输出参量

    全部折叠

    OSLC 测试执行记录资源,以 oslc.qm.TestExecutionRecord 对象的形式返回。

    版本历史记录

    在 R2021a 中推出