Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to pass the value from action1 to action2?
#1
Solved: 11 Years, 4 Months ago
Hi,
I have one variable in action1.
ex
refid="LCC0209044"
I want to pass this value in Action2
ex\
Code:
Browser("Browser").Page("Page").ActiveX("TF3Child_UAT Control").WinEdit("Option"). Set (refid)


How to do this?
Reply
#2
Solved: 11 Years, 4 Months ago
Hi,
One way is to output this value from Action1 & pass as input parameter to 2nd action
Other way is to define this variable as Public, so it will be available throughout the test.
Reply
#3
Solved: 11 Years, 4 Months ago
Hi,
We can Pass values between actions by storing values in DataTable
Reply
#4
Solved: 11 Years, 4 Months ago
Hi ,

We can Pass the values from one action to other by using any of the following ways.
For example , there are two actions Action1,Action2 .

1. Inserting Output Value in Action1(Into Global sheet of Datatable) & then retrieving the same value from Action2
2. You can capture the Action1 value into Environment Variable programmatically & then access this Env. Var. from Action2
3. By using Action Parameters(By accessing Output parameter of Action1 in Action2)

Try to Implement accordingly , you can do that easily.Smile
Reply
#5
Solved: 11 Years, 4 Months ago
Thanks for your help
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  PASS/FAIL in QTP badri 3 6,218 12-05-2014, 03:26 AM
Last Post: kiranpol
  how to pass the data frm datatable silpavinod 3 3,969 10-18-2012, 01:54 PM
Last Post: silpavinod
  how to pass a numeric value into webedit silpavinod 3 3,867 10-15-2012, 01:57 PM
Last Post: silpavinod
  How to pass values between different tests in QTP vijaya.t 6 16,575 01-30-2012, 11:09 AM
Last Post: mrajeshtnl
Question Successful test not being marked as Pass pufftmd 3 3,258 02-08-2011, 07:09 PM
Last Post: pufftmd

Forum Jump:


Users browsing this thread: 1 Guest(s)