| || |
Executing QTP scripts from QC
I want to execute all QTP script from QC
Am using data driven framework. all of my testdata,and test flow is in excel sheet like below. I have 5 action which will call from test flow sheet.
Test Flow sheet:
testcaseName Flow1 Flow2 Flow3 Flow4
TC1 ActionName1 ActionName2 ActionName3 ActionName4
TC2 ActionName1 ActionName2 ActionName4
TC3 ActionName1 ActionName4
Test Data Sheet:
FieldValues TC1 TC2
Username babu babu
Password babu babu
Frequency Monthly Yearly
Prem_value 100 1000
I have saved my Main test in QC. Kindly help me add my QTP action and excel sheet in QC. I want to execute all testscript(TC1,TC2..) from QC and need to see the result in QC.
Kindly help me to do that.
Thanks in Advance
Last edited by jgkgopi; 06-19-2013 at 07:25 AM.
I am trying to understand what you are trying to do.
What scirpt are the actions stored in? Is it the Main test?
OK, the way you are using Data-driven framework and Using QC are different approach. Although storing your test on QC and use DataTable as test data is also considered as Data-Driven framework, but the implementation is different. You need to convert your test to be able to use data in QC
My suggestion (high level):
1. Modify your Test Data excel file:
a. Test Data Table can be used in QC/ALM must have first row as Parameter name, so first row of each column is parameter name. From row #2, you put your test data there for that parameter.
b. Once it is updated, create new Test Resource, type: Data Table in QC, and upload your test data file there.
2. Update your test script to use DataTable:
a. In every parameter that you are using in your test script, update it to DataTable("<Parameter_name>", "<sheet_name>"). Parameter_name must match with column name in DataTable test resource
b. In you Test, open Test Settings, navigate to Parameter, update it to use DataTable in Test Resources you created in Step 1b.
Once you finish, upload your test to QC. Then create new test set and try to run it.
When you get the idea how test run on QC, you may convert all your test script to be able to work on QC.
Last edited by KiNGHAI; 06-19-2013 at 08:17 PM.
Thanks for your Idea. I will try and let us know back.
Originally Posted by KiNGHAI
am not using QC ALM. am using QC9.2 version.Is there any other alternate method is there
For your information, ALM (Application Lifecycle Management) is the next generation of QC (Quality Center). So I expected that legacy features will be identical. I don't have any QC 9.2 to check for you . In your QC, do you see Test Resources in it?