Action1: I have a value "test" stored in a variable X.
I want to use that variable X in Action2 .. how?



Action1: I have a value "test" stored in a variable X. I want to use that variable X in A..

Answer / litan

Use environment variables.

Action 1 : Environment.Value("x")="test"



Value of x=Environment.Value("x") can be used any action.

Is This Answer Correct ?    6 Yes 0 No

Post New Answer

More QTP Interview Questions

we have 10 more actions in our test and we are using exit action command to come out from the action if any error s occured.In action 1 if any error occurs control is moving to second action but if we get error in second action exitaction is throwing general run error. Please give a idea to overcome .

1 Answers   TCS,


What is the difference between local and shared object repository in qtp?

0 Answers  


Subj: realtime example of Database check point, Can any one please detail on how the Database check point is utilized/implemented in a real time project. I already know how to make one by creating DSN/ODBC and writing the required query manually and other steps...I wanted the actual concept of implementation...couple of live examples will be highly appreciated. Thank you in advance

0 Answers  


What is Performance testing?

2 Answers   Crea,


When do go for loop condition in test?

0 Answers  






How you can decide which type of object repository you have to use?

0 Answers  


How to return a value from a fn, if it has more than one value how to return

3 Answers   Verizon,


How do function returns a value?How can we pass one function value to other function as input

3 Answers  


How to use QTP for Regration testing, plz tell as with short Example of login window? plz tell as....

2 Answers  


can test automation improve test effectiveness?

0 Answers  


What is the difference between Call to Action and Copy Action.?

2 Answers  


How to export quicktest professional (qtp) results to an .xls file?

0 Answers  


Categories