delphixtreme header
Welcome, Guest. Please login or register.
September 08, 2010, 05:02:01 AM

Login with username, password and session length
Search:     Advanced search
Registration closed until spam can be handled. Send inquiries to the administrator.
38 Posts in 14 Topics by 108 Members
Latest Member: xxxsllikab
* Home Help Search Login Register
 1   General Category / Fitnesse Discussion / Exception cannot find fixture class AddFixture in loaded BPLs  on: December 10, 2007, 05:02:10 AM 
Started by Perspicacity | Last post by Perspicacity
I'm working through the example given and I cannot get it to work. I have followed the instructions accurately. This is when I get in the log file:

***** BEGIN RUN ****
Set up client localhost:8080
Connecting client
Requested document: GET /?responder=socketCatcher&ticket=1 HTTP/1.1
Received status: 0
Reading 575 bytes for document
Recieved document
Processing document
Found assembly "c:\fitnesse\delphi\addfixture1.bpl"
Found assembly "c:\fitnesse\delphi\examplefixture1.bpl"
Found assembly "c:\fitnesse\delphi\fitlib.bpl"
Writing table response (699 bytes)
Writing counts r(0) w(0) i(0) e(1)
Reading 0 bytes for document
No data to read
***** END RUN ****

This is the page I've put into the wiki:

!path c:/fitnesse/delphi/*.bpl
!define COMMAND_PATTERN {c:/fitnesse/delphi/DelphiFIT.exe -v %p}

!|AddFixture|
| firstValue | secondValue | resultant() |
| 1          | 2           | 3           |
| 2          | 2           | 5           |
| 3000       | 2           | 3002        |
| 200        | 2           | 203         |
| 10         | 2           | 12          |

When I click on test it gives me:

Exception cannot find fixture class AddFixture in loaded BPLs

Any ideas? I'm using Delphi/BDS 2006


 2   General Category / Fitnesse Discussion / Re: Fitnesse for Delphi 2006 / Delphi 2007  on: September 05, 2007, 07:24:44 AM 
Started by CharlesF | Last post by ChuckCT
Charles:

I would be happy to send you the source code for the Delphi Fit Server/Fit Library that we are using.  However, I would rather not post it on the message boards (since I don't want to have the version that I'm using conflicting w/the version posted by the site author).  Could you send me an email and I'll reply to you w/the source code?

 3   General Category / Fitnesse Discussion / Re: Links to other fitnesse websites  on: September 02, 2007, 11:41:43 AM 
Started by CharlesF | Last post by CharlesF
Hi here is one more link

'The Need for Automated Acceptance Testing'

http://www.developer.com/tech/article.php/3643611

This shows in a step by step way has to setup Automated Acceptance Testing

Charles

 4   General Category / Fitnesse Discussion / Re: Fitnesse for Delphi 2006 / Delphi 2007  on: September 02, 2007, 02:13:17 AM 
Started by CharlesF | Last post by CharlesF
Hi Chuck

Please can you elaborate bit more about the changes you made to delphiFit

It uses .BPL for its fixtures, what are you using ?

If possable could you upload your modifed version of DelphiFit on to this site

thanks
Charles





 5   General Category / Fitnesse Discussion / Re: Delphi - dUnit and Fitnesse testing - adding a Common Interface  on: September 02, 2007, 01:39:25 AM 
Started by CharlesF | Last post by CharlesF
Hi

I have a few different Ideas on how to make this work

===============================================================

IDEA 1 - Socket based

The fitnesse fixture gets liked to dunit by a socket


FITNESSE
1. Fitnesse runs and calls the fixture
2. The fixture then sends a request to dunit via the sockect 

DUNIT
3. Dunit receives the request
4. Dunit finds the test
5. Dunit runs the test
6. Dunit sends the result back to Fitnesse

FITNESSE
7. Fitnesse receives the response
8. Fitnesse displays the result

====================================================================================

IDEA 2 – File based – the quick and dirty approach 

This a three phase approach   
Phase 1
======
Run Fitnesse
1.   Fixture writes all requests to a file 
2.   Fitnesse will fail all of the tests as the results are not known at this stage
   
Phase 2
======
Run dUnit
3.   dUint runs its tests based data in the file
4.   dUint writes it’s results back into the file
 
Phase 3
======
Run Fitnesse
5.   as the tests run the fixture finds the appropriate result in the file and returns it to Fitnesse

====================================================================================

Both of these ideas have problems
-   But idea 2 is easy to implement



Charles     
   
 

 6   General Category / Unit Testing / Re: Problems with Dunit and a Romote Data Module in Delphi 2006  on: August 29, 2007, 08:08:55 AM 
Started by CharlesF | Last post by jdawkins
Thanks for posting your solution!

 7   General Category / Fitnesse Discussion / Re: Delphi - dUnit and Fitnesse testing - adding a Common Interface  on: August 29, 2007, 08:08:30 AM 
Started by CharlesF | Last post by jdawkins
Not presently. You would need a custom fixture to load a DUnit test library/project. How do you envision Fitnesse working with DUnit?

 8   General Category / Fitnesse Discussion / Delphi - dUnit and Fitnesse testing - adding a Common Interface  on: August 28, 2007, 02:51:29 PM 
Started by CharlesF | Last post by CharlesF
Hi

I currently do a lot of Dunit tests on my project.
We now need to do Fitnesse testing

Is there way of useing Fitnesse to call dUnit ?

Charles




 9   General Category / Unit Testing / Re: Problems with Dunit and a Romote Data Module in Delphi 2006  on: August 28, 2007, 02:42:09 PM 
Started by CharlesF | Last post by CharlesF
I now have a solution to DUnit testing of a RDM

==> 
The main problem is BDS2006 does not create a Type Libary for then RDM in the test project

If the initialization part of the code is gets removed - one can convert the RDM into a data module
and then do tests on it.

i.e.

{$IFNDEF TESTMODE}
initialization TComponentFactory.Create(ComServer, TBetProcessRDM, Class_BetProcessRDM, ciMultiInstance, tmApartment);
{$ENDIF}

Charles

 10   General Category / Unit Testing / Re: Problems with Dunit and a Romote Data Module in Delphi 2006  on: August 01, 2007, 11:12:55 AM 
Started by CharlesF | Last post by jdawkins
I'm not sure but you probably need a call to CoInitialize in your test before you create the RDM.

I haven't had the opportunity to write anything with an RDM so I haven't tried this.

- Jody

Return to the board index.
Powered by MySQL Powered by PHP delphixtreme | Powered by SMF 1.0.9.
© 2001-2005, Lewis Media. All Rights Reserved.
Valid XHTML 1.0! Valid CSS!