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
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 |
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 |
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 |
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 |
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 |
How to send QTP test results to an email...(with out using Quality Center)?
How to Practice QTP Scripts?
hi This is Harish.1. What is object repositery .2. what is frame works in QTP,what is keyword driven frame work,explain it and how to associate the folders.3.the build is developed in java, can we write scripting in vb .4.what is discriptive progaram,how to write it.5.what is process of QTp testing.6. how to associate the shared repository. 7.what is implicit and explicit 8.what is runtime data please replay me regards Harish
What is the process of synchronizing qtp and aut?
How can i open 5 multiple browser at once through QTP VB script and i want to login with 5 different credentials i already tried with this code but its entering credentials only for first browser and am using datatable to parameterize
what is Unicoad Compatibility ???? HOw does this makes a diffrence from Winrunner.???
What is Performance testing?
how can we write descriptive programming for menus when qtp is not able to identify it..and how can we write descriptive programming for partially identified and non standard objects..do i have to map the objects before writing the script
what is qtp automation frame work,what is the use of that frame work?
64 Answers Cap Gemini, IBM, iGate, TCS,
How to replay a script in qtp?
if you have the same application screen with 7 drop down boxes and approximately 70 values how do you test with QTP?
I Selected for TCS-Chennai(Contract to hire) position plz suggest me whether i have to join or not