JdbcSlim is the framework to easily integrate database queries and commands into Slim FitNesse testing. The design focuses to keep configuration data, test data and SQL code separate. This ensures that requirements are written independent of the implementation and understandable by business users.
HTML Java
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.

README.md

Table of Contents

JdbcSlim

JdbcSlim is the framework to easily integrate database queries and commands into Slim FitNesse testing. The design focuses to keep configuration data, test data and SQL code separate. This ensures that requirements are written independent of the implementation and understandable by business users.

The framework can be used by Developers, Testers and Business Users with SQL knowledge.

JdbcSlim supports all databases for which a jdbc driver exists.

It is agnostic of database system specifics and has no code special to any database system. Such things should be handled by the jdbc driver. Nevertheless the jdbc code is segregated from the slim code and adding any driver specific requirements can be done by simply changing a single class.

Documentation

Read the documentation online: http://rawgit.com/six42/jdbcslim/master/JdbcSlim.htm

Download.documentation

Or download it for correct formatting: https://raw.githubusercontent.com/six42/jdbcslim/master/JdbcSlim.htm

Installation

To build jdbcSlim yourself you can use Ant or Maven.

Installation.Ant

To build jdbcSlim yourself clone this repository and add the following jar files in the folder plugins/jdbcslim:

File Link
fitnesse-standalone.jar fitnesse
dbfit-core-3.2.0.jar DbFit - extract jar from zip
commons-codec-1.10.jar DbFit - extract jar from zip
h2-1.4.195.jar H2 database

Execute ant jar to build jdbcslim.jar in the folder plugins/jdbcslim. Execute ant run to start FitNesse (default: http://localhost:8080).

JdbcSlim testpages available on .Plugins.JdbcSlim.UserGuide (http://localhost:8080/Plugins.JdbcSlim.UserGuide) execute this suite.

Once all tests pass execute ant build to validate that the acceptance test pass from the command line.

Installation.Maven

Note: Maven is not the strategic build tool and new versions are not tested against it.

Execute mvn clean compile dependency:copy-dependencies package to copy dependencies and build jdbcslim.jar in the folder plugins/jdbcslim.

Execute mvn exec:exec to start FitNesse (default: http://localhost:8080).

JdbcSlim testpages available on .Plugins.JdbcSlim.UserGuide (http://localhost:8080/Plugins.JdbcSlim.UserGuide) execute this suite to verify tests can run.