From: Brad C. <bc...@bo...> - 2004-03-19 19:25:18
|
At 12:55 PM 3/19/2004, you wrote: >Im an HtmlUnit newbie, completely. Definitely excited about the potential >of HtmlUnit, as we are using JUnit quite successfully, and Silk is being >used by QA. We need web-level testing controlled and regularly run by our >programmers, and Im hoping that HtmlUnit will do the trick. That's exactly what we're using it for (though I let CruiseControl run it for me) >Anyway, I found that just getting started was a little harder than >expected. First, there was no complete file, just fragments. There are some tests in com.gargoylesoftware.htmlunit.SanityCheck. Not exactly obvious though... >It was not clear which URL class was to be used (Eclipse found >org.apache.catalina.util.URL and java.util.URL). org.apache.catalina.util.URL doesn't look like it's part of HtmlUnit so I don't think there's a lot we can do for you here. The compiler should complain if you use the wrong one though ;) >Then, when I ran the fragment, I got the ScriptException fortunately, I >found the fix several months into the archive. What was the fix? Is it something that should be on the web pages? >And finally, the title on the page had changed, so the test didnt work. I've updated the title in CVS so it will be fixed the next time the site is generated. Thanks for the heads up :) >Does anyone know why I cant run javascript from the page? Is it the >google ads again, as in the October 03 thread? Or something I am doing >wrong, like only using the minimally required jars? It seems to work fine with the code in CVS. Try the nightly build and see if that helps (another thing that will be on the web site next time it gets generated): http://htmlunit.sourceforge.net/nightly/ Brad C |