testing

gluca980@libero.it gluca980 at libero.it
Tue Jul 19 19:34:53 MEST 2005



Hi, I'm sorry because I still write about the problem with unitTest for the action.
Could you tell me please why it's so hard to test with request response.
Could I make an object request and response in test and use parameter?

thanks a lot
Gianluca


> > Hi, could you explain me better what are the problem with actions  
> > please? Is it hard to test because are html application or is hard  
> > to do the assert?
> 
> Yes, exactly it is hard to check the resulting html. Of course you  
> could parse it and check for specific tags and contents, or you could  
> write regular-expressions ...
> 
> What is more, the actions in SmallWiki 1 are badly designed, since  
> they heavily couple the business logic and the swazoo html  
> generation. Sadly it is almost impossible to test the actions wihout  
> dealing with request/response ...
> 
> SmallWiki 2 takes a different approach to avoid this problem and thus  
> the actions (actually these are commands following the design  
> patterns book) can be easily tested.




____________________________________________________________
6X velocizzare la tua navigazione a 56k? 6X Web Accelerator di Libero!
Scaricalo su INTERNET GRATIS 6X http://www.libero.it






More information about the SmallWiki mailing list