GreenPepper Seeds of GreenPepper
  [Search] Search   [Recent Topics] Recent Topics   [Members]  Member Listing   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
Custom SystemUnderDevelopment  XML
Forum Index -> Development
Author Message
Lubo


Joined: 23/10/2010 17:03:12
Messages: 6
Offline

I have created my own SystemUnderDevelopment by extending DefaultSystemUnderDevelopment exactly according to documentation.
When I run scenario the constructor of my SystemUnderDevelopment is fired but other methods like getFixture, onStartDocument, onEndDocument aren't fired.
Where can be a problem?

Thanks,
Lubo
fdenommee

[Avatar]
Joined: 25/01/2008 10:23:16
Messages: 587
Offline

Hi,

Can you show me the code of your SUD and part of the specification ?

Cheers,
Francois D.
Lubo


Joined: 23/10/2010 17:03:12
Messages: 6
Offline

I have already found the problem.
Default command line contains -f ${fixtureFactory} option.
If Fixture factory field is empty, the default fixture factory is used.
When I added --sud org.mypackage.MySystemUnderDevelopment and didn't removed -f ${fixtureFactory}, MySystemUnderDevelopment was instantiated but the default fixture factory was used.
Solution is just to remove -f ${fixtureFactory} option and then getFixture method from MySystemUnderDevelopment class is used.

Thanks,
Lubo
fdenommee

[Avatar]
Joined: 25/01/2008 10:23:16
Messages: 587
Offline

Hi,

I will add an issue to improve the command line options - to not allow duplication... ;)

Cheers,
Francois D.
 
Forum Index -> Development
Go to:   
Powered by JForum 2.1.6 © JForum Team