Versions:3.6+
QuerySurge QC/ALM Connector with Local Host Execution
Preparation
The QuerySurge QC/ALM Test Management Tool Connector needs to be installed and configured on the boxes that you plan to log into QC/ALM on. You can install the QC/ALM Test Management Tool Connector from your QuerySurge Installer (make sure to use the same installer version you used to install QuerySurge). Instructions for installing the Test Management Tool Connectors can be found here.
Setup
Note: The steps in this section can be done with any login to QC/ALM from any PC on you corporate network. Some steps in this section refer to the install directories for the QuerySurge QC/ALM Connector, so please make sure that you have access to a Connector installation.
- Log into HP Application Lifecycle Management
- In HP Application Lifecycle Management, click on Test Plan View
- Click Tests->New Folder
- Give the folder a Test Folder Name and press the OK button
- Right Click on the folder and choose New Test
- Enter a Test Name, make sure to choose the Type of VAPI-XP-TEST, and press the OK button
- Click the Finish button
- In your QuerySurge Test Management Tool Connector installation directory, open the qsapi.properties file, which, if you chose the default options while installing QuerySurge, is found in the C:\Program Files\QuerySurge\cli folder.
- In the file, insert a line right after # Client API and type your QuerySurge credentials, in the following form: QuerySurgeUserName=QuerySurgePassword
- Open the sample vbs file (ALM_QC_Script.vbs), which, if you chose the default options while installing QuerySurge, is found in the C:\Program Files\QuerySurge\cli\samples folder
- In the section between the START OF CONFIGURATION VARIABLES and END OF CONFIGURATION VARIABLES, Edit the variables to the specifics on your machine
- Back in HP Application Lifecycle Management, click the Test Scripts tab
- Copy the entire text found in the vbs file into the Test Scripts window:
- Click the Save button
- Click Test Lab
- Choose Test Sets->New Folder
- Give the folder a Test Set Folder Name and press the OK button
- Right click on the folder just created and choose New Test
- Type in a Name ("Demo Test Set" in this example) and press the OK button.
- Click the Select Tests button
- Navigate to your test
- Click the "left arrow" button to add the Test to the Test Set.
- Click the X button
Running QuerySurge from QC/ALM on a Local Host
Note: The steps in this section must be done by a user logged into a computer where the QuerySurge QC/ALM Connector is already installed. The Connector can be installed from the QuerySurge installer.
- Log into HP Application Lifecycle Management
- Navigate to your test set and select Run Test Set
- On the Automatic Runner Dialog: Click on the Run All Tests Locally
- Click the Run button
- When the test finishes close the Automatic runner to view the high level results
- Click Test Runs
- Click the Refresh button
- Click on your test result
- Click on Report
- You will see a URL provided in the Actual section, so copy and paste this result into a browser
- Type in your QuerySurge username and password
- You will be navigated right to the particular QueryPair you selected from HP Application Lifecycle Management
- Click on Steps
- Notice you will see the same URL in the Actual section as you did when you were in Report
- Click on the paperclip next to a QueryPair
- Click on the link to QuerySurge
- Type in your QuerySurge username and password
- You will be navigated right to the particular QueryPair you selected from HP Application Lifecycle Management
Troubleshooting
Running QuerySurge from QC/ALM
This section describes post-install, post-setup issues that may occur.
User Receives an “Error loading results” error message when running a test from HP Application Lifecycle Management
Please note that this error may be related to the user not having rights to the location where the cli folder is installed (Typically: C:\Program Files\QuerySurge\cli). Should this occur, please follow the following steps:
- Copy the cli folder to a location where you have access (such as Documents)
- Open up the bat file
- Make sure that the following line is reflective of the new location of the cli folder
- Please follow steps 9 and 10 above in the QuerySurge QC/ALM Connector with Local Host Execution Setup section on how to open the vbs file
- Pay careful attention to change the cliPath value to reflect the location of the bat found in the location where you copied the cli folder
- Please follow steps 11 and onward above in the QuerySurge QC/ALM Connector with Local Host Execution Setup section
VAPI-XP Test runs in QC/ALM, Pass-Fail results return, but No Steps are Created
This issue is usually related to the user permissions granted to the QC/ALM user by the QC/ALM admin.
- For QC/ALM to populate the run steps for a QuerySurge test execution the QC/ALM user login executing the test must have the appropriate QC/ALM permissions.
- QC/ALM permissions are set at the group level in the Project Customization section. Make sure that the correct ALM users are in the group whose permissions are modified for use with QuerySurge.
- In the QC/ALM Project Customization section, choose Groups and Permissions. Select Test Lab permissions. Choose a group that your QC/ALM users are in, and assign permissions for Create and Update rights, for the following:
- Result
- Run
- Run Step
- Test Instance
- Test Set
- Test Set Folder
- Make sure to Save your changes.
Note: Newer ALM versions will have more "child" options than previous QC/ALM versions (which may have no child options). Some of these will interact with higher-level choices, so selecting Create or Update will automatically configure the child options.
In the sample image below, a Group has been created by a QC/ALM Admin user for QC/ALM users who will execute QuerySurge VAPI-XP tests. This Group, called "QuerySurge Tester" has Test Lab permissions assigned as described above.
Comments
0 comments
Article is closed for comments.