marook / db-fitnesse Goto Github PK
View Code? Open in Web Editor NEWA DB fixture plugin for the FitNesse automated testing tool.
License: GNU General Public License v3.0
A DB fixture plugin for the FitNesse automated testing tool.
License: GNU General Public License v3.0
db-fitnesse 1) Limitations 2) Installation 3) Example Fitnesse Wiki Page -------------------------------------------------------------------------- Limitations Right now only the JDBC oracle thin driver is supported. -------------------------------------------------------------------------- Installation 1) Download the Xebium Fitnesse server at http://xebia.github.com/Xebium/ (I've only tested it with Xebium yet... maybe it works with plain Fitnesse too?!?) 2) Install db-fitnesse to your local maven repository $ cd db-fitnesse $ mvn clean install 3) Add db-fitnesse dependency to the Xebium server Open the Xebium/pom.xml and add the following dependency: <dependency> <groupId>com.github.marook</groupId> <artifactId>db-fitnesse</artifactId> <version>0.1.0-SNAPSHOT</version> <scope>runtime</scope> </dependency> 4) Add the oracle JDBC thin driver the the Xebium server Open the Xebium/pom.xml and add the following dependency: <dependency> <groupId>com.oracle</groupId> <artifactId>ojdbc</artifactId> <version>1.4</version> <scope>system</scope> <systemPath>C:\path\to\my\ojdbc14.jar</systemPath> </dependency> -------------------------------------------------------------------------- Example Fitnesse Wiki Page !contents -R2 -h -g !*****> '''Classpath''' !pomFile pom.xml@system *****! |com.github.marook.db_fitnesse.ConfigFixture | |databaseUrl |user |password|commit?| |jdbc:oracle:thin:@<db host>:<port>:<sid>|<user>|<pw> |true | |com.github.marook.db_fitnesse.TestFixture | |sql |rowcount?| |select count(1) as rowcount from EVENT where timestamp >= '1330415251430' and timestamp <= '1330415255148'|23 | |select count(1) as rowcount from EVENT where timestamp <= '1330415255148' |76627 |
Hi Markus,
Thanks very much for putting together this library. I spent the morning trying to marry DbFit and Xebium but the Slim TestEnv was having none of it. I came across your lib and had db access in a few mins. One very small issue, when I ran the tests fitnesse complained that the ConfigFixture had no setters for the fields. Once I threw them in everything ran smoothly. I mention it because it would be a shame for the lib not to be used because someone without a java background wouldn't necessarily know what to do. This could very well be my setup so just in case...
jdk1.6.0_27
Xebium - 0.13-SNAPSHOT
Selenium - 2.45.0
Fitnesse - 20130530
Thanks again for taking the time to put this together,
Mark.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.