An automation framework for Quality Center (QC) - QuickTest Professional integration
I thought of sharing our experience in designing a framework after we integrated QC and QTP. It was really very challenging to come up with a framework which will minimize our efforts and maximize the efficiency. After understanding the pros and cons we came up with a versatile framework for our project. I have included some of the key steps we did to design the framework. The actual framework can be seen here.
Storing Scripts in QC
1. After creating manual test case, you can generate a test script skeleton in which you can write scripts to run the test as an automated test.
2. To generate an automated test script:
3. In the test plan tree, choose the manual test that you want to automate.
4. Click the Design Steps tab and click the Generate Script button.
5. Choose an automated test type to convert to: QUICKTEST_TEST
6. Click on tab Test Script, any text that appeared in the steps of the manual test is listed as comments in the generated test script. If the manual test has parameters, they are also listed as comment text
7. Launch QTP tool by clicking QTP icon, it will launch QTP and open current test script in expert view.
8. Write and update test script, changes would be saved in QC in Test Plan module.
Or we can export test Script from QTP to QC for that need to first establish QTP-QC connection
1. In QTP, Go to File > Quality Center Connection.
2. Enter QC URL project name/domain/username/password and click on Login. QTP is now connected to QC.
3. Next you can select the save the QTP Script in QC.
4. In QTP, Select File Menu > Save As > Save in QC
5. Select the Folder in QC where you want to save the QTP Script
6. Click OK to Save.
Storing QTP Resources in QC
This is a key area in our framework, QTP resources are the ones to which QTP scripts are associated and referenced during their execution.
Below are the broad classification of QTP resources:
1. Function Library
2. Object Repository
3. Recovery Scenario
4. Environment File
5. Data Tables
The Test Resources module in QC enables you to manage resources used by your tests. You can organize your resources by defining a hierarchical test resource tree containing resource folders and resources. For each resource in the tree, you select and upload a set of resource files to the Quality Center repository. These files can be used by one or more tests
Running QTP script from QC
The Test Lab module in QC enables you to control the execution of the tests.
1. Select the Test Lab tab in QC
2. Click on "Select Test" button
3. On the left hand side list of test scripts appear
4. Drag and drop each of the test script of each scenario into the test set
5. Select all of them from the test set
6. Click on Run button
7. Another dialog box opens, Click on "Run All" button in that dialog box
You can have a look at our Automation Framework in Quality Center here.
Also read, 'Integrating Quality Center (QC) & QuickTest Professional (QTP)'
I thought of sharing our experience in designing a framework after we integrated QC and QTP. It was really very challenging to come up with a framework which will minimize our efforts and maximize the efficiency. After understanding the pros and cons we came up with a versatile framework for our project. I have included some of the key steps we did to design the framework. The actual framework can be seen here.
Storing Scripts in QC
1. After creating manual test case, you can generate a test script skeleton in which you can write scripts to run the test as an automated test.
2. To generate an automated test script:
3. In the test plan tree, choose the manual test that you want to automate.
4. Click the Design Steps tab and click the Generate Script button.
5. Choose an automated test type to convert to: QUICKTEST_TEST
6. Click on tab Test Script, any text that appeared in the steps of the manual test is listed as comments in the generated test script. If the manual test has parameters, they are also listed as comment text
7. Launch QTP tool by clicking QTP icon, it will launch QTP and open current test script in expert view.
8. Write and update test script, changes would be saved in QC in Test Plan module.
Or we can export test Script from QTP to QC for that need to first establish QTP-QC connection
1. In QTP, Go to File > Quality Center Connection.
2. Enter QC URL project name/domain/username/password and click on Login. QTP is now connected to QC.
3. Next you can select the save the QTP Script in QC.
4. In QTP, Select File Menu > Save As > Save in QC
5. Select the Folder in QC where you want to save the QTP Script
6. Click OK to Save.
Storing QTP Resources in QC
This is a key area in our framework, QTP resources are the ones to which QTP scripts are associated and referenced during their execution.
Below are the broad classification of QTP resources:
1. Function Library
2. Object Repository
3. Recovery Scenario
4. Environment File
5. Data Tables
The Test Resources module in QC enables you to manage resources used by your tests. You can organize your resources by defining a hierarchical test resource tree containing resource folders and resources. For each resource in the tree, you select and upload a set of resource files to the Quality Center repository. These files can be used by one or more tests
Running QTP script from QC
The Test Lab module in QC enables you to control the execution of the tests.
1. Select the Test Lab tab in QC
2. Click on "Select Test" button
3. On the left hand side list of test scripts appear
4. Drag and drop each of the test script of each scenario into the test set
5. Select all of them from the test set
6. Click on Run button
7. Another dialog box opens, Click on "Run All" button in that dialog box
You can have a look at our Automation Framework in Quality Center here.
Also read, 'Integrating Quality Center (QC) & QuickTest Professional (QTP)'
Thanks for the guidance and overview.
ReplyDeleteQTPbook
How can I generate a new script when the design steps have changed? I cannot delete the old script file!
ReplyDeleteHow to get the Test Lab details like tester name, region, test case name, status? can u pls help some one
ReplyDeleteSuppose we have uploaded a QTP script in QC Test Plan folder and the script uses some function libraries & Environment variable file.
ReplyDeleteSo in this case are you saying that we need to upload all our files in Test Resources tab of QC.
Can you please provide the screenshots with steps of what tree hierarchy is to be followed in both Test Plan & Test Resources tab.
Suppose we have uploaded a QTP script in QC Test Plan folder and the script uses some function libraries & Environment variable file.
ReplyDeleteSo in this case are you saying that we need to upload all our files in Test Resources tab of QC.
Can you please provide the screenshots with steps of what tree hierarchy is to be followed in both Test Plan & Test Resources tab.