Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to pass the value from one reusable action to another reusable action?
#2
Solved: 11 Years, 3 Months, 4 Weeks ago
Hi Uma,

1) You cannot Pass parameter to Function action when you are calling it from Login action as the parameter can be sent only after the completion of Login action.

2) Try to call Login, Function & Logout in a single Master script.
In 'Login' action
Go to Edit -> Action -> Action Properties -> Parameters - Declare your output parameter "i" here and then in your code assign value
Parameter("i")=sysenv

Now in 'Function' Action Go to Edit -> Action -> Action Properties -> Parameters - Declare an input parameter with some name say 'env' and then in your code assign value
env1=Parameter("env")

3) Declare your actions like this in Master script:
RunAction "Login", oneIteration,val1
RunAction "functions", oneIteration,val1 (Note this should be the same variable which you are returning in the above action i.e. Login)

Hope this would help
Reply


Messages In This Thread
RE: How to pass the value from one reusable action to another reusable action? - by anil2u - 10-05-2011, 05:41 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Action Parameterization Issue Slothman 1 1,970 10-31-2020, 01:05 PM
Last Post: Ankur
  no action on click for particular wpf button jlavrecka 1 1,430 05-21-2020, 11:33 PM
Last Post: jlavrecka
  Object not found during the 2nd iteration of an Action call in a For loop BGunay 0 973 04-23-2020, 07:08 PM
Last Post: BGunay
  UFT 14.01 - identifying wpf objects. but not performing action. chinmoyee 1 2,503 11-15-2017, 03:42 PM
Last Post: Ankur
  Default state of new action aparajita 1 2,355 08-25-2015, 12:11 AM
Last Post: aparajita

Forum Jump:


Users browsing this thread: 1 Guest(s)