Main Content

createTestPlan

Create test plan in OSLC service provider

Since R2021a

    Description

    example

    myTestPlan = createTestPlan(myCreationFactory,title) creates a test plan with the specified title by using the creation factory myCreationFactory in the Open Services for Lifecycle Collaboration (OSLC) service provider.

    Examples

    collapse all

    This example shows how to submit a creation request for a new test plan 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 plan resource type.

    myCreationFactory = getCreationFactory(myClient,'TestPlan');

    Use the creation factory to create a test plan resource with the title My New Test Plan. Retrieve the full resource data from the service provider for the test plan resource and inspect the resource.

    newTestPlan = createTestPlan(myCreationFactory,'My New Test Plan');
    fetch(newTestPlan,myClient);
    newTestPlan
    newTestPlan = 
      TestPlan with properties:
    
        ResourceUrl: 'https://localhost:9443/qm/resource/itemName/_f56s...'
              Dirty: 0
          IsFetched: 1
              Title: 'My New Test Plan'
         Identifier: '301'

    Open the test plan resource in the system browser by using the show function.

    show(newTestPlan)

    Input Arguments

    collapse all

    OSLC resource creation factory, specified as an oslc.core.CreationFactory object.

    Test plan title, specified as a character array.

    Output Arguments

    collapse all

    OSLC test plan resource, returned as an oslc.qm.TestPlan object.

    Version History

    Introduced in R2021a