You can run three types of functional test:
- Test whether implemented configuration changes meet your business needs. You can do it by running the test for a requirement.
- 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 test for a requirement
Run a test for a requirement to check if the implemented changes meet your business requirements.
- Create test requests you want to use in functional test cases. If you've already created the test requests, run the List test requests operation to get their identifiers.
- Run the List client profiles operation to get the identifier of the client profile you want to use in functional test cases.
- Create conditions you want to use in functional test cases. If you've already created the conditions, run the List conditions operation to get their identifiers.
- Create functional test cases. To do it, you need unique identifiers of the created test requests, conditions, and client profiles.
- Create test suites.
- Include functional test cases in the test suites.
- Create a requirement for which you want to run the test. If you've already created the requirement, run the List requirements operation to get its identifier.
- Associate test suites with the requirement.
- Submit a test run.
- Run the Get a test run operation to check the results.
Run a regression test
Once a requirement test passes and you know that the config changes met the business goal, you can run a regression test. Regression tests check whether the changes didn't cause problems in other places of the configuration.
- Add a new config version with the implemented changes to Test Center. If you've already added the config version, run the List config versions operation to get its identifier.
- If there's a previous version of this config in Test Center, then Test Center automatically creates new test suites that include functional test cases from the previous config version. Go through the included functional test cases and make sure that they are still valid with the configuration changes applied.
- If there's no previous version of this config in Test Center, create functional test cases that should work on the previous version of the config version, the one without the implemented config changes.
- Create test requests you want to use in functional test cases. If you've already created the test requests, run the List test requests operation to get their identifiers.
- Run the List client profiles operation to get the identifier of the client profile you want to use in functional test cases.
- Create conditions you want to use in functional test cases. If you've already created the conditions, run the List conditions operation to get their identifiers.
- Include the created functional test cases in a test suite.
- Clone test suites from the requirement for which you run the test.
- Associate cloned test suites with the config version.
- Submit a test run.
- Run the Get a test run operation to 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 test requests you want to use in functional test cases. If you've already created the test requests, run the List test requests operation to get their identifiers.
- Run the List client profiles operation to get the identifier of the client profile you want to use in functional test cases.
- Create conditions you want to use in functional test cases. If you've already created the conditions, run the List conditions operation to get their identifiers.
- Create functional test cases. To do it, you need identifiers of the test requests, conditions, and client profiles you want to include.
- Create test suites.
- Include functional test cases in the test suite.
- Submit a test run.
- Run the Get a test run operation to check the results.
Run a test for a functional test case
If you don't need to run test for a requirement, config version, or test suite, you can also execute single functional test cases.
- Create test requests you want to use in functional test cases. If you've already created the test requests, run the List test requests operation to get their identifiers.
- Run the List client profiles operation to get the identifier of the client profile you want to use in functional test cases.
- Create conditions you want to use in functional test cases. If you've already created the conditions, run the List conditions operation to get their identifiers.
- Create functional test cases. To do it, you need identifiers of the test requests, conditions, and client profiles you want to include.
- Submit a test run.
- Run the Get a test run operation to check the results.