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

What are the file extensions for per-action, shared object repository files and what is the extension for library files?

4 Answers  


Suppose there is a bitmap with some text in it how do you write the script to get the text.

2 Answers   BirlaSoft,


Could i know how how to explain keyword driven framework in interview? If any body knows plz send the explanation.

0 Answers   Fiserv,


How to connect the real time application application with the QTP?

2 Answers  


what is recovery manager and recovey scenerio?

2 Answers   BirlaSoft,


how can i pass parameters into function?

4 Answers   Livetek,


Does QTP is "Unicode" compatible?

4 Answers  


is it possible to map an image as standard Object or u've to treat as virtual? how to map an Dynamic image into standard object?

1 Answers  


i have 100 manual test cases, how to automate from no 1. ols detail steps

1 Answers  


Hi, is it possible for recording shortcut key during record session? The application on which I am working is web based application. This application has several shortcut key associated with menu option. I have succesfully recorded all menu option but unable to record shortcut key.

0 Answers  


in qtp how we work with out put values and what is the process?

4 Answers  


how to get the particular chr in an array list the question is ....i have an array like this ABCD EBCF GBCH IBCJ HERE I NET TO GET ONLY "BC" FROM ALL HOW TO GET IT HELP ME ANY ONE THANKS

6 Answers   Cap Gemini,


Categories