Create test execution record in OSLC service provider
creates a test execution record with the specified title for the test case specified by the
myTER = createTestExecutionRecord(
testURL. The resource is created by creation factory
myCreationFactory in the Open Services for Lifecycle Collaboration
(OSLC) service provider..
Create a New Test Execution Record
This example shows how to submit a creation request for a new test execution record resource with a configured OSLC client.
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
creation factory for the test execution record resource
myCreationFactory = getCreationFactory(myClient,'TestExecutionRecord');
Use the creation factory to create a test execution record resource with the title
New Test Execution Record and associate it with the test case resource URL
testURL from a test case. For more information about querying the
service provider for test cases, see Edit a Test Case and Commit Changes. Retrieve full
resource data from the service provider for the test execution record resource and inspect
newTestER = createTestExecutionRecord(myCreationFactory, ... 'My New Test Execution Record',testURL); fetch(newTestCase,myClient); newTestER
newTestER = TestExecutionRecord with properties: ResourceUrl: 'https://localhost:9443/qm/oslc_qm/resources/CfkIoW...' Dirty: 0 IsFetched: 1 Title: 'My New Test Execution Record' Identifier: '301'
Open the test execution record resource in the system browser by using the
myCreationFactory — Resource creation factory
OSLC resource creation factory, specified as an
title — Test execution record title
Test execution record title, specified as a character array.
testURL — Test case URL
Resource URL of the test case to associate with the test execution record, specified as a character array.
myTER — Test execution record resource
OSLC test execution record resource, returned as an
Introduced in R2021a