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

Answers were Sorted based on User's Feedback



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

Answer / deepa

Environment Variables are variable whose value is fixed for
its usage everywhere.
There are two types.
1.Built in-which are already existing in QTP which we can
directly use in out script.
ex:ActionName,ActionIteration

2.User-defined
which user has to define and use those variables anywhere
in the action.
Ex:File path-Suppose u r reffering a data file in ur script
then store the location of ur file path in environment
variable and use it across the actions.

Is This Answer Correct ?    3 Yes 1 No

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

Answer / 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

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

Answer / venkat

Environment variables are two types
1) Built in
2)User Defined

User Defined also two types
1)User Defined Internal
2)User Defined Internal

Is This Answer Correct ?    0 Yes 3 No

Post New Answer

More QTP Interview Questions

write a script to verify the image path(src property) of the images which are in web pages.(do it by Descriptive method by creating a description object)

1 Answers  


recording is not a good programming practice.How to write effective script without recording.Which is the correct method explain in detail

3 Answers   Infosys,


Can any body please tell me the steps of keyword driven frame work in qtp. My mail is saswat445@gmail.com please send some materials on keyword driven testing in qtp. thanks a lot...

0 Answers  


please send detail navigation for merging of object ripositories in QTP 8.2

3 Answers   Infosys, Ordain Solutions,


Presently i am working on QTP 8.2 Version,i want to know features in 9.2 version, because i have not sufficient time to put the effort on the 9.2 version

0 Answers  






In a WebTable 2nd row,3rd column contains one link and that link name is changing dynamically. How you will click the link?

1 Answers   Bank Of America,


What In-string function will do?

1 Answers  


How to change the Default synchronization method time and where?

4 Answers  


What is Parameterizing Tests?

4 Answers  


tell me exact differenceb bw qtp and selenium?(could not tell open soure and licennce? difference in usage and technical difference?

0 Answers  


How to Analyze the Checpoint results by Table and DB Checkpoints?

1 Answers  


Hi, I want to retrieve the cell data in the WebTable. For that I have defined a new test object under the browser and have given html tag and text as the test object properties. But while I try to identify it it says 'Object description is not unique'. I tried adding innerhtml, outerhtml, innertext and outertext along with the ordinal identifiers; but no use. What more properties need to be added to identify it? Also I want to enable smart identification for this object but the field is disabled in the object repository for this object alone(In QTP tools->object identification the enable smart identification checkbox is enabled). How do I enable it?

3 Answers  


Categories