There are two actions in Test Script.Action1 and Action2. Action1 is Reusable. In Action2 we call Action1.How to Pass value from Action2 to Action1 and use it in Action1.PLEASE ANY ONE CAN HELP.

Showing Answers 1 - 3 of 3 Answers

Raver27

  • Jul 10th, 2006
 

Just create an output value to the global datatable of the test, now all actions in the test can read this value

  Was this answer useful?  Yes

satish

  • Jul 13th, 2006
 

If you need pass parameters between actions first we have to add then in the action properties

Step->ActionProperties->Parameters

For your problem we have to add a new input parameter "x" for Action1

then write the following code in Action2

RunAction "Action1",AllIterations,k      where k is the value being passed toa action1 and should be defined with some value in action2

then write the following code in Action1

msgbox parameter("x")

  Was this answer useful?  Yes

ashvini1218

  • Oct 18th, 2006
 

suppose you call Action2 from Action1 and Action2 has one

input and one output parameter defined.

RunAction "Action2", oneIteration, ?MyValue?, MyVariable

Supplies a string value of MyValue for the input parameter and stores the

resulting value of the output parameter in a variable called MyVariable.

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions