what are the environment variables,how do you use them.
give an example.

Answers were Sorted based on User's Feedback



what are the environment variables,how do you use them. give an example...

Answer / deepa

Environment Variables are variable whose value is fixed for
its usage everywhere.
There are two types.
1.Built in-which are already existing in QTP which we can
directly use in out script.
ex:ActionName,ActionIteration

2.User-defined
which user has to define and use those variables anywhere
in the action.
Ex:File path-Suppose u r reffering a data file in ur script
then store the location of ur file path in environment
variable and use it across the actions.

Is This Answer Correct ?    3 Yes 1 No

what are the environment variables,how do you use them. give an example...

Answer / chakrapani

Built in Enironment
a=Environment.Value("TestName")
msgbox a (this gives test script name )
if u see in qtp Resources Environment built in u find many
things like TestName, Pathdir,version etc

User defined Evironment

i want to store a value in run time and pass to another
script then
a=Enironment.Value("DocumentNumber")

Is This Answer Correct ?    0 Yes 0 No

what are the environment variables,how do you use them. give an example...

Answer / venkat

Environment variables are two types
1) Built in
2)User Defined

User Defined also two types
1)User Defined Internal
2)User Defined Internal

Is This Answer Correct ?    0 Yes 3 No

Post New Answer

More QTP Interview Questions

What is creation time property and how does it work?

1 Answers  


Difference between object identification and smart identification

2 Answers   Wipro,


what is the extension of action script template?

7 Answers   Capco,


Hi All, I am a beginner in QTP and have understood the basics of QTP by going through tutorial. I am trying to Automate a HRMIS application, What is the right approach to Automate this application. Kindly answer. Thanks in advance

1 Answers  


how we can take data in the username field text box into variable in web application explain with example and give all functions to get data into variables

1 Answers  


what is diffrense between action and function

4 Answers   IBM,


what are SetToProperty, SetROProperty,GetToproperty scripting?

2 Answers  


In application which areas to be automated and what kind of situation will be take? using QTP? Plz give me the clear answer

0 Answers   Tavant Technologies,


With what extension you can save the list of tests in a file to run in test batch runner?

0 Answers  


Hi! Using Descriptive Programming How do we get Parent object for an object. Say, i want to get a parent object for a "Link" in a web page. thanks

3 Answers  


Could we use QTP for java project(Which is develop in Netbeans and My SQL) otherwise which one is suitable?

1 Answers  


What are the main features we have to compulsory test by using qtp in an web based application

1 Answers  


Categories