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

How to export quicktest professional (qtp) results to an .xls file?

0 Answers  


in Qtp,how to display user name and pwd (script)in data table(global sheet).

2 Answers  


can we take 'dim my pen is good' as a paramerter

2 Answers  


What is Performance testing?

2 Answers   Crea,


Which company is better amdocs or techm ???

2 Answers  






How many ways we can parameterize data in QTP ?

9 Answers  


in which situation u will use recording and in which situation u will used to write script manually

1 Answers  


please give me the code for doing retesting of gmail login page using functions so the function has to give the value

0 Answers  


Does QTP run in any environment?

0 Answers  


How you debug your script?

0 Answers  


HOW TO DO THE BATCH TESTING USING QTP?

8 Answers   CTS,


Explain the QTP Tool interface.

2 Answers   Crea,


Categories