Request parameters
The Execute Tests service takes certain string request parameters.
The strings are:
- ApplicationInformation – Optional. The name and version of the application for which
you want to run Pega unit test cases. You can pass it instead of the AccessGroup parameter.
- If you pass only this parameter, the service runs all the test cases in the application.
- If you do not pass this parameter, the service runs all the test cases in the application that are associated with the default access group that is configured for your operator.
Use the format ApplicationInformation=<application_name:application_version>.
- AccessGroup – Optional. The access group that is associated with the application
for which you want to run Pega unit test cases. You can pass it instead of the
ApplicationInformation parameter.
- If you pass this parameter, the service runs all the test cases in the application that are associated with this access group.
- If you do not pass this parameter, the service runs all the test cases in the application that are associated with the default access group that is configured for your operator.
Use the format AccessGroup=<access_group_name:access_group_user>.
- TestSuiteID – The pxInsName of the test suite that you want to run. You can
find this value in the XML document that comprises the test suite by clicking
Actions > XML on the Edit Test Suite form. You can run one test suite at a time.
When you use this parameter, all the test cases in the test suite are run, but no
other test cases in your application are run. This parameter is required for Pega
unit test suites. If test suites share the same name among applications:
- If you pass the ApplicationInformation or AccessGroup parameter with the TestSuiteID parameter, the service runs the test suite in the application that you specified.
- If you do not pass the ApplicationInformation parameter or the AccessGroup parameter with the TestSuiteID parameter, the system runs the test suite in the application that is associated with the default access group.
Use the format TestSuiteID=<pxInsName>.
- LocationOfResults – The location where the service stores the XML file that contains the test results. This parameter is optional for test cases and test suites.
- RunWithCoverage – Determines whether the application-level test coverage report is
generated after the Execute Tests service runs all relevant test cases or the
selected test suite. For more information, see Generating an application-level test coverage report.
- If you set the parameter to False, the application-level test coverage report is not generated. This is the default behavior.
- If you set the parameter to True, and application-level coverage is not running, the Execute Tests service starts application-level coverage mode, runs all unit tests, stops coverage mode, and generates the application-level coverage report. This report is displayed on the test coverage landing page in the Application level section.
- If you set the parameter to True, and application-level coverage is already running, the Execute Tests service returns an error.
Previous topic Running test cases and suites with the Execute Tests service Next topic Response