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

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

We stored into the objects OR and then write the scripting

1539


I am a new tester that needs to create an automatic script involving security questions. On a webpage I need to select a security question(which are random) from a drop down menu, and then input the answer as the last word from the security question. I have the script set-up to automatically select the first security question from the drop down. The problem I am having is trying to insert the security answer. How do I insert the security answer based on the selection from the security question?

1846


after initiating one project for testing, when exacltly QTP tester role starts?

1397


How to do the scripting. Is there any inbuilt functions in qtp as in qtp-s. What's the difference between them? How to handle script issues?

527


why text area checkpoints cannot used for web applications

1881






How many types of parameters are available in quicktest professional?

520


Suppose I created one object as virtual object? That object is applicable to that test? Or all the tests?

562


Does Low-level recording capture mouse movements?

582


Could any one tell me "How can i recognize my cursor position using QTP 9.2" Give me a scripts for this

2059


i want information about API testing and i want info like how process can be done in company? i want added info like coding ,debugging, desing in c.v ? what should add in c.v for eg banking domin? pls any answer my question?

1603


What Folder Structure following in Keyword Driven Frame work?

2280


What is TOM in QTP?

1804


I need to obtain the parent of an object programatically, so if I have: winButton("aButton") I need to obtain the parent part: window("Window1").Dialog("Dialog1") so I can programatically create a string of the full name of the object to call it with an execute statement in QTP I would like to use something like: part[1] = "window(""Window1"")" part[2] = "dialog(""Dialog1"")" so I can do: exeLine = part[1]&"."&part[2]&"."&"winButton(""aButton"")" Execute exeLine Apart from keeping a record of the window/dialog hierarchy is there a parent or path function/ command Thanks Adrian

1567


How does quicktest professional (qtp) identifies the object in the application?

581


what is description object?

1593