In this section:
Table of Contents | ||
---|---|---|
|
Overview
The test impact analysis (TIA) functionality analyzes the coverage data for your the application under test and outputs a .lst file indicating which tests generates a list of tests that have been affected by changes to since the application. You can pass the previous build. The list of tests are saved to a .lst file that you can pass as a resource to the SOAtest command line so that it can run interface. SOAtest will only the subset of tests affected identified by change TIA in order to validate the changes. In this section:
Table of Contents | ||
---|---|---|
|
Overview
Test impact analysis is intended to be implemented as part of an automated process. The following overview describes the test impact analysis process:
- Configuration: Configure the coverage agent (agent.jar) shipped with SOAtest, attach it to your AUT, and enable SOAtest to communicate with the agent.
- Collect information about what test cases cover: Run your full test suite so that the agent can collect data about the tests and the code they cover.
- Generate a baseline coverage report: Process the data collected by the agent to create a baseline report.
- Generate the .lst file containing the tests affected by changes: When a new version of the application is available, run the
TestImpactAnalysis
script script to process the baseline coverage report. A .lst file containing the tests affected by change will be created. - Run the tests affected by change: Deploy the latest version of the application (.war) to your server and run a job that executes SOAtest using the .lst file as the input to verify the changes.
Configuration
TIA is intended to be implemented as part of an automated process. Perform the following steps to enable TIA.
...
jtest.agent.associateTestsWithCoverage | Enables/disables associating coverage with particular tests; the default value is false . |
---|---|
jtest.agent.runtimeData | Specifies a location on the application server for the agent to store the coverage data it collects at runtime. |
jtest.agent.includes | A comma-separated list of patterns that specify classes to be instrumented. The following wildcards are supported:
In the following example, all classes from the
|
jtest.agent.excludes | A comma-separated list of patterns that specify classes to be excluded from instrumentation. The following wildcards are supported:
In the following example, all classes from the
|
jtest.agent.autostart | Enables/disables automatic runtime data collection; the default is true . |
jtest.agent.port | Sets up agent communication port; the default is 8050 . |
jtest.agent.debug | Enables/disables verbose output to console; the default is false . |
jtest.agent.collectTestCoverage | Enables/disables collecting coverage information for test cases. The ; the default value is false . |
jtest.agent.enableMultiuserCoverage | Enables/disables collecting web application coverage for multiple users; the default value is |
jtest.agent.serverEnabled | Activates the agent. |
...