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 some test assets and related extensions of qtp?

0 Answers  


diff between global variables and environment variables in qtp?

1 Answers   FIS,


What is the extension of the qtp local repository?

0 Answers  


from what stage you will start automation in your project

5 Answers   TCS,


How to export data present in Datatable to an ".xls" file?

2 Answers  






Explain how Does Run time data (Parameterization) is handled in QTP?

0 Answers  


How can we change the .mtr file to .tsr file and vice-versa

3 Answers   Wipro,


If object is not recognized by qtp but the object is standard object what is your approach?

0 Answers  


What is the BPT(bussiness process testing ).and what is the main difference between BPT and QTP

3 Answers   EDS, GL Noble Denton, IIST,


can u please explain what r the challenges u faced in ur automation testing

2 Answers   Genpact,


I have some real time based question.. 1.what are the challenges you have faced in your current project. 2.what are the bugs you found in your current project. 3.what are the strategies you follow to convert manual test cases into automation test cases. 4.how QTP identify two different browsers. 5. When you create a function library and share object repository what are the problems you have faced 6. How to solve the tool tip problem 7.what are the interesting bug you have found in your current project. 8.what is your daily work as a automation test engg. 9. how to create a weekly status report. 10. how many test cases you write,review and execute per day. 11.what are the uses of SQL in automation. 12.How to retrieve the data in html through vb script. 13.If application is very slow how to test the application in qtp.

0 Answers   Cap Gemini, TCS,


Give me detailed theritical explanation about keyword driven, hybrid framework, environment variables, hybrid frame work

0 Answers   TCS,


Categories