manojgovikari
14 years agoContributor
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
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