Can any one explain about environment variables with examples?

Answers were Sorted based on User's Feedback



Can any one explain about environment variables with examples?..

Answer / pravati

environment variable is a variable which keeps the value through out action
environment variable are of two types
1.built in
2.userdefined
In built in-u can retrive the built in data
ex-msgbox environment.value("os")
In userdefined u can set the value in environment
ex-file>>setting>>envrnment>>userdefined(+)>>value(abc.01@gmail.com),name(username)
then retrive the data of value & name in test

Is This Answer Correct ?    0 Yes 0 No

Can any one explain about environment variables with examples?..

Answer / prathyusha

Environment Variables are used to get the basic information of system .
we do have two types
1.inbuilt environment variables
2.user-defined environment variables

Inbuilt environment variables used to get the basic information of system like test name,action name,user name,os
Eg: Environment.value("User Name")

User defined environment variables
two types
a.Internal environment variables
b.external environment variables

Internal Environment Variables are used to pass the values form one action to another action.
External environment Variables are used to store the master credentials of application.For this we can use Xml files to store the information and we can associate these files to the test and we can read the value using Environment.value("some variable").

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More QTP Interview Questions

how to acess a test in RSA?

0 Answers   IBM,


How can I generate customized logs in QTP ?

2 Answers   Ordain Solutions,


Whats the realtime QTP testing process

0 Answers   IBM,


how to find that tools work well with ur existing system?

0 Answers  


Tell me Three major differences between QTP & Winrunner?

5 Answers  






diff between wr and qtp in detail.

4 Answers  


I had created the new virtual objects for web application buttons. how to add those virtual objects into object repository. Previously i had used Gui map in winrunner for capturing virtual objects for web application. Please help me regarding this. need your answer quickly

1 Answers  


str="QTP AUTOMATION TESTING" here how many T are there in the str finally i want to display the T

10 Answers   HCL,


Hoe to generate all numbers in between to numbers suppose all numbers in between 1 to 100 using vbscript give me code

2 Answers  


While recording a login window QTP is identifying only parent window,then how can u identify the child objects.

2 Answers   Symphony,


Tell me about userdefined functions ?

1 Answers  


How to Analyze the Checpoint results by Table and DB Checkpoints?

1 Answers  


Categories