Re: AJAX Testing
Frank Cohen <[email protected]> Sun, 3 May 2009 09:14:47 -0700
| Newsgroups | gmane.comp.web.httpunit.devel |
|---|---|
| Message-ID | <[email protected]> |
Hi Steve: Selenium is good for record/playback of functional tests where playback is through a browser (Firefox, Chrome, etc.) The Selenium architecture works well for many tests but it does have its drawbacks. Selenium can be really slow at test play-back. Selenium uses a frames- based JavaScript plug-in architecture that does not handle browser originated events - such as dealing with modal Security dialog boxes. Selenium doesn't have a call-back architecture to make it easy for your tests to deal with Ajax-style asynchronous events. Lastly, Selenium does not have a solution for repurposing tests as load tests and business service monitors. PushToTest built a Selenium-HTMLUnit hybrid solution called SeleniumHTMLUnit. It reads Selenium tests in their native format and runs them using the HTMLUnit browser. The runner is data-enabled, so your Selenium tests use operational test data from CSV files, RDBMS databases, and other objects. And the runner operates the tests as functional tests, load and performance tests, and business service monitors without having to change the original Selenium test. SeleniumHTMLUnit is part of TestMaker, an open source test automation platform. A tutorial on how this work is at http://www.pushtotest.com. (The site is down this weekend for maintenance.) -Frank On May 1, 2009, at 5:20 AM, Stephen Cresswell wrote: > Any reason for not using an alternative tool like Selenium? www.openqa.org > > I use http for testing the headers are correct etc, but not for > checking javascript. > > Regards, > > Steve > > 2009/4/30 Shay Thompson <[email protected]> > > Hi, I’m trying to use HttpUnit to test an html page with ajax code > in it but I’m unable to create an XmlHttpRequest object of any > type. Has anyone gotten this to work? If so, could you provide a > snippet of your javascript and java? > > > FYI, I’ve tried this with HttpUnit 1.6 and 1.7 with no luck. > > > Thanks, > > Shay > > > ______________________________________________________________________________ > > If you apply Ohms Law, e=mc2, to the hypotenuse and add to that a > catalyst consisting of a set of struts and a gigahertz, you will > theoretically arrive at an answer yesterday... > > > Shay Thompson - Lead Computer Scientist > > Adobe Systems, Inc. - LiveCycle Quality Leaders > > Voice: x34728 or 612.251.5415 > > > > ------------------------------------------------------------------------------ > Register Now & Save for Velocity, the Web Performance & Operations > Conference from O'Reilly Media. Velocity features a full day of > expert-led, hands-on workshops and two days of sessions from industry > leaders in dedicated Performance & Operations tracks. Use code > vel09scf > and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf > _______________________________________________ > Httpunit-develop mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/httpunit-develop > > > ------------------------------------------------------------------------------ > Register Now & Save for Velocity, the Web Performance & Operations > Conference from O'Reilly Media. Velocity features a full day of > expert-led, hands-on workshops and two days of sessions from industry > leaders in dedicated Performance & Operations tracks. Use code > vel09scf > and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf_______________________________________________ > Httpunit-develop mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/httpunit-develop -- Frank Cohen, http://www.PushToTest.com, phone 408 871 0122 PushToTest, the open-source test automation company ------------------------------------------------------------------------------ Register Now & Save for Velocity, the Web Performance & Operations Conference from O'Reilly Media. Velocity features a full day of expert-led, hands-on workshops and two days of sessions from industry leaders in dedicated Performance & Operations tracks. Use code vel09scf and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf