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

Tell some commonly used Excel VBA functions?

828


Hi friends I need to know about jubula automation tool. Is anybody know in bangalore where jubula tanning class is going on do let me know. Its urgent for me to learn that tool please help.

3132


Explain step generator in qtp?

877


By using QTP can we record any log files written by the application which is in execution?

1728


What are the benefits of quick test pro(qtp)?

771


How to use the object spy in quicktest professional 8.0 version?

781


How can you exit from an action?

817


They asked by using qtp recording writing scripting

2329


Can we call qtp test from another test using scripting. Suppose there are 4 tests and I want to call these tests in a main script. Is this possible in qtp?

872


How many ways we can parameterize data in quicktest professional (qtp)?

833


Should have experience in framework means?

1659


The structure of keyword driven frame work is like a folder structure the different sub folder are 1-functional libray folder 2-object repository folder 3- database folder 4-appliction1.xls 5-initalzation vbs file 6-sequence file 7-driver script 8-test case list file My question is whether these are in a local server machine or in our pc.((whether It like Vss). can u give example of driver script(code)

3044


How to find the path of folder in which the test is saved in qtp?

768


Write the script to delete the mail which is at 9th,13th and 18th place in INBOX of Gmail ?

1916


What is the meaning Work bench?

1984