How to run multiple data files (.xls) using one QTP test script in HP ALM 11? - Printable Version +- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums) +-- Forum: General (https://www.learnqtp.com/forums/Forum-General) +--- Forum: Posting Guidelines/Disclaimer (https://www.learnqtp.com/forums/Forum-Posting-Guidelines-Disclaimer) +--- Thread: How to run multiple data files (.xls) using one QTP test script in HP ALM 11? (/Thread-How-to-run-multiple-data-files-xls-using-one-QTP-test-script-in-HP-ALM-11) |
How to run multiple data files (.xls) using one QTP test script in HP ALM 11? - jsun01 - 04-19-2012 I have one QTP test script which can test different scenarios by using multiple data files (.xls). Now I'm going to use QC to run the test. I saved the QTP test script in Test Plan. Does anyone know how to manage the data files so that the same script can be run using multiple data files? RE: How to run multiple data files (.xls) using one QTP test script in HP ALM 11? - sshukla12 - 04-20-2012 (04-19-2012, 08:13 PM)jsun01 Wrote: I have one QTP test script which can test different scenarios by using multiple data files (.xls). Now I'm going to use QC to run the test. I saved the QTP test script in Test Plan. Does anyone know how to manage the data files so that the same script can be run using multiple data files? Hi, To use multiple data files i think u have 2 approaches. 1) load your data files in different actions(local data sheet to different actions) and use data files corresponding to these actions where it is required. 2) Load different data tables when it is required.like use 1st data table after it is completed load different data sheet from QC and use it. Regards, Sankalp RE: How to run multiple data files (.xls) using one QTP test script in HP ALM 11? - sshukla12 - 04-20-2012 (04-20-2012, 10:08 AM)sshukla12 Wrote:(04-19-2012, 08:13 PM)jsun01 Wrote: I have one QTP test script which can test different scenarios by using multiple data files (.xls). Now I'm going to use QC to run the test. I saved the QTP test script in Test Plan. Does anyone know how to manage the data files so that the same script can be run using multiple data files? Hi, Instead of having multiple data files use single .xls file with different worksheet in them(each worksheet containing data for each scenario). Load the file once with worksheet 1 execute the script and then loop the script for no. of worksheets u have and automatically loads the corresponding worksheet. Let me know if this is helpful 2 u or not. Regards, Sankalp RE: How to run multiple data files (.xls) using one QTP test script in HP ALM 11? - Shridevi.Salagare - 04-20-2012 You can use excel object and access the files. RE: How to run multiple data files (.xls) using one QTP test script in HP ALM 11? - jsun01 - 03-04-2013 [/quote] Hi, Instead of having multiple data files use single .xls file with different worksheet in them(each worksheet containing data for each scenario). Load the file once with worksheet 1 execute the script and then loop the script for no. of worksheets u have and automatically loads the corresponding worksheet. Let me know if this is helpful 2 u or not. Regards, Sankalp [/quote] Hi Sankalp, Thank you for your reply. Sorry for my late reply. The problem was resolved by using one of the very nice features in QC - Test Configurations in Test Plan module. Thanks, Jenny |