0

Using QTP, I need to import environmental variables from an XML sheet, but there that is the imported ones are the imported Environmental variables are on read only mode, it cannot be edited.

I need to know if there is any way to import environment variables and edit them and i need to know, somehow, is there any method to create environment variables from code(programmatically)

Manaysah
  • 375
  • 5
  • 15
  • 29

1 Answers1

1

To create environment variables from code, use below loc:

Environment("variablename")="Variablevalue" ' Create and intialise environment variable

Print Environment("variablename") 'To retrieve value of variable
AutomatedChaos
  • 7,267
  • 2
  • 27
  • 47
Programr
  • 26
  • 1
  • 2