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 get column count in datatable
what is supply chain management?
How to upload excel files into Quality Center using QTP Script and how to delete excel files from Quality?
DIFFERENCE BETWEEN WR 8.2 & QTP 8.2? HOW TO INTEGRATE WITH SOME OTHER TOOLS?
User defined function in QTP
how do u copy object repository?
When The Low Level Recording is Used in QTP
Hi All. Can you please explaing what is checkpoint? How it Will Work? what is meaning of "check checkpoint ("proprtname").how it will compate with expected value? Thanks in Advance............... Lakshmi
how to post xml data from QTP scripts to any application?
You will receive the mail in your outlook from client at night time to go ahead for the execution. Based on the mail you need to trigger the batch run. What is the QTP Code for this?
How to do call a output parameter from one action to another action??/
How to get line numbers in your editor in expert view?