what are the environment variables,how do you use them.
give an example.
Answers were Sorted based on User's Feedback
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 |
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 |
How to export quicktest professional (qtp) results to an .xls file?
in Qtp,how to display user name and pwd (script)in data table(global sheet).
can we take 'dim my pen is good' as a paramerter
What is Performance testing?
Which company is better amdocs or techm ???
How many ways we can parameterize data in QTP ?
in which situation u will use recording and in which situation u will used to write script manually
please give me the code for doing retesting of gmail login page using functions so the function has to give the value
Does QTP run in any environment?
How you debug your script?
HOW TO DO THE BATCH TESTING USING QTP?
Explain the QTP Tool interface.