Environment Variables enables you to use the variable
values from other sources during the run session.
the variable values can be specified by the users or QTP
can specify depending upon the conditions and options u
choose.
they are variables that you can change according to your
necessities related to what kind of utilities you want to
run on your system then give the location where the system
will follows to find it,if not satisfied write back your
question again
Hai Sriram,
Environment variable means, when we define these
variables we can call these variables in within the text
out side of the text,in QTP once we define the variable
againg we can't reuse those variable, but Enviroment
variable we can use as our require ment.
these variable may define into 3 ways
i) user define internall
ii) External
iii) Built in
user define internall mean we can call these variables
with in the text.
External variales means we can call within the text and
out side of the text, we can do modifcation also means we
rename it.
built in variable means we can call internall and external
purpose but we can't do any modification, readonly purpose.
i think u got it.
bye ......Sekhar(sekharbirada@gmail.com)
these variables are using in automation scripts which are
to be executed in different environments, so that these
variables are called as environment variable.
as testing part we neet to execute the test scripts in
different environments like unit, system, alpha, production
testings. where the information of all these environment
is different. so we use these variables to store the
information to execute the script successfully in different
environments.
Environment Variables are Global variables which scope
doesn't changes throughtout test execution,regardless of
the number of iterations,unless you change the values of
the variable programatically in your script.It use variable
values from other sources during the run session.These may
be values you supply or values that Quick Test generates
for you based on conditions and options you choose.
There are three types of Environment Variables.
1.Built-in
2.User-Defined Internal
3.Used-Defined External
ev are two types
Built in variable these are predefined helps to know
inbuilt properties like operating system ,hostname,server etc
userdrfined: this helps to send data externally to the QTP
EV are related to un & Pwd & URL of the application under
test.We can write this in the notepad and save in EV folder
with .ini extension in the Frame Work.(NOTE:-we have to
use[]to write EV)
When Ever Required using below code we can load this in the
script.
-----------CODE--------
environment.loadfromfile "path.ini"
Any doubts---------mail to-----mskalyan.smile@gmail.com
by using environment variables we can avoid the hard coded
values in script. and we can pass single value in the
script. they are 2 types
1. bultin
2.external/internal
in real time we can use external environment variables only
Hi Friends ,I want to Know name of the Site for the QTP
Help and the Best Book through that I can start the QTP
Practice here also whare can I download the QTP Users Guide
I search I was Unable .
how do find current links in webpage for ex: in
yahoowebsite today mainpage is having 50 links and next day
same page is having 60 links. if i run same programe it
should display total links in webpage ?
According to use, how virtual object is different from
object spy? If Qtp is not learning a sub-menues. What
should we done? how would we manage on the expert view too?
alkaa.dugaal@gmail.com
in how many ways we can write the user defined functions one
way i know that i.e storing it in .vbs another way i does
not know my friend said that .qtf or something but start
with q letter can any buddy knows about this