Forum Discussion

manojgovikari's avatar
manojgovikari
Contributor
14 years ago

Calling function - function name defined in excel

Hi Team,



In our automation framework, we have all the function names are exist in external excel sheet with Y or N as execution status for each function.

Example:



Column1  Column2

Exec        Script

 Y            Login

 N            Logout



We are capturing the function names from the Excel sheet using DDT object and saving in variable as given below.

Funname = ObjDriver.Value(1)



Question: How do i need to call that function.

Call Funname or Call ObjDriver(1)  or CallMethod(Funname) are not working as the function name defined as string.



Please let me know the solution for above issue. Please do the needful








1 Reply

  • Hi manoj,



    As far as I understand, the second column contains script routine names, right? If so, try executing the needed routine using the Eval function: