The features and functionality described on this page have been deprecated. |
This topic explains how SOAtest test cases can be mapped to specific requirements in HP 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 HP ALM. Parasoft test cases can then be run from inside HP ALM and the results will be reported back to HP ALM.
Sections include:
HP ALM can run SOAtest test suites using the SOAtest web service interface or the SOAtest command line interface (soatestcli). The web service interface enables clients to run tests using a shared instance of SOAtest running on a remote machine. The command line interface can be used to run tests using soatestcli on the client's local machine. Test runs will initialize and terminate much faster when using the web service interface.
The SOAtest web service is enabled by starting SOAtest in web service mode. The machine running SOAtest in web service mode must have access to a workspace containing the SOAtest test suites (.tst files) that you wish to run using HP ALM. Web service mode is available for the Automation Edition of SOAtest. For details about running SOAtest in web service mode, see Testing from the Web Service Interface.
There are two options for integrating SOAtest with HP ALM.
Both of these options allow HP ALM to run tests using the SOAtest web service interface or the SOAtest command line interface (soatestcli).
Parasoft SOAtest test type integration requires:
Instructions for installing custom test types can be found in the HP ALM ALM Installation Guide (on Windows 7, it can be found at C:\Program Files\HP\ALM\application\20qcbin.war\Help\doc_library\pdfs).
The following instructions are for installing the Parasoft SOAtest test type into HP ALM 11 or 12:
Extract the contents of the ZIP file that is shipped <SOAtest Installation>/integration/HP (deprecated)
to the folder <HP Deployment ocation>\application\20qcbin.war
. Refer to the HP ALM Installation Guide for the HP Deployment Location (on Windows Server 2003, it is C:\Documents and Settings\All Users\Application Data\HP\ALM
).
Instructions for installing custom test types can be found in the "HP Quality Center Custom Test Type Guide". This document can be found in Quality Center by choosing Help> Documentation Library.
The following instructions are for installing the Parasoft SOAtest test type into Quality Center 10:
application
directory (for example, C:\Program Files\HP\Quality Center\application\my_scratch_files
). jboss\server\default\deploy
directory and copy the 20qcbin.war
file to your scratch directory.integration\HP (deprecated)
directory (for example, C:\Program Files\Parasoft\SOAtest\<version>\integration\HP (deprecated)
) and copy the soatest_test_type.zip
file to your scratch directory on the Quality Center server.soatest_test_type.zip
into your scratch directory. This should create two folders: CustomTestTypes
and Extensions
.Update 20wcbin.war
with CustomTestTypes
and Extensions
. You can do this using the jar
command from the Java JDK. For example, you might use jar uvf 20qcbin.war CustomTestTypes Extensions
Since war files use the zip file format, a zip application could also be used to update 20qcbin.war
.
20qcbin.war
file in the jboss\server\default\deploy
directory—for instance, you could copy the original file, then rename it to 20qcbin.war.bak
.20qcbin.war
file from your scratch directory to the jboss\server\default\deploy
directory.http://<server:port>/qcbin/start_a.htm
Parasoft SOAtest
for the item name, then click OK.The following must be installed on any client machines that you want to use the Parasoft SOAtest test type:
In addition, each client machine should be configured to permit Parasoft software to execute. To do this:
When prompted, install Parasoft-branded addins.
If the dialogs ask whether to run software from Parasoft, choose the Always run software from Parasoft Corporation option. 1) Close Internet Explorer. 2) Install the Thawte Code Signing Intermediate CA from https://search.thawte.com/support/ssl-digital-certificates/index?page=content&actp=CROSSLINK&id=AR1493. 3) Restart Internet Explorer. 4)Try to log in again. |
Note that simply clicking Run (without enabling the Always run software from Parasoft Corporation option) is sufficient to enable the integration—but Internet Explorer will continue to open these security warning dialogs every time that you log in to ALM / QC.
SOAtest
) in the Test Folder Name field.SOAtest Demo
) in the Test Name field, then click OK.Control | Required | Description |
---|---|---|
Execution mode | X | Specifies whether to use the web service interface (server) or the command line interface (command line). |
Protocol | X | Specifies whether the SOAtest server connection uses HTTP or HTTPS. HTTPS Note By default, HP ALM / QC does not accept the self-signed SSL certificate that ships with SOAtest and is returned by the SOAtest server when using HTTPS (you will see an error message stating "...Security certificate required to access this resource is invalid..."). If you are connecting over HTTPS, be sure to:
By default, the SOAtest server port is 9443 for HTTPS and 9080 for HTTP. |
Host | X | Host name of the SOAtest server. |
Port | X | Port number of the SOAtest server. |
Username | * | Username for connecting to CTP Required if the SOAtest server is connected to CTP |
Password | * | Password for connecting to CTP Required if the SOAtest server is connected to CTP |
Executable | Full path to the SOAtest executable. | |
Workspace | Full path to the workspace directory. If empty, the default workspace will be used. Equivalent to the "-data" command line argument. | |
Resource | X | Relative path to the SOAtest .tst file from the workspace. Equivalent to -resource command line argument. |
XML Report | Full path to the XML report file which will store the test results. | |
HTML Report | Full path to the HTML report file. | |
Environment | Name of the environment to enable during testing. Equivalent to the -environment command line argument. | |
Test name | Run tests that match the specified name. Equivalent to the -testname command line argument. | |
Data source row | Run tests with a single data source row. Equivalent to the -dataSourceRow command line argument. | |
Data source name | Run tests with a single data source. Equivalent to the | |
Data group config | 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 -dataGroupConfig command line argument. | |
Environment config | 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 -environmentConfig command line argument. | |
Extra command line arguments | Pass additional command line arguments to soatestcli. For advanced users. | |
Custom request XML | Pass a custom XML request to the SOAtest server. For advanced users. | |
Custom script path | Full path to a SOAtest VAPI-XP script. Enables execution of a custom VAPI-XP script. For advanced users |
Client Configuration
The following must be installed on any client machines in order to use the SOAtest script with VAPI-XP test execution:
SOAtest
) in the Test Folder Name field.SOAtest Demo
) in the Test Name field, then click OK.SOAtest
for Script Name, then click Finish.HPQualityCenter.txt
located in integration/HP (deprecated)
within the SOAtest install directory.c:/Progra~1/Parasoft/SOAtest/[SOAtest version number]/.
The script is configured to run a test suite called HPQuality-Center.tst
within the examples/tests
directory. HPQualityCenter.txt
script and replace it in the template.The HPQualityCenter.txt
integration script (located in integration/HP (deprecated)
within the SOAtest installation directory) 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 HP ALM / QC.
SOAtestServerHost and testSuite should be modified as needed. SOAtestServerHost should be set to the hostname or IP address of the machine running SOAtest in web service mode. testSuite is the relative path to your SOAtest project file from the workspace that the SOAtest web service is using.
The script assumes the following:
Variable | Assumption |
---|---|
useWebService | true |
SOAtestServerProtocol | http |
SOAtestServerHost | localhost |
SOAtestServerPort | 9080 |
SOAtestServerUsername | "" |
SOAtestServerPassword | "" |
testSuite | "HPQualityCenter/HPQualityCenter.tst" inside a project called HPQualityCenter in the workspace |
testName | "" |
dataSourceRow | "" |
dataSourceName | "" |
testConfiguration | "user://Example Configuration" |
environment | "" |
dataGroupConfig | "" |
environmentConfig | "" |
xmlReport | "C:/Progra~1/Parasoft/SOAtest/<version>/examples/reports/HPQualityCenter.xml" |
htmlReport | "" |
detailedReporting | true |
The following table describes the variables that can be used to configure the script's behavior:
Variable | Description | Example |
---|---|---|
useWebService | Determines if tests will be run using SOAtest's web service interface. If false, tests will be run using the SOAtest command line interface. | var useWebService = true; |
SOAtestServerProtocol | Specifies whether the SOAtest server connection uses HTTP or HTTPS. | var SOAtestServerProtocol = "https"; |
SOAtestServerHost SOAtestServerPort | The host name or IP address of the machine running SOAtest in server mode. The port number of the machine running SOAtest in server mode. | var SOAtestServerHost = "localhost"; var SOAtestServerPort = 9080; |
SOAtestServerUsername SOAtestServerPassword | The username for connecting to CTP The password for connecting to CTP *Required if the SOAtest server is connected to CTP | var SOAtestServerUsername = “user1”; var SOAtestServerPassword = “password”; |
testConfiguration | The name of the Test Configuration (same as the -config CLI argument). | var testConfiguration = "user://Example Configuration"; |
testSuite | The relative path to your SOAtest project file from the workspace. | var testSuite = "HPQualityCenter/HPQualityCenter.tst"; Assumes that the test suite is inside a project called HPQualityCenter in the workspace. |
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 -data-SourceName 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 -dataGroupConfig command line argument. | 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 -environmentConfig command line argument. | var environmentConfig = "C:/configFiles/environmentConfig.xml" |
xmlReport | The full path to the XML report file that will store the test results. This file is created after each test run. | var xmlReport = "C:/Progra~1/Parasoft/SOAtest/<version>/examples/reports/HPQualityCenter.xml"; |
htmlReport | The full path to the directory for optional HTML report file. It CANNOT be the same name as the xml file. This reporting can be disabled by leaving it as an empty string "" | var htmlReport = "c:/Progra~1/Parasoft/SOAtest/<version>/examples/reports/HPQualityCenter2.html"; |
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 st.exe in your SOAtest installation location. | var SOAtestExe = "C:/Progra~1/Parasoft/SOAtest/<version>/soatestcli.exe"; This variable is deprecated and only applicable when useWebService is false. |
workspaceLocation | The full path to the workspace var workspaceLocation = "C:/Users/name/soatest/workspace"; | var workspaceLocation = "C:/Docume~1/soatest-workspace/" This variable is deprecated and only applicable when useWebService is false. |
additionalArgs | Passes additional command line arguments to SOAtest. For example, set this to "-test-Name Custom" to only run the test named Custom. To run the entire test suite, leave this as empty string "" | var additionalArgs = ""-testName Custom" This variable is deprecated and only applicable when useWebService is false. |
There are minor differences for these variables in SOAtest 5.5.x and SOAtest 2020.x: SOAtest 5.5.x Variables:
|
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:
Each run step also has Expected and Actual areas that are used for storing the expected test result and actual test result. If a test in your SOAtest project failed because of a diff or regression failure, these areas will be populated with the expected input and actual input received by the Diff tool that reported the error.
When running tests with HP 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 HP ALM when the QC user running a test from test lab module does not have one or more permissions turned on. The HP 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 10, do the following:
To check that permission Status [RUN] is enabled:
|
Automation server can't create object | Ensure that you have installed the Microsoft SOAP Toolkit SDK as explained in Parasoft SOAtest Test Type Configuration and Test Creation or VAPI-XP Test Type Configuration and Test Creation. |
WSDLReader: Loading of the WSDL file failed HRESULT=0x80040154: Class not registered. | This is a known problem when using the Microsoft SOAP Toolkit on some Windows computers. The Microsoft Support Knowledge Base describes the problem and various resolutions at http://support.microsoft.com/kb/922736. |
SOAtest XML test results not found! | Verify the xmlReport variable is correct. SOAtest Server must also have write permissions on the folder where the XML file is to be written. |