How did you achieve reusability via QTP?

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.


In all the web applications common web objects will be there like


2.edit----enter characters button---click

4.drop down----select

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

More QTP Interview Questions

Is there any vbscript in QTP for Data Driven Test instead of using the option provided by QTP?

2 Answers  

How many types of parameters are there in QTP and what are they?

2 Answers  

Why do we go for Qtp? What are the advantages of qtp? Diff between winrunner and Qtp?

3 Answers   Symphony,

How to capture the Check point Value into a variable?

2 Answers  

What are the various versions of QTP that have been released so far? Please also mention the year of release for each version

4 Answers  

What is Object Spy?

8 Answers  

how do u get lib files into scripting files?

3 Answers  

what is Unicoad Compatibility ???? HOw does this makes a diffrence from Winrunner.???

1 Answers   GE,

how to compare two bitmaps( 1. clients requirement & 2. Designed by dev) in qtp 8.2 wann clear steps

0 Answers  

What is difference between QC and TD?

8 Answers  

Syntax for how to call one script from another? and Syntax to call one "Action" in another?

3 Answers  

Hi all, I am using windows vista, I am in the process of learning QTP. When ever I try to work with insert mode in flight application , i am getting the error of 'Operation must use an update table query, fractional truncation(null) error. Can anyone help me regarding this?

0 Answers