WHAT IS ENVIRONMENT VARIABLES?
Answers were Sorted based on User's Feedback
I Agree with Umasankar.
Built In Variables are activated at runtime only. by using
this variables we can know test execution information. That
is which user is executed, how Iterations were executed,
which Actions were executed, which test was executed, test
directory path..like that.
User Defined Internals..we can create them and these
variables are used only a test where they were created. Once
u created that variable u can not modify the name of
variable and u can modify the value. If u want to use these
variable in many tests u can export them in XML file. there
u can modify the name of the variable.
User defined Externals...The variables which are Imported
from XML file are called External variables. These are read
only variables. u can modify name and value of these
variables. If u want to modify them..go to XML file which
are stored and right click on that file click n edit. the
script will open, there u can edit name and value.
this is completely about Environment variables.
If any queries..
|Is This Answer Correct ?||25 Yes||6 No|
Answer / umasankar
There are three types of environment variables:
User-defined internal. Variables that you define within the
test. They are saved with the test and accessible only
within the test in which they were defined.
User-defined external. Variables that you predefined in the
active external environment variables file. These variables
are read-only in this context.
Built-in. Variables that represent information about the
test and the computer on which the test is run, such as
Test path and Operating system. These variables are
accessible from all tests, and are designated as read-only
|Is This Answer Correct ?||30 Yes||13 No|
Answer / brahma reddy
As for as i know the use of environment variables in qtp
in qtp the variable which you have in one action cant be
used in some other action .so by using environment
variables we can use the variables in one action in to
|Is This Answer Correct ?||25 Yes||15 No|
Answer / venkatraj.b
environment variables are 3 types,
1. user defined internal
2. user defined external
|Is This Answer Correct ?||23 Yes||14 No|
Answer / siva krishna
Environment variables are two types
1 Built-in variables
2 User defined variables
By default Built in variables are available for every
test-script we can directly access them with
Environment.value("built-in variable name")
User defined variables
when ever we developing multiple scripts some common values
are used in multiple scripts then we will use user defined
variables. create xml file with environment variables and
attach it to the required test and use those variables in
side the test
|Is This Answer Correct ?||9 Yes||4 No|
Answer / zubair
Environment variables in QTP are similar to global variables
which can be accessed through any part of the script.These
variables can prove to be very useful when we want a
variable to be shared across various reusable actions and
Two Types of Environment variable:
1. Built in variables
2. User Defined variables
|Is This Answer Correct ?||1 Yes||1 No|
What are the different kinds of test steps?
There is an built in window application in qtp9.1,i.e.Flight4.0.i want to implement the recovery maneger on it.How can i do this?
Can anyone pls tell me in realtime (descriptive programming) how will the properties of the object be given to the test team. R they given in an excel sheet and is the same sheet also given to the development team and by whom is this given? Thanks a lot.
How to create configuration scripts
What r the advantages of automation?
what is parameterisation?
hi is there any chance to change encoding the password
How do you invoke any application and write a script to invoke QTP using VB Script.
If we write a script in the expert view how are the objects created in the object repository? to be clear i will explain my problem first i have recorded the mercurytours application by providing the link www.mercurytours.com and all the objects are stored in the object repository ok this is fine. but i have copied the script generated in the above processes and pasted in a new test and tried to run that script but as the objects were not stored in the object repository it showed an error (The "Welcome: Mercury Tours" object was not found in the Object Repository. Check the Object Repository to confirm that the object exists or to find the correct name for the object).so how can i overcome that error
Explain advantages and disadvantages kdf?
How to compare the two strings?
What is the default object synchronization timeout in qtp?