dbfit and doFixture

97 views
Skip to first unread message

mike

unread,
Jul 21, 2009, 1:56:43 PM7/21/09
to dbfit
What version of fitnesse should I use with what version of dbfit to be
able to have a page with a DoFixture that includes calls to dbfit
command in standalone mode? Is there an example of doing this that
shows how I should be calling the dbfit commands when the page starts
with my DoFixture subclass?

I've downloaded dbFit 2.0 and tried several versions of fitnesse but I
can't get them to work together. I consistently have problems with
the table containing |dbfit.fixture.DatabaseEnvironment|oracle|.
Mostly it fails because it can't find DatabaseEnvironment on my
DoFixture subclass. Importing 'dbfit.fixture' doesn't have any effect
although it doesn't throw an exception depending on which version of
fitnesse/fitlibrary I use.

Thanks,
Mike Vogel

Gojko Adzic

unread,
Jul 27, 2009, 11:28:30 AM7/27/09
to dbfit
Hi Mike,

can you send me an example of what you're trying to do along with some
source code for the dofixture (please include any setups etc for the
fitnesse pages).

gojko

pwilson

unread,
Sep 1, 2009, 2:02:59 PM9/1/09
to dbfit
Hello All

Was there ever a solution to this problem? I am having the same
issue. I've been using Fitnesse, Dbfit and Selenium together for
quite some time now. I was on the fitnesse 20070619 version. I am
now trying to uppgrade to the latest fitnesse 20090818 version and all
is working except for Dbfit. All of my selenium tests started with
the following setup:

|!-com.sparkroom.fitnesse.SeleniumRunner-!|

|Import|
|dbfit.fixture|

!|DatabaseEnvironment|SQLSERVER|
|Connect|${dbhost}|${dbuser}|${dbpassword}|${database}|

|Set server to|localhost|and port to|8002|and browser to|${Browser}|
and domain to|${URL}|
| Start Execute Time |
| Access Application | ${URL} | Check For Element | password | Fail
After | 60 |

The SeleniumRunner fixture extends a dofixture. With this setup I was
able to call any method within either the SeleniumRunner fixture or
Dbfit without any problems. However, now that I've upgraded, any call
to dbfit gives me the missing method error. It is looking for the
dbfit methods within the SeleniumRunner fixture as below.

DatabaseEnvironment
--------------------------------------------------------------------------------
Missing method: public TypeOfResult databaseEnvironment(Type1 arg1)
{ } in class com.sparkroom.fitnesse.SeleniumRunner SQLSERVER
Connect
--------------------------------------------------------------------------------
Missing method: public TypeOfResult connectSaQa1(Type1 arg1, Type2
arg2) { } in class com.sparkroom.fitnesse.SeleniumRunner localhost:
1433 sa sparkroom qa1

Is there something I need to change with the latest version to get
this to work again? Any help with this would be greatly appreciated.
I went through the fitnesse user group emails and I did not see
anything related to this there.

Thanks

Pam
> > Mike Vogel- Hide quoted text -
>
> - Show quoted text -
Reply all
Reply to author
Forward
0 new messages