Active Topics Memberlist Calendar Search Help | |
Register Login |
One Stop Testing Forum : Testing Tools @ OneStopTesting : QuickTest Pro @ OneStopTesting |
Topic: Keyword-driven Testing |
|
Author | Message |
amar1149
Newbie Joined: 31Jul2009 Online Status: Offline Posts: 13 |
Topic: Keyword-driven Testing Posted: 31Jul2009 at 11:36pm |
keyword-driven testing is a software
testing technique that separates much of the programming work of test
automation from the actual test design. This allows tests to be developed
earlier and makes the tests easier to maintain. Some key concepts in keyword
driven testing include:
Keyword driven testing is a very powerful tool helping
organizations to do more automated testing earlier in the testing process and
making it easier to maintain tests over time. As with any complex undertaking,
there are "success factors" that can determine whether or not a
testing effort will be successful. This paper will outline key success factors
for keyword driven testing including base requirements, the vision for automation,
success factors for automation, and how to measure success. Contents: Overview
Keyword-driven testing or Table-driven testing is a
Software testing methodology as part of the Test automation discipline that
separates the programming work from the actual Test script so that the
test scripts can be developed without knowledge of programming. Base Requirements
There are numerous requirements that consider to be "base
requirements" for success with keyword driven testing. These include:
The implementation of this methodology is framework dependent.
This framework requires the development of data tables and keywords,
independent of the test automation tool used to execute them and the test
script code that "drives" the application-under-test and the data. If we were to map out the actions we perform with the mouse when
we test our Win calculator functions by hand, we could create the following
table. The "Window" column contains the name of the application window
where we're performing the mouse action (in this case, they all happen to be in
the Calculator window). The "Control" column names the type of
control the mouse is clicking. The "Action" column lists the action
taken with the mouse (or by the tester). And the "Arguments" column
names a specific control (1, 2, 3, 5, +, -, and so on). Methodology
The keyword-driven testing methodology divides test creation into
two stages: ·
Planning Stage Analyzing the application and
determining which objects and operations are used by the set of business
processes that need to be tested. Determining which operations
require customized keyword to provide additional functionality, to achieve
business-level clarity, and/or to maximize efficiency and maintainability. ·
Implementation Stage Building a collection of
references that uniquely identify objects, sometimes known as an "object
repository", and ensuring that all such references have clear names that
follow any predetermined naming conventions. (This is primarily for test
automation.) Developing and documenting
business-level keywords in function libraries. Creating function libraries
involves developing customized functions for the application that needs to be
tested. Although this methodology requires more planning and a longer
initial time-investment than going directly to the test creation stage and
recording your steps, this methodology makes the test creation and test
maintenance stages more efficient and keeps the structure of individual tests
more readable and easier to modify. While a keyword-driven methodology is mostly useful for automated
testing, some manual testing systems like Mercury Interactive's TestDirector
for Vision for Automation
It is also important to have a clear vision for automation. Such
a "vision" should include things such as:
Success Factors for Automation
Test Design Test design is more important than the automation technology.
Design is the most underestimated part of testing. It is my belief that test
design, not automation or a tool, is the single most important factor for
automation success. To understand more about test design see these previous
articles:
Comprehensive Automation Architecture
The "right" team must also be assembled. This team
should include:
For the team there should be a clear division of tasks and
responsibilities as well as well defined processes for decision making and
communication. How to Measure Success
With any major undertaking, it is important to define and measure
"success". There are two important areas of measurement for success –
progress and quality. Progress You should measure test development against the test development plan.
If goals are not reached, act quickly to find the problems. Is the subject
matter clear? Are stake holders providing enough input? Is it clear what to
test (overall, per module)? Is the team right (enough, right skill set mix)? You should measure automation and look at things such as
implemented keywords (actions) and interface definitions (defined interface
dialogs, pages, etc). You should measure test execution looking at things such as how
many modules are executed and how many executed correctly (without errors)? Quality Some of the key quality metrics include:
Conclusion
It is important to understand that keywords are not magic, but
they can serve you well. What is more important is to take the effort seriously
and "do it right". Doing it right means that test design is
essential, both global test design and the design of individual test cases. Automation should be done but it should not dominate the process.
Automation should flow from the overall strategy, methodology, and
architecture. It is also very important to pay attention to organization – the
process, team, and project environment. Edited by amar1149 - 31Jul2009 at 11:43pm |
|
amar
Post Resume: Click here to Upload your Resume & Apply for Jobs |
|
IP Logged | |
Forum Jump |
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |
© Vyom Technosoft Pvt. Ltd. All Rights Reserved.