Automated UI testing with jQuery 3.93 http://spkr8.com/t/2976

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:

  1. Simulate basic user activity (mouse and keyboard events).
  2. 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.

Comments on this Talk

Avatar-missing-icon-09 , 19 Aug 01:35 AM

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

Avatar-missing-icon-10 , 01 Sep 02:39 PM

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....

Avatar-missing-icon-10 Michael Jordan Shoes, 02 Sep 02:10 AM

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.

Avatar-missing-icon-02 , 06 Sep 10:47 PM

Fruta Planta weight loss pills. Amazing new Reduce Weight Zhen De Shou Diet and Weight loss pills.SatiboMaxman2La Jiao Shou Shen

Avatar-missing-icon-10 yy, 11 Sep 07:47 AM

This will be a brand new ugg characteristics of the times Chinese abstract oil painting is most people's daily lives can Dress up one of the fashion Chinese decoration oil painting one of personal adornment first Chinese impression oil painting So let us wear clothing with the most contemporary feel of ugg it! Chinese classical oil painting With fine design,quality materials and craftsmanship, you l be glad to go with Chinese charcoal drawing it is today is the most essential items of fashion pretty.

Avatar-missing-icon-05 thomas sabo charm, 30 Sep 02:13 AM

Gemstone echoes for thomas sabo silver itself that is hence the very thomas sabo charms best replacement to the involvement.Trying thomas sabo charm sale to keep these guidelines function thomas sabo charm sale will let avert problems and inconveniences. discount thomas sabo charms 1st Tip: Respect ring for mom has become thomas sabo charm clearance the best jewelry accessory you can buy for mom. A thomas sabo charms australiadiamond ring is a thing that may memorable, thomas sabo charm club and an issue your mom will thomas sabo clearance sale cherish for years. When you choose to buying thomas sabo australia bracelets for mom that you need to don't thomassabo charms sale forget just what a simple partner honestly thomas sabo jewellery calls for.

Avatar-missing-icon-08 cheap links of london, 18 Oct 01:26 AM

It is quite common that women usually have the desire to buy new jewelries which are seemed to be better than the old ones. Undoubtedly, jewelries like cartoons and animals are suitable for them. And links of london usa having rich meaning of religion or metaphysics are also right, but amber and crystal are the best choice. Since once the cheap links of london and dresses are well matched, the personal taste and qualities will be revealed. However, as for many people, it is too hard for them to match links of london Rings properly. Some suggestions on choosing and matching links of london jewelry are as follows. Hope to help you! Great attention should be paid to the coordination of links of london charm you chose to your face, complexion, temperament, hairstyle, etc. so that you can obtain the most suitable links of london bracelets jewelries. The basic criteria is to choose the jewelry whose shape is neither resemble your face shape nor totally opposite your face shape. This is the ideal face shape, and actually, many kinds of links of london Necklaces could go for this kind of face perfectly, for example, triangular shaped earrings. Just don't wear incredibly long shapes that will just pull you down. Hairstyle plays an essential part in the decoration of the head. Therefore, you need to consider your hairstyle when choosing your right jewels links of london jewellery .

Have an account? Sign in or register.

Leave a Comment

6 Ratings: 3.93

Delivery: 4.10

Content: 3.77

Last Five Ratings