Answer Posted / shrikant
By just creating a function you can achieve re-usability.
For example: 3 testers are automating an application. All 3 wanted to login. So instead of creating code by all 3 people only one person create login code in a function. That function can be used by other 2. This is also called Modular programming.
Or
In all the web applications common web objects will be there like
1.button--click
2.edit----enter characters
3.radio button---click
4.drop down----select
5.link-----click
6.check box----check in or out
etc........for all the objects make one generic functions add it in library files make use in all the actions this is called as re-useability.
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
What is environment variable in qtp and why to use it?
How many types of recording modes in qtp? Which will be used when?
What is ObjectParamater?
i have an external excel datasheet where it only contains 3 rows. after qtp executed the code to import the datasheet, the datatable getrowcount method now gives me a different value, lets say 60,000+ instead of only 3. i did not have any values starting from row 4 of my excel file. why is this happening? this also results to the qtp report to load for a very long time.
On what document base Descriptive programming is written if build is not yet ready ?
How to replay a script in qtp?
how will you load the test cases in ddt?
What are the key points to create a framework in QTP for oracle forms?
Could you please any one give code for the following ? Scenario : Suppose a excel file contains 10 records and earch have 5 fields. how can i input this excel file for datadrive wizard ? Please explain
what is object and child object.. explain ..if possible give some example for better understanding ..
What are the features and benefits of quick test pro (qtp 8.0)?
Discuss quicktest professional (qtp) environment?
Where you get the run time data table?
How to use userdifined environment variables.Once we created in Environment tab which is at File--> Settings-- >Environment-->Userdifined
is there any addin for remedy user application