Hi all,

I'm a bit confused by the lastest feature request, asking for removing 
JUnit dependency from jWebUnit. It's true that TestNG seems to be a 
serious alternative, and if we want to serve the maximum amount of 
people, it could be interesting to find a way to easily be compatible 
with different testing engines.
For example, I know that Selenium RC guys change the API. All the
public void assertXXX()
where replaced by
public boolean isXXX()

We could do the same think with jWebUnit. We keep IJWebUnitDialog, that 
is the minimal interface the testing engines should implement. We remove 
JUnit assertions from WebTester (assertTableEquals() become 
isTableEqual()). And in separate modules, we could have a WebTestCase 
based on JUnit, a WebTestCase based on TestNG, ...

It allows to remove JUnit dependency, but new problems appear. The first 
I see is how to document test failures? For example, when we call
assertTableEquals(X, Y)
we could see in JUnit exception the reason of the failure ("row count 
are different", "this cell is not equals to this other", ...)

But if we only get a boolean, we can't get a message too.

Another possibility is to keep the syntax
void assertTableEquals(X, Y)
but without using JUnit assertion. We could raise our own more detailed 
exceptions in case of failure. For example TableNotFoundException, 
RowCountException, ...


Any comment ?

++
Julien

This message contains information that may be privileged or confidential and is 
the property of the Capgemini Group. It is intended only for the person to whom 
it is addressed. If you are not the intended recipient,  you are not authorized 
to read, print, retain, copy, disseminate,  distribute, or use this message or 
any part thereof. If you receive this  message in error, please notify the 
sender immediately and delete all  copies of this message.


Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Jwebunit-development mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jwebunit-development

Reply via email to