I have a large script that can be run in several datafiles, what is the shortest way or is there a way to incorporate these datafiles into this common script without creating a script for each datafile? Thanks. [img]/images/graemlins/confused.gif[/img]
Yes, you're right it's data driven testing. I was able to make the datafile work into my script already. I have a large datafile wherein I plan to divide them in batches but instead of creating separate script for each batch, is there a way in TC that I can just direct the datafiles in that single script (like after first batch is done, i just want to direct it to run the second batch of datafile and so on and so forth).
Well, you could wrap your existing data driven code in yet another driver routine. That second routine simply sets the filename/path for the new data file and then executes your existing routine.
That is essentially the way we do some of our tests... we have one CSV file that basically lists the tests. As that file is read, script code executes that, taking information from that file, it retrieves data from a second file which gives the steps for the test being executed. We go one more layer beyond that in that, for some of the steps being executed, we need to reference yet a third file to bring back some of the details...
Automated Testing Evangelists
Definition expert - noun - Unknown drip under pressure
Thanks a lot Robert, but do you have any example that you can show me as I am totally alien on this process. Say, I call my script "PLHOC01" and my datafiles are in H:\Test Complete\HOC|Day_1\001plhoccycle_01.csv to 001plhoccycle_07.csv.