This is in continuation of our series of articles on Test Lab Module in QC and it is the last article of series. In the first article we saw how to create a test set, move scripts from test plan and run them manually, in the second article we discussed how to log defects from test lab module
In this article we’ll see how we can run automated QTP scripts from Test Lab in QC.
Before you try to run your automated scripts from test lab, you need to make sure that your tool (QTP/ WinRunner ) is connected with Quality Center. Here are the steps to connect QC to QTP.
First you need to ensure that Allow other Mercury products to run tests and components option present under Tools > Options > Run in QTP is checked.
If you are running the tests on the same computer where you have QC client installed, then you will need:
- QTP Connectivity Add-In
- QTP Add-in
If you are running the tests on the different computer than where you have QC client installed, then you will need:
- QTP Add-in where QC client is installed.
- QTP Add-in and QC connectivity Add-in where QTP is installed.
QC connectivity can be found at QC server URL > ‘Add-Ins Page’ link > ‘QC Connectivity’ link > ‘Download Add-in’. QTP Add-in can be found at QC server URL > ‘Add-Ins Page’ link > ‘More QC Add-ins’ link > Download and install QTP Add-in according to its version.
We will now see how to execute the automated test scripts from the test lab module. (Click on the individual images below to view them in full size, press ‘Esc’ key to return)
Navigate to Test Plan module in QC.
[wp_lightbox_prettyPhoto_image link=”https://www.learnqualitycenter.com/wp-content/uploads/2011/10/27.jpg” description=”QC Test Lab” source=”https://www.learnqualitycenter.com/wp-content/uploads/2011/10/clip_image0022.jpg” title=”QC Test Lab”]
Create a folder under the root folder and right click to create a new test as shown below.
[wp_lightbox_prettyPhoto_image link=”https://www.learnqualitycenter.com/wp-content/uploads/2011/10/28.jpg” description=”QC Test Lab” source=”https://www.learnqualitycenter.com/wp-content/uploads/2011/10/clip_image0041.jpg” title=”QC Test Lab”]
Once New test option is clicked a pop up appears as shown below. In the Test Type box, select QUICKTEST_TEST to create a Quick Test Professional test, or select WR-AUTOMATED to create a Win Runner test.
[wp_lightbox_prettyPhoto_image link=”https://www.learnqualitycenter.com/wp-content/uploads/2011/10/29.jpg” description=”QC Test Lab” source=”https://www.learnqualitycenter.com/wp-content/uploads/2011/10/clip_image006.jpg” title=”QC Test Lab”]
In the Test Type box, select QUICKTEST_TEST to create a Quick Test Professional test, or select WR-AUTOMATED to create a Win Runner test.
[wp_lightbox_prettyPhoto_image link=”https://www.learnqualitycenter.com/wp-content/uploads/2011/10/30.jpg” description=”QC Test Lab” source=”https://www.learnqualitycenter.com/wp-content/uploads/2011/10/clip_image0081.jpg” title=”QC Test Lab”]
Once Test Name is provided and user clicks on OK.It takes to the next step where we need to provide the description as shown below.
[wp_lightbox_prettyPhoto_image link=”https://www.learnqualitycenter.com/wp-content/uploads/2011/10/31.jpg” description=”QC Test Lab” source=”https://www.learnqualitycenter.com/wp-content/uploads/2011/10/clip_image0101.jpg” title=”QC Test Lab”]
Once the user clicks on OK, a test is created as shown below.
[wp_lightbox_prettyPhoto_image link=”https://www.learnqualitycenter.com/wp-content/uploads/2011/10/32.jpg” description=”QC Test Lab” source=”https://www.learnqualitycenter.com/wp-content/uploads/2011/10/clip_image0121.jpg” title=”QC Test Lab”]
Once the automated test case is created. Click on Test Script tab present on the right hand side.A script is generated based on the design steps of the test case as shown below.
[wp_lightbox_prettyPhoto_image link=”https://www.learnqualitycenter.com/wp-content/uploads/2011/10/33.jpg” description=”QC Test Lab” source=”https://www.learnqualitycenter.com/wp-content/uploads/2011/10/clip_image0141.jpg” title=”QC Test Lab”]
Navigate to Test Lab module present on the left hand side of the application.
[wp_lightbox_prettyPhoto_image link=”https://www.learnqualitycenter.com/wp-content/uploads/2011/10/34.jpg” description=”QC Test Lab” source=”https://www.learnqualitycenter.com/wp-content/uploads/2011/10/clip_image016.jpg” title=”QC Test Lab”]
Navigate to the folder created and add a test set “Test†as shown below.
[wp_lightbox_prettyPhoto_image link=”https://www.learnqualitycenter.com/wp-content/uploads/2011/10/35.jpg” description=”QC Test Lab” source=”https://www.learnqualitycenter.com/wp-content/uploads/2011/10/clip_image018.jpg” title=”QC Test Lab”]
Right click and select the option “Select tests†which open a test plan tree as shown below.
[wp_lightbox_prettyPhoto_image link=”https://www.learnqualitycenter.com/wp-content/uploads/2011/10/36.jpg” description=”QC Test Lab” source=”https://www.learnqualitycenter.com/wp-content/uploads/2011/10/clip_image020.jpg” title=”QC Test Lab”]
Select the tests from the test set by clicking on the left arrow in the test plan tree present on the right hand side.
[wp_lightbox_prettyPhoto_image link=”https://www.learnqualitycenter.com/wp-content/uploads/2011/10/37.jpg” description=”QC Test Lab” source=”https://www.learnqualitycenter.com/wp-content/uploads/2011/10/clip_image022.jpg” title=”QC Test Lab”]
The selected test will appear in the test set.
[wp_lightbox_prettyPhoto_image link=”https://www.learnqualitycenter.com/wp-content/uploads/2011/10/38.jpg” description=”QC Test Lab” source=”https://www.learnqualitycenter.com/wp-content/uploads/2011/10/clip_image024.jpg” title=”QC Test Lab”]
Select the required test case and click on the “Run†button present on the top, below the menu bar.
[wp_lightbox_prettyPhoto_image link=”https://www.learnqualitycenter.com/wp-content/uploads/2011/10/39.jpg” description=”QC Test Lab” source=”https://www.learnqualitycenter.com/wp-content/uploads/2011/10/clip_image026.jpg” title=”QC Test Lab”]
The automatic runner pop up opens up, where the test to be run will be selected. Then click on Run.
[wp_lightbox_prettyPhoto_image link=”https://www.learnqualitycenter.com/wp-content/uploads/2011/10/40.jpg” description=”QC Test Lab” source=”https://www.learnqualitycenter.com/wp-content/uploads/2011/10/clip_image028.jpg” title=”QC Test Lab”]
This connects to the automation tool which is integrated with the QC application and gives us the result of the run for the particular test case.
When a test has finished running you can view the test results in your selected testing tool
- To view the test results in Quick Test Professional, click the ‘Launch Report’ button.
- To view the test results in Win Runner, click the ‘View Report’ button.
hi,
pls provide the tutorial for how to log the defects.
Thanks in advance.