-
Menno van Slooten
3.83
Description:
One of the great untapped advantages of using jQuery to build web applications is that it becomes very easy to do the two things needed for UI test automation:
- Simulate basic user activity (mouse and keyboard events).
- Assert that the UI reacts appropriately by probing the DOM for structure and CSS properties like visibility.
For my employer eBuddy (www.ebuddy.com) I've written a basic framework that allows us to easily write tests for our new web based IM client (web.ebuddy.com). These tests are written in JavaScript and run completely in the browser. It is my plan to clean up the code a little bit and release it as an open source project to the jQuery community.
In my talk I would like to briefly discuss the two main facets of automated testing in general (unit testing vs. GUI testing) and show some of the strategies we used at eBuddy to test the UI of the application. Although the things we test are of course very specific to our domain (instant messaging), I believe the problems we encountered and the hurdles we've taken will be familiar to many developers working on web application front-ends. Some of these hurdles would be:
- Removing backend dependencies: To really test the UI code, dependencies on the backend should be avoided as much as possible. One way to achieve this is by intercepting Ajax requests. This can be done by overwriting the jQuery.ajax function with a custom handler. Once this is done, you can test how the UI reacts to any response sent by the server: exotic errors, invalid messages, or just plain success.
- Dealing with asynchronous UI actions: In many cases, the UI won't directly respond to a user action. Sometimes it waits for a server response, sometimes for an animation to finish or for a timeout to run. The test framework allows you to wait for specific events to happen or for a certain condition to be true before the tests are run.
Links: Slides
Comments on this Talk
supply in stock and custom lace front wigs, full lace wigs, lace wigs, human hair wigs, remy lace front wigs, cheap wigs, cheap, buy, celebrity full lace wigs lace wigs lace wigs sale lace front wigs synthetic front lace wigs Full Lace Front Wig, Long & Short Hair Wigs: 80% OFF at Celebrity Wigs. We ensure 100% customer satisfaction with our Long & Short Indian Remy Hair Wigs. wedding dresses evening dresses prom dresses
liumang,
01 Sep 14:39
Reliable and professional China wholesale website where you can buy wholesale merchandise and dropship them anywhere in the world
China wholesale: The leading marketplace for wholesale products from Chinese Wholesaler and suppliers, including wholesale,Wholesale lipo battery,mobile signal booster,Wholesale Laser Pointer....
Michael Jordan Shoes,
02 Sep 02:10
hary A nice green gel sole completes the package. These also came with the silver Chanel Handbags premium keychain. Best shoes i've brought for ages, the grip is unbeleivable can stop and turn on a dime, they fit perfectly and my feet are never sore after playing Air Jordan Shoes in them.I have read some of the bad reviews and I will write again in a few weeks or after my track season to see how they wear.. These premium Michael Jordan Shoes were only available on Chanels in 2006 and were not available in stores. Retail on them was Juicy Couture Bags and a matching shirt was released alongside them as well. They feature a nice all patent leather upper with no Juicy Couture Bag on the toe but some stars are pictured in their place.

cosplaywedding,
19 Aug 01:35
This user has yet to validate her/his profile with LinkedIn. It is therefore simple to assume that she/he is but a charlatan or common hoaxster.