Results 1 to 2 of 2

Thread: Environment variables in qtp

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Junior Member
    Join Date
    Jun 2007
    Answers
    6

    Environment variables in qtp

    hello all,

    what is environment variable and how & where to use them.
    kindly provide with an example.

    gauthami.


  2. #2

    Smile 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
  •  
About us
Applying for a job can be a stressful and frustrating experience, especially for someone who has never done it before. Considering that you are competing for the position with a at least a dozen other applicants, it is imperative that you thoroughly prepare for the job interview, in order to stand a good chance of getting hired. That's where GeekInterview can help.
Interact