Use of environment variables?

Answers were Sorted based on User's Feedback



Use of environment variables?..

Answer / hariprasad reddy

The variables declared in Action1, we cannot able to use
them in Action2. So, using Environment key we can access
any variable in any Actions. These variables are known as
environment variables

Is This Answer Correct ?    1 Yes 0 No

Use of environment variables?..

Answer / dinesh1433

in case of normal variable, it has scope of access within action only in which it is defined,now if a user wanted to use this varaible in another action then it is not possible.

so Environemnt varibale came into picture, in this case, if the environemnt value is defined at any action at point of time, then this will accessable through out the actions between the script exection,once the execution is stoped then the environment value loses the value assigned to it. it does not carry forward the value.

Is This Answer Correct ?    1 Yes 0 No

Use of environment variables?..

Answer / jayadev acharam

Environment values can be used in any Action of ur script,
those act as Global Variables

Is This Answer Correct ?    1 Yes 1 No

Use of environment variables?..

Answer / priya

Environment parameters are especially useful for
localization testing, when you want to test an application
where the user interface strings change, depending on the
selected language. Environment parameters can be used for
testing the same application on different browsers. You can
also vary the input values for each language by selecting a
different Data Table file each time you run the test.
You can also create environment output values, which
retrieve values during the test run and output them to
internal environment variable parameters for use in your
test.

Is This Answer Correct ?    0 Yes 2 No

Post New Answer

More QTP Interview Questions

how to re-install QTP 9.0 trial version.

25 Answers  


why use Description programming? what is advantages and disadvantage of this methods?

2 Answers  


Need one Urgent help please,for ex: first time i created Local reposory and convert that local to shared Rep and save in some where(by using Export local objetcs), unfortunately that saved repository is missed, now i want same repository,but iam not able to export the same repository second time?? i need that Repository only how to get???

2 Answers   TCS,


In a web page when we enter the city name corresponding zip code is coming in the required field.Can any one please write how to test using QTP,whether this code is coming from Database or not.

1 Answers  


I came across Good question ..... Write a script to only download pdf's if there are 20 links on a page. Kindly reply these type of questions are pretty challenging..

4 Answers   Keane India Ltd,






Plz give the vb script for the following scenerio I have faced one issues while doing test in QTP. I have described the scenario below. 1. I have to test web application.In that i want to select from the drop down values in the application. 2. Suppose Drop down has 5 value "A,B,C,D,E".I would like to give value from data table of QTP. 3. For every iliteration it should select A,then B and so on

0 Answers  


hello all i need some good sites or blogs which give info abt vb script with examples n real time scenarios.just like tutorials as i m new to qtp n vbscripting. its urgenttt

2 Answers  


What is throw object?

1 Answers   AZTEC,


Where is the resultset of a sqlquery (which is fired by rsobj.open sqlquery,xxxx,xxxx) stored ?

0 Answers   Accenture,


What r the advantages of automation?

3 Answers  


what are the parameters you are considering for object identification?

1 Answers  


How to retrieve the property of an object in QTP?

5 Answers  


Categories