Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Can we have the value of variable for one to another
#1
Solved: 10 Years, 9 Months ago
Hi,
Let say there are two actions, in action i we have a varible a and i m calling action2 from action1; how can i use the current value of a (which is in action1) in action 2.
Reply
#2
Solved: 10 Years, 9 Months ago
the best way to use the variables across actions is by using input parameters.
define an Input parameter in action2 and while calling the action in action1 pass the variable a as the input parameter to action2.

the other way would be declare a public variable in a library file, associate this with both the actions and then you can use the variable in other action.

Reply
#3
Solved: 10 Years, 9 Months ago
You can define Environment Variables in the Test settings or load dynamically using XML or ini file.

Passing the values you can use it in the format
Environment.value("VariableName") = Value.
Basanth
Give a fish to a man and you feed him for a day..Teach a man how to fish and you feed him for life.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)