Create test case in OSLC service provider
creates a test case with the specified title created using the creation factory
myTestCase = createTestCase(
myCreationFactory in the Open Services for Lifecycle Collaboration
(OSLC) service provider.
Create a New Test Case
This example shows how to submit a creation request for a new test case 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 case resource
myCreationFactory = getCreationFactory(myClient,'TestCase');
Use the creation factory to create a test case resource with the title
My New Test
Case. Retrieve the full resource data from the service provider for the test
case resource and inspect the
newTestCase = createTestCase(myCreationFactory,'My New Test Case'); fetch(newTestCase,myClient); newTestCase
newTestCase = TestCase with properties: ResourceUrl: 'https://localhost:9443/qm/resource/itemName/_a9aS...' Dirty: 0 IsFetched: 1 Title: 'My New Test Case' Identifier: '301'
Open the test case resource in the system browser by using the
myCreationFactory — Resource creation factory
OSLC resource creation factory, specified as an
title — Test case title
Test case title, specified as a character array.
myTestCase — Test case resource
OSLC test case resource, returned as an
Introduced in R2021a