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
How do you create new test sets in td?
What is QTP testing process?
What is a checkpoint? How many check points are there in qtp?
how to post xml data from QTP scripts to any application?
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.
Explain the difference between data driven testing and parameterization ?
how to test Web application using QTP software
What is object spy in quicktest professional?
Anybody plz give, How do you test aframe in a web page? If page cotain text message or Images, tables?
i have to login into gmail loginpage i have to pass testcase into userid and password by using functions. the test case of user id is it should take only lowerletters alphabetin between 4 to 6 length.it should not take spectial letters.it should not take numbers.testcase for password is it should take numbers and it should not take alphabets note the following things must happen 1 when i give correct password and userid that password and userid should be seen in QTP result and notepad,xl sheet 2 when i gave in valid password the system willgive message please give valid password that particular messaage should be seen in QTP result,norepa and xl sheet
what is the difference betn QTP 8.0 AND PREVIOUS VERSION
What are the two types of repositories available, explain them?
What is the difference between byref and byval in qtp?
How may types of defects identify application or your currently working application?pls give me answer..
What test you perform mostly? Regression or retesting in your testing process?