GeekInterview.com
   Home |  Tech FAQ  |   Interview Questions |  Placement Papers |  Tech Articles |  Learn |  Freelance Projects |  Online Testing |  Geeks Talk |  Job Postings |  Knowledge Base | Site Search |  Add/Ask Question

  GeekInterview.com  >  Interview Questions  >  Testing Tools  >  QTP

 Print  |  
Question:  How do we pass values between actions in one test other than by action call?

Answer: Say for eg, if action_1 contains a variable 'C' containing the value of a+b, how can we display the result (value of 'C') in action_2 ?


March 03, 2008 08:00:53 #3
 gilshalev   Member Since: March 2008    Total Comments: 1 

RE: How do we pass values between actions in one test other than by action call?
 
Hi
You can assign the value to an Envirnoment collection:
Envirnoment("C") = c

This collection is familiar in all actions.
     

 

Back To Question