使用创建工厂创建标题为 My New Test Result 的测试结果资源,并将其与 testURL 指定的测试用例资源 URL 和 executionURL 指定的测试执行记录资源 URL 关联起来。将测试结果状态设置为 Unverified。有关向服务提供方查询测试用例和执行记录的更多信息,请参阅编辑测试用例并提交更改和编辑测试执行记录并提交更改。从服务提供方处获取测试结果资源的完整资源数据并检查该资源。
newTestResult = createTestResult(myCreationFactory, ...'My New Test Result',testURL,executionURL,'Unverified');
fetch(newTestCase,myClient);
newTestResult
newTestResult =
TestResult with properties:
ResourceUrl: 'https://localhost:9443/qm/oslc_qm/resources/CdffuW...'
Dirty: 0
IsFetched: 1
Title: 'My New Test Result'
Identifier: '1456'