May 30, 2005 · 12:30 am
The last nite I was trying to write down some unit/integration tests using htmlunit embedded in TestNG.
While for simple pages this was quite neat, I have a page using DWR for filling some select elements (triggered by page
onload and then
onchange events). Here i faced a set of problems to which unfortunately i wasn’t able to find a solution:
- the htmlunit
XMLHttpRequest doesn’t solve the
src attribute and after this a
NPE occurs in
I have patched this by making
HtmlScript.getSrcAttribute solve the complete URL
- the 2nd problem was that again htmlunit could not solve the dynamic generated call of DWR: DWREngine._execute […]
I’ve been able to patch this too by making the
DWRServlet use the complete URL for the dynamic call
- the 3rd and final problem – the unsolved one was that htmlunit
XMLHttpRequest.jsxFunction_send is expecting as a result a text/xml that must be an
I would really like to have this test working so if any of the readers can enlighten me how to fix this or I have the luck that one of the developers will read this, it would be really really great.
Filed under Uncategorized
Tagged as technolog, TestNG
May 16, 2005 · 3:18 pm
During the last months, while developing TestNG, I have read and also received lots of comments about the lack of support for TestNG in the most used IDEs (Eclipse, IntelliJ IDEA and NetBeans). I have put some of my spare time into developing a plugin for Eclipse (by the way it is working great, and the features are quite nice [blink/]). I’ve had intentions to do the same for Idea, but I cannot see how I can develop a plugin with the Plugin Development Package.
Why? That 14Megs download contains 45Megs javadocs, which are mostly empty. I don’t have any document describing which way to go. And those 6 examples are little toys. While the Eclipse API is really huge, I was able to find valid javadoc comments, lots of examples and even some good books (not to mention the fact that developing with Eclipse means learning SWT/JFace). I also know about the support site, but I usually go to this kind of places to ask important/specific questions, and not <<Please help…>> ones.
I keep my interest open to support TestNG in Idea, but for the moment this seems to me quite impossible.
Disclaimer: this post is by no means meant to upset IntelliJ IDEA‘s developers. It is only my short experience while trying to develop a plugin.