-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 4 posts ] 
Author Message
 Post subject: How to wire transactions for FitNesse tests?
PostPosted: Wed Mar 11, 2009 3:36 pm 
Newbie

Joined: Tue Mar 07, 2006 3:15 pm
Posts: 17
Hi

Are using FitNesse for testing an application. I have problems running a fixture (extending columnfixture). I cannot find how to start a transaction in the fixture, and therefore get an exception saying "no session bound to thread". My aplication uses Spring annotation driven tx-controls and an hibernatetransactionmanager.

Has anyone some good tips on how to wire transactions with hibernate, fitnesse and Spring so that the tx is started before the testpage, and rolled back when all the tests are done?


Top
 Profile  
 
 Post subject:
PostPosted: Fri Mar 13, 2009 5:42 pm 
Newbie

Joined: Fri Jan 30, 2009 4:58 pm
Posts: 6
One way would be to start a transaction on the SetUp page and to commit/rollback on the TearDown page (keep the transaction in a static variable).

If you only have a single FitNesse table you can override the interpretation of the table from Fixture.


Top
 Profile  
 
 Post subject: Re: How to wire transactions for FitNesse tests?
PostPosted: Tue Apr 02, 2013 8:23 am 
Newbie

Joined: Sat Mar 10, 2012 3:34 pm
Posts: 3
@melsom: Can you let me know how you were able to wire transactions for FitNesse tests? Can you share the fixture code used to accomplish the same(SetupFixture, Implementation Fixture and Tear Down Fixture)?


Top
 Profile  
 
 Post subject: Re: How to wire transactions for FitNesse tests?
PostPosted: Wed Apr 03, 2013 3:52 pm 
Newbie

Joined: Tue Jul 03, 2012 6:32 pm
Posts: 1
I need clarity with this problem also. I'll keep it on the same thread.

_________________
http://www.buddhateas.com/ashwagandha-tea.html‎


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 4 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.