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

How will you handle the situation when object is not captured during record?

2 Answers  


How can I generate customized logs in QTP ?

2 Answers   Ordain Solutions,


How to count no of edit boxes on the page?

3 Answers   IBM,


When I used random numbers(1 to 9) with regular expression and run the test, it runs only 5 iterations with passed result instead of running all 1 to 9. Please tell me what can be the reason

0 Answers  


What is the best institute in Ameerpet? If people think Ameerpet is the pride of hyd they need to go to Delhi/Gurgaon/noida you can find the difference.

3 Answers  






Hi, i want download attached files in test plan area from QC to local drive in my system using QTP script. Please help me

3 Answers  


I want to open a Notepad window without recording a test and I do not want to use SystemUtil.Run command as well How do I do this?

12 Answers  


What is the limitation to XML Checkpoints?

4 Answers   CTS,


How can we check whether a particular sheet loaded (existed) or not in Data Table.

7 Answers   TCS,


What is Maximum synchronization time out in QTP(By Default is 20sec). Anybody can answer it. Thanks in advance.

11 Answers   Polaris,


Suppose one object is changed in a project after delivering the project.Where we will update that object? it can be present in many scripts so can we update all the scripts?

1 Answers   IBM,


What is the difference between Client/Server application and Web application ?

2 Answers   ArisGlobal,


Categories