Giter VIP home page Giter VIP logo

db-fitnesse's Introduction

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    |

db-fitnesse's People

Contributors

marook avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

db-fitnesse's Issues

Setters in the ConfigFixture

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...

Using

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.