Solved
Forum Discussion
4 Replies
Sort By
- murugans1011Regular Contributorthis can be done by building ur own framework. u can also use macros in excel to run tests from excel file.
a sample code executes function from excel in vbscript
Sub Global_Object_Reference
Set Exo=Sys.OleObject("Excel.Application")
Set Wbo=Exo.WorkBooks.Open("E:\book1.xlsx") 'excel file path
Set Wso =Wbo.WorkSheets("sheet1") 'sheetname
functionname=wso.cells(1,1) 'gets cell one value
ExecuteGlobal functionname 'executes function
End sub
refer this
http://www.codeproject.com/Articles/137481/Test-Complete-Storing-of-Test-Data-in-External-Fil
and build ur own approach - karkadilValued ContributorYes, it is possible by using eval function (JScript).
However, you'll need to decide how to specify unit name where the function is located, so it might be tricky, but still possible. - googleid_118035ContributorHi Murugan,
Thanks, Its works. Just one more question, does it’s possible to call function with parameters?
-----------
Thanks
Dev - murugans1011Regular ContributorYa Possible. Just Call function with param values in excel
Excel
login(test) 'Call like this
script
Function login(param1)
.....
.....
End function