What is Environment Variable and when we apply this in QTP?

Answers were Sorted based on User's Feedback



What is Environment Variable and when we apply this in QTP?..

Answer / mercy

Environment Variable comes into picture when you try to
parameterize data. It is one of the data source. It
provides you some info which can be generated by the test
or the system you are using etc. Try selecting the
environment variable option...you get a list of values that
can be used like the iteration number, iteration name or
the system name etc.

Is This Answer Correct ?    4 Yes 0 No

What is Environment Variable and when we apply this in QTP?..

Answer / venu

Environment Variables are used during Parameterization.

For Example:
You have many set of scripts & every script makes a login.
To make a login we need Login credentials: Username &
Password. These 2 variables (Username & Password) can be
declared in a XML file & called in the each script as
environmental variables. Sometimes they are also known as
Global Variables, as these variables can be called in any
script.

Is This Answer Correct ?    4 Yes 1 No

What is Environment Variable and when we apply this in QTP?..

Answer / skyr

Based on the environment, data may be changed, to maintain our script execution on multiple environments, we have to use environment variables.
we can access E.variable values from all over the test pack.
When we parameterize data , we can use environment variables.

Is This Answer Correct ?    1 Yes 0 No

What is Environment Variable and when we apply this in QTP?..

Answer / chinna

Environment Variable we can use in any action at any test.
we have two types of environment variables. They are

1.Internal
2.External

Is This Answer Correct ?    2 Yes 7 No

Post New Answer

More QTP Interview Questions

for a test in QTP i had choose the object repository as shared.after completion of some days i want to conduct the same test again,now the question is HOW TO LOAD THE OBJECT REPOSITORY. is it possible by descriptive programming.could any one tell me how many ways we load it and what is the process?

13 Answers   Logica CMG,


Client is able to provide budget..he want you to choose the automation tool for the web application? which one you will select ? QTP or Selenium ? what are the reasons?

0 Answers   CTS,


How we can use the database checkpoint on a java web based application in which the database connectivity is done using JDBC->Pure Java type (in this type there is no need to create a DSN). At present in QTP we can fetch database values using checkpoint only through DSN. Is there any programming for this if we don't have DSN (ODBC)

0 Answers   LinkEdge,


How to create configuration scripts

1 Answers  


Suppose if a functionalityis not mensioned in requirement document and but its present in application. will it be consider as a bug and viceversa?

2 Answers  






When to use descriptive programming?

0 Answers  


Hi..friends can anybody write the script for this question... Am having some 20 nos of links in a web application, i want to click some 5,13 & 17th links. So please....can anybody give the answer....??? -->Hani<--

4 Answers  


can any one tell me what is process metrics and what is product metrics if possible give me example. Thank You

2 Answers  


There are two tabs in the application suppose, A and B.On clicking the tab "A" one table grid will open. if u click on tab "B" Another table gride will open. Now can I do some operations on both table grids with a single table grid properties in the object repository? I have added all objects of the first table grid into the object repository Now iam checking enable/disable status of "save button" in the second table grid my code is like this val=javawindow("zseries").javabutton("save").getroproperty ("enabled") when I highlighting the save button in the object repository by keeping open the second tablegrid on the application.It is displaying the popup message"The selected object can not be found in the application" can I use properties of one table grid for both tabs if so how it is possible. Can anyone help me

2 Answers   Livetek,


How many types of Test Plans are there...??

5 Answers  


On a web application I want to select list item 5 from a dropdown list. but QTP identifying this object as winobject. Then how can we select list item 5 from that dropdown list.

4 Answers  


WHICH functionalities of QTP used in Banking project?

2 Answers   Tarang, Wipro,


Categories