In this section
A test job is a set of one or more test scenarios that are associated with a specific environment configuration. When a test job is executed, the designated environment will be provisioned before the tests are executed. You can execute jobs on demand or with an automation tool, such as Jenkins (see Environment Manager Plugin for Jenkins). Test jobs are configured and run from the Test Scenarios page.
The test scenarios panel lists the .tsts in each connected SOAtest Server’s TestAssets folder. The panel is also updated automatically (see Integrating Virtualize Server and/or SOAtest Server with CTP for details). You can extend and modify the test suites directly from CTP. See Building Scenarios and Tests for details.
Click on a a scenario in the panel to view details.
You can use the search bars in test scenarios and jobs panels to locate specific assets. Metadata and names are included in the search.
The Jobs panel allows you to create, search filter, review, execute, and remove jobs, as well as review/remove job execution results.
The Jobs panel is automatically populated with jobs for the available SOAtest Test Executor component instances. In addition, the jobs are synchronized with the associated SOAtest Test Executor component instances, so changes are automatically applied if .tsts are added, removed, or reconfigured in the SOAtest Test Executor.
You can filter the available jobs to focus on specific systems and environments of interest.
Jobs are available both as a panel on the test scenarios page and on their own jobs page under API Testing. |
Click on a scenario to view the environment variables and data sources available for each scenario.
all
to configure the job to run all rows. Verify configuration of the component instances to be provisioned and make any adjustments.
Once configured correctly, the user can view the report from the Job History by clicking View report.
Jobs can be executed directly from the UI, or as part of an automated Jenkins job.
To use the UI to kick off a test job and provision any associated environments:
The specified test environment will be provisioned, then the tests will be executed. Progress and results will be indicated in the Jobs panel.
You may want to quickly run an existing job with new environment and/or variable settings without saving changes to that job and potentially impacting other team members who are also working with that job. In this case, just select the job, configure the environment context and/or variables, and click Execute without first saving the job. Be sure to select the top-level job node rather than a time-stamped job history node. Other changes, such as renaming the job, setting a different history limit, test configuration, requires saving the updates. Users with the provision role can make adjustments in order to customize their job executions, but cannot save changes.
The Parasoft Environment Manager Plugin for Jenkins (contact your Parasoft representative for download information) can automatically run test jobs as part of a Jenkins job. This plugin is designed to help you rapidly configure various actions needed for automated, continuous testing across your software delivery pipeline. For more details, see the description and documentation available on Marketplace.
You can disable tests inside of a job so that they do not run when executed.
This simplifies ad-hoc testing by enabling you to add a full suite of tests that can be disabled as necessary.
To review a test job’s execution results:
Icons in the Jobs panel indicate test outcomes.
To modify a test job’s .tsts or execution settings:
To clone an existing test job:
To clear a job’s history:
To remove a test job or test run:
You can replace .tst files within a test scenario that's part of job without affecting the job. See Replacing Test Files.
If you want to distribute test job execution across an "execution group" (a cluster of SOAtest servers grouped under the same server name), ensure that those servers all have:
The first of these servers to connect to CTP will be treated as the primary server in the execution group; the others will be considered alternates. The SOAtest server page shows only the primary servers (one server for each unique server name).
The page for a specific SOAtest server contains a table of the other servers in this same "execution group," along with their current status (online or offline). When the primary server is refreshed, all servers in that execution group will be refreshed.
The list of servers in the execution group is also shown when you select the primary server in the Test Scenarios page.
To run the distributed tests, simply ensure that all servers are running, then configure and execute the desired job to run on the primary server. If that primary server is busy executing another job, CTP will execute it on one of the other servers within that cluster.