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

A webPage has a ComboBox with 10 values in it. Write a script to select 4 vales from it using CTRL key

3 Answers   Virtusa,


what is a test strategy & what is the difference between test strategy & test plan?

5 Answers  


At a time how many users can access QTP?

5 Answers  


Analyzing the Checkpoint results ?

1 Answers   Crea,


hi this is srinivasa(from blr) i complited my B.tech(e.c.e) in 2007 im searching job in s/w testing but idont have freshers resume for s/w testing please send some s/w testing resume for me(fresfers resumes only) advns thnks you

2 Answers  






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

3 Answers   Infosys, Ordain Solutions,


Tell me the QTP Advantages and Disadvatages ?

1 Answers  


what all are the coverages , explain ?

2 Answers  


How to explain a banking project in interview as a test engineer???

0 Answers   Accenture,


How do you configure QTP AND Test director?

0 Answers  


suppose i can done the project in automation tool with QTP in that time what i can say?

3 Answers  


can any body pls mail me latest FAQ's in QTP to my mailid btrintra@gmail.com....Thanks in advance

0 Answers  


Categories