QTP10.com is a new and completely free website that offers help in all the versions of HP QTP (including latest version 10). More importantly, it offers free code for users of HP QuickTest Professioal. This site helps you in learning the basics of QTP and descriptive/advanced programming in (QTP) on various environments like - .Net, Infragistics, Web, Windows, etc.

Note -
This blog is NOT affiliated with HP / Hewlett-Packard in any way. The data/questions come from various sources and we have our own testing questions. I am just another Software Tester like you.

Friday, May 8, 2009

QTP Tests Using Keyword-Driven Testing

SPONSORED LINKS

Keyword-driven testing advantages include the following:

1. In QTP, Keyword-driven testing enables you to design your tests at a business level rather than at the object level. For example, QTP may recognize a single option selection in your application as several steps: a click on a button object, a mouse operation on a list object, and then a keyboard operation on a list sub-item. You can create an appropriately-named function to represent all of these lower-level operations in a single, business-level keyword.

2. By incorporating technical operations, such as a synchronization statement that waits for client-server communications to finish, into higher level keywords, tests are easier to read and easier for less technical application testers to maintain when the application changes.

3. Keyword-driven testing naturally leads to a more efficient separation between resource maintenance and test maintenance. This enables the automation experts to focus on maintaining objects and functions while application testers focus on maintaining the test structure and design.


4. When you record tests, you may not notice that new objects are being added to the local object repository. This may result in many testers maintaining local object repositories with copies of the same objects. When using a keyword-driven methodology, you select the objects for your steps from the existing object repository. When you need a new object, you can add it to your local object repository temporarily, but you are also aware that you need to add it to the shared object repository for future use.

5. When you record a test, QTP enters the correct objects, methods, and argument values for you. Therefore, it is possible to create a test with little preparation or planning. Although this makes it easier to create tests quickly, such tests are harder to maintain when the application changes and often require re-recording large parts of the test.

6. When you use a keyword-driven methodology, you select from existing objects and operation keywords. Therefore, you must be familiar with both the object repositories and the function libraries that are available. You must also have a good idea of what you want your test to look like before you begin inserting steps. This usually results in well-planned and better-structured tests, which also results in easier long-term maintenance.

7. Automation experts can add objects and functions based on detailed product specifications even before a feature has been added to a product. Using keyword-driven testing, you can begin to develop tests for a new product or feature earlier in the development cycle.

SPONSORED LINKS

5 comments:

Anil Kumar Nandam said...

I am using QTP 10.

I have a driver called D1 and 50 reusable actions(say some A1-A50).

I need a script(vb) which opens QTP application and add all the 50 actions mentioned in datatable. Generally these actions present in QC.

Is it possible? I tried using QTP's Automation reference help file. But every time it is adding new action to the existing action. Not from QC.

Please help me.

Thanks,
Anil.

Eriko said...

As useall, you guys are the best!
keep the great work.

cheers from BraSil!

Gene said...

Great info. Just the thing I need to explain to management what "keyword driven testing" is.

chilloutsreeram said...

I think you have to use [Quality Center] Subject\Folder\Re-Usable Action Lib Name to link that with you current test dynamically - use LoadAndRunAction in QTP 10.o to do it.

Thanks,
Sreeram Pavan

Sunil Kumar said...

Hi All,

I am planning to develop a keyword driven framework for one web based application.

I am looking for all the keywords asscoiated with this application as this is developed in Java.

All the necessary required structure folder and one single flow of test case.

Can anyone send me this details to my peronal email id: sunilsnp1@gmail.com.

Thanks in advance for your support.