GeekArticles
Testing
SQADesigning Reusable Test Automation
Author: stickyminds.com |
Published: 3rd Oct 2005 |
Visited: 473 times |
Add CommentFiled in: SQAQA automated test development is a software development process although it is seldom treated that way. Following software development practices can make the difference between the success and failure of an automated testing project. One of the most important aspects of any automated test design is the ability to share and reuse code. A well thought out design promotes code reuse, speeds development, and reduces the maintenance of automated tests. Most software tests are made up of combinations of simpler operations. This paper introduces the Sequencer design that facilitates the creation and execution of reusable operations. The idea behind the Sequencer is to carve the product under test into sets of functional operations. A test case data file describes the operations to be executed including their order and required data. The Sequencer’s test driver executes the test by loading the test case and sequencing the operations. The beauty of this approach is with a well-stocked library of operations coded, new tests can be generated by combining different sequences of existing operations.
Read Article Sponsored Links
Related Articles
• Swing Extreme Testing - Outline of the Unit Test Outline of the Unit Test
The things we want to test are:
Initial settings:
The text field is empty.
The text field is a sensible size.
The Ok button is disabled.
The Cancel button is enabled.
The dialog is a sensible size.
...
• Swing Extreme Testing - Unit Test Infrastructure Unit Test Infrastructure
Having seen the broad outline of the test class and the UI methods needed, we can look closely at the implementation of the test. start with the UI Wrapper class and the init() and cleanup()method ...
• Swing Extreme Testing - The wasCancelled() Test The wasCancelled() Test
The first of our API tests is to check the wasCancelled() method. We will basically do three investigations. The first test will call wasCancelled()before the dialog has been cancelled. The second test will cancel the dialog and then call the method. In the third test we wil ...
• Swing Extreme Testing - The Data Validation Test The Data Validation Test
The Ok button of the SaveAsDialog should only be enabled if the name that has been entered is valid. A name can be invalid if it contains an illegal character, or if it has already been use ...
• Designing N-Tiered Data Access Layer Using Datasets - Part 4 Part of the business logic encapsulated in the Typed DataSet is the ability to add specialized queries to the table adapters to retrieve the data with different filters. By manipulating the XML schema that defines the dataset and adding the correct XML metadata, Visual Studio will generate the adde ...