This topic explains how SOAtest test cases can be mapped to specific requirements in ALM / Quality Center. Once a test case is mapped to a requirement, the testing of the requirement becomes as simple as clicking a button inside ALM. Parasoft test cases can then be run from inside ALM and the results will be reported back to ALM.
ALM can run SOAtest test suites using the SOAtest command line interface (soatestcli), which can be used to run tests using soatestcli on the client's local machine.
In this section:
c:/Progra~1/Parasoft/SOAtest/[SOAtest version number]/.
The script is configured to run a test suite called example.tst
inside the TestAssets
project. The VAPI-XP-SOAtest.js integration script is used in your test's Test Script tab in order to tell SOAtest to run your project file and report the test results back to ALM / QC. Modify testSuite
and workspaceLocation
as needed.
The following table describes the variables that can be used to configure the script's behavior:
Variable | Description | Example |
---|---|---|
testConfiguration | The name of the Test Configuration (same as the -config CLI argument). | var testConfiguration = "builtin://Run Automated Server Tests"; |
testSuite | The relative path to your SOAtest project file from the workspace. | var testSuite = "TestAssets/example.tst"; By default, the script is configured to run a test suite called "example.tst" inside the TestAssets project. |
testName | The name of the test in the test suite to run. (same as the -testName CLI argument). | var testName = ""; |
dataSourceRow dataSourceName | Runs tests with a single data source row (same as the -dataSourceRow and -dataSourceName CLI arguments). | var dataSourceRow = ""; |
environment | The name of the environment to enable during testing (same as the -environment CLI argument). | var environment = ""; |
dataGroupConfig | The full path to the XML file that specifies the active data source for each data group within each .tst file contained in the test run. Equivalent to the | var dataGroupConfig = "C:/configFiles/dataGroupConfig.xml"; |
environmentConfig | The full path to the XML file that specifies the environment variables to use for each .tst file contained in the test run. Equivalent to the | var environmentConfig = "C:/configFiles/environmentConfig.xml"; |
reportDir | The location of the report directory. | var reportDir = "%TEMP%/parasoft/soatest/reports"; |
clearReportDir | If true, removes all files from the report directory before running SOAtest. | var clearReportDir = true; |
detailedReporting | Controls the level of reporting. If true, test results will show detailed information about each test run. If false, only information about test failures will be reported. | var detailedReporting = true; |
SOAtestExe | The full path to soatestcli.exe in your SOAtest installation location. | var SOAtestExe = "C:/Progra~1/Parasoft/SOAtest/<version>/soatestcli.exe"; |
workspaceLocation | The full path to the workspace var workspaceLocation = "C:/Users/name/soatest/workspace"; | var workspaceLocation = "C:/Docume~1/soatest-workspace/"; |
additionalArgs | Passes additional command line arguments to SOAtest. For example, set this to "-testName Custom" to only run the test named Custom. To run the entire test suite, leave this as empty string "" | var additionalArgs = ""-testName Custom"; |
To run a test in the Test Lab module:
After a test run is completed, you can see results summaries and details as you would for other tests.
For each test run, Test Center’s status column will indicate the overall success of your SOAtest test suite. For each test run, it will also show a list of run steps that correspond to each test that was executed within the SOAtest test suite. The status column for the run step will indicate whether that test passed or failed.
Detailed information about a test can be found by looking at the run step's Description field, which contains the following:
When running tests with ALM, you may encounter the following error messages.
Error Message | Resolution |
---|---|
You do not have the required permissions to execute this action | This error is thrown from within ALM when the QC user running a test from test lab module does not have one or more permissions turned on. The QC script that is shipped with SOAtest requires specific permissions to be turned on in order for the script to successfully perform certain tasks. If you see this error, you might not have the following permission set for the group that the logged in QC user belongs to: Status [RUN] (Modify Run > Status [RUN]). To view/change permissions for a group that a QC user belongs to in Quality Center, do the following:
To check that permission Status [RUN] is enabled:
|
SOAtest XML test results not found! | Verify the xmlReportLocation variable is correct. SOAtest must also have write permissions on the folder where the XML file is to be written. |