« The Need for Speed - ABCWebTest is now FAST! | Main
May 11, 2006
Ajax Support is Coming!
ABCWebTest will soon support automated testing of Ajax applications!
With the next release of ABCWebTest it will be possible to automate the testing of Ajax applications such as Google Maps. You'll be able to move the mouse over any element on a web page (e.g. a zoom slider image) drag the mouse in either a vertical or horizontal direction (e.g. dragging a map or dragging a zoom slider up or down to zoom in on the map). ABCWebTest will automatically wait until the Ajax application has updated all the data before returning from a method call.
This means you, as the test writer, don't have to worry about putting in timers/waits/sleeps until the Ajax operation is finished. You'll just use this simple API (example code is testing the Google Maps site):
C#
Image sliderImage = browser.Document.GetImageBySrc("slider.png");
browser.Mouse.MoveOverElement(sliderImage);
browser.Mouse.DragVertically(20); //zoom in on map - move slider up by 20 pixels
Java
Image sliderImage = browser.getDocument().getImageBySrc("slider.png");
browser.getMouse().moveOverElement(sliderImage);
browser.getMouse().dragVertically(20); //zoom in on map - move slider up by 20 pixels
Stay tuned for more details...
Posted by Misha Rybalov at May 11, 2006 07:01 AM