Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Launch n-times QTP Test with different Excel Files
#2
Solved: 11 Years, 3 Months, 1 Week ago
Hi Andrea,

You can make use of the environment variable "TestIteration". You can write the code below:

Code:
If Environment("TestIteration") = 1 Then
    DataTable.Import("C:\File1.xls")
    Else
    DataTable.Import("C:\File2.xls")
End If

Hope this helps!
Reply


Messages In This Thread
RE: Launch n-times QTP Test with different Excel Files - by PrabhatN - 11-07-2011, 01:28 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Files comparison using QTP santosh.msr 0 2,169 07-11-2016, 11:38 AM
Last Post: santosh.msr
  UFT taking different script execution timings while comparing 2 excel files. sudheer 0 2,335 06-26-2015, 03:28 PM
Last Post: sudheer
  QTP Should open files(say txt files) it can be n number from a folder. Shiv Y 1 2,780 12-18-2013, 01:45 AM
Last Post: mlkrqtp
  To view log files in QTP sheetal 5 16,746 10-08-2013, 02:27 PM
Last Post: Gurpreet
  "qtp.launch" throwing "class not registered" error auto_tester 0 3,142 08-13-2013, 10:52 PM
Last Post: auto_tester

Forum Jump:


Users browsing this thread: 1 Guest(s)