Micro Focus QTP (UFT) Forums
How to pass test paramers from qc to QTP - Printable Version

+- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums)
+-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP)
+--- Forum: UFT / QTP Interview Questions (https://www.learnqtp.com/forums/Forum-UFT-QTP-Interview-Questions)
+--- Thread: How to pass test paramers from qc to QTP (/Thread-How-to-pass-test-paramers-from-qc-to-QTP)



How to pass test paramers from qc to QTP - veera - 05-17-2011

Hi,

I want to run a script from qc.which is installed in remote machine.while running the test from qc i want to pass an excel file from qc to qtp machine.
then qtp should take that excel file and run the script.How can I do this using scripting.


RE: How to pass test paramers from qc to QTP - Jay - 05-17-2011

try this:
1. store excel file in the qc
2. set qc path where you have stored excel file in folder option
3. path = pathfinder.locate(<your file name>)
4. datatable.importsheet path, sourcesheet, destinationsheet