-
Junior Member
Environment variables in qtp
hello all,
what is environment variable and how & where to use them.
kindly provide with an example.
gauthami.
-
Junior Member
Re: Environment variables in qtp
Environment variables give information about your computer, the test that you are running currently, virtual user and scenario information (only when qtp script is used by Load runner during performance testing) etc.,
QTP version : 9.1
There are built-in variables and user defined variables in QTP.
user defined variables can be defined in an xml file outside QTP and can be imported.
Below example tells you how to get host name where you are running the script
MsgBox Environment.Value("LocalHostName")
The above line displays a message box with the local host name.
When and how to use environment variables depends on the context in which you are testing....
Hope this helps you in understanding env. variables.....
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules