databene

 
  • Increase font size
  • Default font size
  • Decrease font size

The Feed4 Tools

The Feed4 tools are a collection of libraries and tools for providing test libraries and applications with meaningful data for functional and performance tests. It enables you to improve your testing easily and significantly:

  • Reading test case data from CSV or Excel files defined by a business analyst and reporting test success within the build/unit test infrastructure.
  • Easily performing smoke tests with random but valid data can strongly improve code coverage and exhibit bugs caused by very special data constellations.
  • Defining equivalence class tests easily, which is a powerful methodology of software testers, but little known among developers

Data can be definied to be random within a set of constraints, be imported from data files like CSV or be produced by sophisticated generator classes from Benerator or other frameworks.

 

Supported Testing Methodologies

Smoke Testing

Performing smoke tests means invoking tested code with a lot of random but valid data. This can strongly improve code coverage and exhibit bugs from very special data constellations. Even if you cannot simply predict each result with random data and match it with the calculated results, you can check result constraints and check for unexpected error conditions.

 

Analyst Driven Tests

Analysts like Excel. Developers do so too, but mostly have to manually transfer data from test cases defined in tables into test code. If requirements change, it is a tedious task to rescan test code and rematch it with table data. Much easier and more maintainable is to automatically read the table from the Excel file and feed it to the test code. The data file may even reside on a web page oran FTP server and dynamically retrieved from there when executing the test. So an analyst does not even have to cope with versioning systems to interoperate with development.#

 

Equivalence Class Testing

Equivalence class tests are a powerful methodology of software testers, but little known among developers. Feed4TestNG makes it easy to use for developers. The fundamental ideas are finding 'interesting' values for each parameter to test and validating test execution for each valid comination of each interesting parameter. This approach results in very thorough test data constellations, but also in a large number which takes time to implement and maintain in case of changes. Feed4TestNG makes it easy to define the interesting values for each parameter and automatically excutes a test with each possible combination.

 

Test Library Extensions

The Feed4 test library extensions provide users of functional test frameworks like TestNG and JUnit with parameterized test methods and an extremely easy Java-annotation-based configuration of constraints or data feeds. They automatically recognize and support the annotations defined in the "Bean Validation" JSR 303 and Java 7.

  • Feed4TestNG: Enhances the TestNG framework with dataProviders configured with Bean Validation and Benerator annotations
  • Feed4JUnit: Adds the support of parameterized test methods to the JUnit framework and lets them be configured with Bean Validation and Benerator annotations