| Author |
Message |
![[Post New]](/site/templates/default/images/icon_minipost_new.gif) 23/10/2010 17:18:48
|
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
|
|
|
 |
![[Post New]](/site/templates/default/images/icon_minipost_new.gif) 24/10/2010 08:35:27
|
fdenommee
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.
|
|
|
 |
![[Post New]](/site/templates/default/images/icon_minipost_new.gif) 25/10/2010 03:43:11
|
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
|
|
|
 |
![[Post New]](/site/templates/default/images/icon_minipost_new.gif) 25/10/2010 07:41:16
|
fdenommee
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.
|
|
|
 |
|
|