Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


waht is the diff b/w Environment variable and Global
variable in qtp?? explain types of variable in qtp??

Answers were Sorted based on User's Feedback



waht is the diff b/w Environment variable and Global variable in qtp?? explain types of variable i..

Answer / jay prakash

There are 2 types of Environment Variables in QTP:
1. User defined
2. Built In

The significance of environment variable is that the value
of environment parameters remains the same during the test
playback, regardles the number of iterations, unless you
change the value. The name of the built in environment
variable will be common across the test. Like UserName, OS
etc.
To see the list of env var you can go to File -> Setting ->
Environment Tab.

Please let me know in case more clarification is required.

Is This Answer Correct ?    8 Yes 1 No

waht is the diff b/w Environment variable and Global variable in qtp?? explain types of variable i..

Answer / murali

Environment variable can be used across any Action and any
test with in QTP. Since it is declared in QTP Environment
section

Global variable can be used with in a test and functions
associated to that test.

Is This Answer Correct ?    10 Yes 4 No

waht is the diff b/w Environment variable and Global variable in qtp?? explain types of variable i..

Answer / bfakruddin

Environment Variables and global variables are used for
similar purpose...

Environment Variables also have the global scope to access
in any test or action or Function...

Environment Variables: External Environment variables have
the global variables scope to use any where... They might
be stored in .xml file, .txt file or .ini files.. and use
where ever we want...

But... Internal Environment Variables can't be used with in
the different Tests... can be use with in several actions
in one Test.

I hope... you get understood... If not.. please let me know
here itself.

thanks & regards
Baba Fakruddin.D

Is This Answer Correct ?    6 Yes 2 No

waht is the diff b/w Environment variable and Global variable in qtp?? explain types of variable i..

Answer / medabalimi

Environment Variables:
As the name implies the Environment variables contain the
information related test environment and machine
environment.
Two types 1.Built-In and 2.User Defined. Though the Built-
in values seems to be constant they are actually variables,
the machine takes care of maintaining appropriate values.
Not editable directly by a user from QTP. Ofcourse the user
defined can be modified any time from QTP.
They are just Name & Value pairs and are of type string
data. Accessible globally in QTP tests. Example:
UserID="SomeName" Where Name="UserID" and Value="someName"

We can say the Environment variables are subset of Global
variables in one aspect. That means we can declare
variables with Name Value pairs of any type supported by
the script language. We have the advantage of defining
dimentional/hierachical data (multi dimentional arrays)
which is not possible with environment variables.

Is This Answer Correct ?    1 Yes 1 No

waht is the diff b/w Environment variable and Global variable in qtp?? explain types of variable i..

Answer / babu

Hi Reddy,

We can say Environment variables are the global variables
in QTP.
In QTP,as mentioned by Jayprakash we can use environment
variables in QTP.

Is This Answer Correct ?    0 Yes 5 No

Post New Answer

More QTP Interview Questions

Is it possible to refer the same object for referring more than one object that are of different class using the descriptive programming approach? Suppose my code is 'To create the object named as obj Set obj=Description.Create() 'To define the values obj("title").value="IE" obj("type").value="text" obj("html tag").value="INPUT" 'To set the value Browser("IE").Page("Yahoo").WebEdit(obj).Set "xyz" Can I refer the "obj" object for the three objects like Browser,page and webedit objects? If so how?

0 Answers  


if devloper change only button names in present build then script will execute or not , why? Only gui changed.......

2 Answers   Cap Gemini,


Can I change properties of a test object?

0 Answers  


Basically why we need testing?

14 Answers  


how u write vb script in qtp pls give me some basic script and some material

32 Answers   Datamatics, UHG, Winit,


Hi , I am facing issue QTP 10.0 with oracle ERP 11i .When QTP opens,click sub links on ERP ,FORM is not opening getting unexpected Internet explorer error message with send or don't send report.So unable to work with forms using QTP.

0 Answers  


How to create runtime property for an object?

7 Answers  


What is meant by Output Value in UFT?

0 Answers  


what is error and fault in terms of software quality?

0 Answers   TCS,


How to capture the text from the application using QTP?

3 Answers  


How to use regular expression in descriptive programming?

0 Answers  


Explain types of output values?

0 Answers  


Categories