Workflow to generate tests

Stages

The following workflow lists the high-level steps required to generate tests. See “Service Test Manager” in the NSP NFM-P Classic Management User Guide for more information about test suites, test policies, and test generation. See the XML API SDK Sample Code Navigator for sample XML code.

 

Create a test policy with test definitions. The test policy needs to specify the type of target object to be tested, and the test definitions need to be valid for the object. See the CreateLSPTestPolicy.xml file in the XML code samples.


Create a test suite, specifying the test policy. See the CreateSimpleTestSuite.xml file in the code samples. Alternatively, you can add your test policy to a test suite. See the XML API SDK Sample Code Navigator for sample XML code.


Add target objects to the test suite. See the AddTestedEntityToTestSuite.xml file in the code samples.


As required, combine Stage 2 and Stage 3 to create a test suite and add tested entities to the suite in a single xml request. See the CreateTestSuite.xml file in the code samples.


Generate the tests:

  1. Use sas.TestSuite.generateTests. See the GenerateTestsFromTestSuite.xml file in the code samples.

  2. Use the generateTests flag in sas.TestSuiteAddTestedEntities. See the XML API Reference for more information and for other methods on sas.TestSuite.