what are the environment variables,how do you use them.
give an example.

Answer Posted / chakrapani

Built in Enironment
a=Environment.Value("TestName")
msgbox a (this gives test script name )
if u see in qtp Resources Environment built in u find many
things like TestName, Pathdir,version etc

User defined Evironment

i want to store a value in run time and pass to another
script then
a=Enironment.Value("DocumentNumber")

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Hybrid framework supports Descriptive programming. Is it true?

647


How can you give wait up to 10 seconds in qtp?

586


Explain how you can replace string in qtp?

601


Explain the concept of object repository & how qtp recognizes objects?

566


How to execute the WR Script through QTP? I have WinRunner script with initialization script, common scripts, GUI AND functions. I connected WR through QTP with "call to WinRunner" option but I am getting problem after connecting to WinRunner i.e. showing "Do you want to quit now" with 'yes' and 'No' message box

1827






WAT IS DATA BASE AND XML CHECK POINT ?HOW TO IMPLEMENT IT ... GIVE PROPER EXAMPLE FOR IT

1701


Can U Explain about QTP tool from older version to latest version also its differences?

1512


banking project description for software tester

7020


How do client side image and server side image work?

1384


How to do the scripting. Are there any inbuilt functions in QTP? What is the difference between them? How to handle script issues?

572


How to capture a window in QTP?

1523


if anyone has idea of the interview procedure in covansys, plz send me a mail?

1528


How do you test DLL files using automation Tool QTP?

2729


In qtp, how you can use xpath to identify objects?

614


How many lines of code in each script of QTP?

4036