Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Calling a function using the variable name read from XL
#2
Solved: 11 Years, 4 Months, 4 Weeks ago
Hi,

At first, import all the data from the excel sheet to the QTP data table. Create a Driver Script action where you will be calling all the actions related to specific task. In the Driver Script action write the following code:

Code:
getTaskCount = DataTable.LocalSheet.GetRowCount
For counter=1 To getTaskCount
    DataTable.SetCurrentRow(counter)
    RunAction DataTable("Tasks",dtLocalSheet), oneIteration
Next

It really doesn't matter how many tasks you have in the data table, it will go on calling the actions as many time as you want Smile

Hope this will help you. Plese write if want further clarifications
Reply


Messages In This Thread
RE: Calling a function using the variable name read from XL - by PrabhatN - 11-09-2010, 05:19 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Want to read the data from excel and set read value in the JavaTable rajeevk7 0 2,355 07-10-2017, 04:20 PM
Last Post: rajeevk7
  Calling a function in a Test Script from a function library anupam4j 3 6,180 06-26-2015, 12:31 AM
Last Post: babu123
  Get the function name calling the function Shridevi.Salagare 1 3,769 09-07-2013, 05:07 AM
Last Post: jacosta
  Calling a HP Service Test Skript Gandalf2005 0 2,155 09-05-2012, 07:53 PM
Last Post: Gandalf2005
  Calling of function hamzaz 5 4,624 07-25-2012, 12:44 PM
Last Post: Shridevi.Salagare

Forum Jump:


Users browsing this thread: 3 Guest(s)