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?
#1
Solved: 11 Years, 3 Months, 4 Weeks ago
Hi,
I am having 3 Reusable Actions,
1.login 2.Function 3.Logout.
In the login Action I am getting My Platform Value thru input box,According to that Platform value I need to open the Excel sheet in Function Action.
How to Pass the value from one Action to Anothor.
Login Action
I set the input parameter thru Action properties and
Code:
Sysenv=Inputbox("Enter sysen"v)
i = Sysenv
RunAction "functions", oneIteration,i

and in FunctionAction

se = Parameter("i")
msgbox se
But it gives error.
Any help?
Thanks,
Uma
Reply
#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
#3
Solved: 11 Years, 3 Months, 4 Weeks ago
Hi Anil,
You are correct,I used input and output parameter and I have main Action to describe all the RUN Action..and it is working.
we can call the parameter to function,I used this too
RunAction ActionName, IterationQuantity, Parameters
Thank you somuch for the help.
Uma
Reply


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)