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 |
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)
recording is not a good programming practice.How to write effective script without recording.Which is the correct method explain in detail
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...
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
In a WebTable 2nd row,3rd column contains one link and that link name is changing dynamically. How you will click the link?
What In-string function will do?
How to change the Default synchronization method time and where?
What is Parameterizing Tests?
tell me exact differenceb bw qtp and selenium?(could not tell open soure and licennce? difference in usage and technical difference?
How to Analyze the Checpoint results by Table and DB Checkpoints?
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?