1.

How many types of environment variables QTP supports?

Answer»

QTP supports three types of Environment variables −

  • Built-in (Read only)

  • User-defined Internal (Read only)

  • User-defined External (Read/Write)

The given below syntax used to retrieve the Environment Variable

Environment.Value( "name") = "TutorialPoints"                  OREnvironment.Value( "OS") = " TutorialPoints"

Whereas

Environment.Value ("name") The syntax will return name as TutorialPoints

Environment.Value ("OS") This will return your system OS



Discussion

No Comment Found