Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Not able to call the function
#1
Solved: 9 Years, 10 Months, 1 Week ago
In my Script, I have test data with Testcase name and test script is created as function and the function name is Testcase name(Seperate script for each test case).

Library function is associated with my main script and During the runtime read the test data and call test script(Testcase name and function name are same) and also passing the parameters while calling..the problem is not able to call the function
===main Script===
Code:
sTID=Lsht.cells(2,1)
sFileName=Lsht.cells(2,2)
sFilepath=Lsht.cells(2,3)
sResult =sTID(sFileName,sFilepath) //calling the function

Please Help me to resolve the issue.....

And one more information able to call without parameters by the bellow code

Code:
myfun=sTID
Result = Eval(myfun)


Also, please guide me call the function with parameter's..

Please Give your idea to pass the parameter...
Reply
#2
Solved: 9 Years, 10 Months, 1 Week ago
Hi guys this issue getting resolved by following code..

Code:
myfun=sTID&"(sFileName,sFilepath)"
Result = Eval(myfun)
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Calling a function in a Test Script from a function library anupam4j 3 6,113 06-26-2015, 12:31 AM
Last Post: babu123
  Executing RunAction along with Function Call danny2012 1 5,650 04-15-2013, 04:07 PM
Last Post: Saket
  "object was not found in object repository when doing 'call to existing function chong67 3 3,985 06-04-2012, 11:07 PM
Last Post: chong67
  Run Error on Function call mv8167 3 3,864 12-07-2011, 12:46 AM
Last Post: mv8167
  How to call function lib at run time from an action anilyad 5 10,486 09-03-2010, 10:00 AM
Last Post: anilyad

Forum Jump:


Users browsing this thread: 1 Guest(s)