How did you achieve reusability via QTP?
Answer / 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 |
if i have 10 actions and out of 10 actions last 3 actions i renamed will my script exicute sucesfuly r not? changed actions where i can see?
how to use the QTP choose the data from oracle? e.g. i input the identity card NO. this will be add new record in the database ,and now i want get this record's prime key.
What is the latest version in QTP?
55 Answers Bharti, Polaris, US Technology,
WHAT IS THE DESCRIPTIVE programming when it is useful? & when to use this ?
How to record objects of Windows taskbar
Pls let me know completely about descriptive programming, where it is used, pls explain with a real time example of its occurence and the program code written in qtp.
For Passing Parameters from one Action to another Action we will use Input & Output parameters. Can any one tell how to use this Input & Output parameters with Example ?
How do we run a test from the 3rd row of the datatable in QTP? Leaving the first two rows we need to test AUT from 3rd row to n'th row.
What are the disadvantages of recording test cases in qtp?
difference between GetRoProperry and GetToProperty.and where we've to use exactly those properties
write a qtp code to display all the items in the fly from combo box or list box
How to get all the objects count and objects names in webpage using QTP ?