Manaysah
Manaysah

Reputation: 383

modifying QTP imported Environment variables

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)

Upvotes: 0

Views: 774

Answers (1)

Programr
Programr

Reputation: 26

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

Upvotes: 1

Related Questions