You can run three types of functional test:
- Test whether changes work on the previous configuration version. You can do it by running the regression test.
- Execute single object. You can do it by running the test for a test suite or running the test for a functional test case.
Run a regression test
Regression tests check whether the changes didn't cause problems in other places of the configuration.
- Create a test suite with associated config version. You can either:
- Create a test suite with child objects. With one operation you can create the test suite, associate it to a config version, and add test cases and variables to it.
- Or do it step by step: Create a test suite object, create functional test cases and add them to the test suite, and create variables.
- If you have the test suite already created, run the List test suites operation and store the
testSuiteIdof the test suite you want to run the test for. - Submit a test run with the
configVersionExecutionsarray within thefunctionalobject. Provide all required members. Store the returnedtestRunId. - Run the Get a test run operation using the stored
testRunIdto check the results.
Run a test for a test suite
If you want to execute a set of test cases, you can run the test for a test suite.
- Create a test suite. You can either:
- Create a test suite with child objects. With one operation you can create the test suite and add test cases and variables to it.
- Or do it step by step: Create a test suite object, create functional test cases and add them to the test suite, and create variables.
- If you have the test suite already created, run the List test suites operation and store the
testSuiteIdof the test suite you want to run the test for. - Submit a test run with the
testSuiteExecutionsarray within thefunctionalobject. Provide all required members. Store the returnedtestRunId. - Run the Get a test run operation using the stored
testRunIdto check the results.
Run a test for a functional test case
If you don't need to run test for a config version, or test suite, you can also execute single functional test case.
- Submit a test run with the
testCaseExecutionobject within thefunctionalobject. ProvidetestRequest,condition, andclientProfileand other required members. Store the returnedtestRunId. - Run the Get a test run operation using the stored
testRunIdto check the results.
