Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Passing a value as an argument in function
#2
Solved: 10 Years, 9 Months, 3 Weeks ago
Hi qtpctc,

there is no issue with your function. The way you have called this is causing the issue
in the statement
Call loginpage(filight)
you need to pass a value which the argument(m) of your function is accepting.
so when you pass filight QTP treats is again as a variable which is not defined in your script.

so you will need to pass this as
Call loginpage("filight")

Hope you get my point.

Reply


Messages In This Thread
RE: Passing a value as an argument in function - by Saket - 08-18-2009, 05:44 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Click after CheckProperty to a WebElement passed via Function argument fails naruoga 0 1,035 02-28-2019, 11:46 AM
Last Post: naruoga
  Calling a function in a Test Script from a function library anupam4j 3 5,927 06-26-2015, 12:31 AM
Last Post: babu123
  Part of parameters missing when passing between actions skumar007 1 2,858 10-10-2014, 02:00 AM
Last Post: skumar007
  Action Parameter passing problem Qtpuser1 1 2,728 04-18-2014, 06:23 AM
Last Post: kgovadav
  Getting run error passing a Frame into a user defined function!!! sepgs2004 1 2,722 10-14-2013, 06:37 PM
Last Post: anil2u

Forum Jump:


Users browsing this thread: 1 Guest(s)