Micro Focus QTP (UFT) Forums
Handling Testdata while running from QC - 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: VB Scripting/Descriptive Programming (https://www.learnqtp.com/forums/Forum-VB-Scripting-Descriptive-Programming)
+--- Thread: Handling Testdata while running from QC (/Thread-Handling-Testdata-while-running-from-QC)



Handling Testdata while running from QC - rameshrise3 - 10-14-2009

Hi,
I have implemented lot of Import statements in my script and now I would like to run from QC and in Importsheet stataements I gave datasheet path from local drives,
now as I am running from QC, I am specifying the data sheet from QC, File-->Settings---->Resources and I am using that sheet removing all import statements

Can anyone suggest better way to handle the test data whiel runnign from QC


RE: Handling Testdata while running from QC - rameshrise3 - 10-16-2009

Can anyone share their ideas, I would really appreciate, if anyone can reply.


RE: Handling Testdata while running from QC - rameshrise3 - 10-21-2009

Ankur, Basanth, any moderator or anyone else, if you can reply on this, that would be really great


RE: Handling Testdata while running from QC - jsknight1969 - 10-22-2009

I did this via Parameters.

I used two parameters named DataSheet and DataDir. Combined them to give me a full path to the data file then imported. In my case I pulled them from Quality Center Attachments. My import routine can use Quality Center or local files, just need the path and name.

On each test I created the parameters under settings with default values so I could run a simpler test without always having to specify a data sheet.


RE: Handling Testdata while running from QC - rameshrise3 - 10-22-2009

Thanks JS,
We can do that way, Did you use Environment variables? or action parameters?


RE: Handling Testdata while running from QC - jsknight1969 - 10-22-2009

I used action parameters so I could change them via QC test configuration. That way the same test could be run against a different set of data.