Posts: 41
Threads: 11
Joined: Aug 2009
Reputation:
0
10-14-2009, 01:14 AM
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
Posts: 41
Threads: 11
Joined: Aug 2009
Reputation:
0
10-16-2009, 06:38 PM
Can anyone share their ideas, I would really appreciate, if anyone can reply.
Posts: 41
Threads: 11
Joined: Aug 2009
Reputation:
0
10-21-2009, 07:39 PM
Ankur, Basanth, any moderator or anyone else, if you can reply on this, that would be really great
Posts: 128
Threads: 9
Joined: Oct 2009
Reputation:
0
10-22-2009, 12:25 AM
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.
Posts: 41
Threads: 11
Joined: Aug 2009
Reputation:
0
10-22-2009, 12:29 AM
Thanks JS,
We can do that way, Did you use Environment variables? or action parameters?
Posts: 128
Threads: 9
Joined: Oct 2009
Reputation:
0
10-22-2009, 12:54 AM
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.