Can any one pls tell me about how to configure the environment variables in qtp and how to use the variables, with example:

Showing Answers 1 - 14 of 14 Answers

Amit Upadhyay

  • Jun 1st, 2006
 

Hi,

   

Setting the Environment Variable

VARIABLE=Environment.Value("XXXXXXX")

Retriving the Environment Variable

Environment.Value("XXXXXXX")=VARIABLE/CONSTANT

  Was this answer useful?  Yes

venkata

  • Jun 13th, 2006
 

If the env variable is set can it be accessed from different actions

can it be used for various testcases.Pls help how it can be used

  Was this answer useful?  Yes

Hi

Iam sorry to say that the script line for retreiving the variable ie
Environment.Value("OS")=x is wrong because it gives error as

"OS" is a built-in or external environment variable. You cannot modify its value.

so use Environment.Value("OS")=x to retrieve the value

here OS is one of the built in variable
bye

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions