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-01 , 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-04 , 22 Aug 05:56 PM

Delete comment

Replica Handbagsand Replica Watches online store are selling great quality replica for all kinds of branded replica such asHermes handbags LV handbags Louis Vuitton handbags Gucci handbags Chanel Handbags Hermes Birkin Hermes Kelly Replica Shoes Bottege Veneta Handbags Wholesale

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-02 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-05 , 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-01 tutuwo, 08 Sep 01:00 AM

beautiful <a href="http:" />breitling</a> We [url=http://www.watchesbit.com/omega.html]omega watches[/url] Most of and beautiful breitling We are

Avatar-missing-icon-01 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-06 shoes, 26 Sep 05:26 AM

hary A nice green gel sole completes the package. These also came with the silver Air Max premium keychain. Best shoes i've brought for UGG Boots Sale, the grip is unbeleivable can stop and turn on a dime, they fit perfectly and my feet are never sore after playing Nike Air Max 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 Air Max Shoes were only available on UGGS in 2006 and were not available in stores. Retail on them was UGG Boots and a matching shirt was released alongside them as well. They feature a nice all patent leather upper with no Cheap UGG Boots on the toe but some stars are pictured in their place.

Avatar-missing-icon-04 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-02 chanel, 11 Oct 04:11 PM

We are the super gucci bags provider. Welcome to visit our gucci outlet store . If you are interesting in Chanel Handbags , as well as Chanel sandals you can find it from our chanel outlet store .

Here may surprise for you, the weather is getting cold, do you have a pair of UGG Boots, we strongly recommend you guys to find you own UGG Boots, ecpecially for UGG Bailey Button.

One more, Chanel Classic Bags are fancy. Chanel Bags are a style of fashion, and fashion may pass, style forever.. Louis Vuitton Bags dream of success.

coach bags

UGG Classic Short Boots, which will advice you in selecting the best cossack for your feet.

Avatar-missing-icon-03 njrej, 12 Oct 07:36 AM

This article is very interesting, I like it. I will always come to visit after.I would recommend to friends more. mbt shoes Collection in MBT Kisumu Sandals, MBT Sport Shoes, mbt walking shoes, MBT Shuguli GTX and MBT Fanaka GTX Shoes and so on. They are very popular in USA, UK, Canada, mbt walking shoesAustralia, France, Germany, discount mbt shoes Swiss and now China. You will never worry about how to go with your mbt shoes, because they collect all the colors in Beige, Cream, Coffee, Chocolate, Blue, Birch, Chili and Pink, White, Black, Red, Silver and Grey just like the Rainbow.

Avatar-missing-icon-01 njrej, 12 Oct 07:36 AM

This article is very interesting, I like it. I will always come to visit after.I would recommend to friends more. mbt shoes Collection in MBT Kisumu Sandals, MBT Sport Shoes, mbt walking shoes, MBT Shuguli GTX and MBT Fanaka GTX Shoes and so on. They are very popular in USA, UK, Canada, mbt walking shoesAustralia, France, Germany, discount mbt shoes Swiss and now China. You will never worry about how to go with your mbt shoes, because they collect all the colors in Beige, Cream, Coffee, Chocolate, Blue, Birch, Chili and Pink, White, Black, Red, Silver and Grey just like the Rainbow.

Avatar-missing-icon-10 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 .

Avatar-missing-icon-09 banban, 02 Apr 01:13 AM

Oakley sunglasses, Inc. announced that it has entered into a long-term agreement to be the Official Eyewear Partner of Mammoth Mountain Ski Area, one of the most popular ski destinations in America. The company is also being recognized as an Official Terrain Park Supporter of the Unbound Terrain Parks at Mammoth Mountain. oakley glasses

“This partnership with Mammoth Mountain Ski Area is an honor for Oakley, and it validates our many years of dedication in driving the innovation of alpine performance technology,” said Scott Bowers, Oakley SVP Global Marketing and Brand Development. “Many of our top pros who have come out of Mammoth rely on Oakley’s high definition sunglasses and goggles, including Winter Olympian and Mammoth Unbound Team Rider Greg Bretz, use Mammoth to hone their skills. It provides riders with the terrain and parks to push performance beyond limits,oakley and Mammoth Mountain is a place where all riders and skiers can reach their true potential. On top of that it is just cool that we are aligned with a California snow resort that is world-class. We are proud to achieve the recognition of being the official eyewear partner,” concluded Bowers.

Avatar-missing-icon-09 百度, 22 Apr 04:43 AM

百度 [url=http://www.sina.com]sina[/url] [url="http://www.baidu.com"]baidu[/url]
[url=www.google.com]google[/url [link=http://www.yahoo.com]yahoo[/link] [a/]http://www.yahoo.com[a]yahoo[/a]

Avatar-missing-icon-09 Office Toys, 11 May 08:51 PM

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, yohimbine

Avatar-missing-icon-05 Kolev, 08 Jun 03:45 PM

I know this is heresy, but Watch TV online I’m increasing questioning make money online the term ‘news’. When asked to define it, I’ve How to Cook always said the clue is in Workout Routine the first three letters. That holds Weight Loss true. But ‘news’, for me, has watch TV online become a reverse cell phone lookup euphimism for Concrete Poetry packaged, often influenced/manipulated content that belies the power of what might drive cars a conversation across the garden weight loss fence, or on Twitter, or in a collaborative on/offline reverse phone lookup environment.

Avatar-missing-icon-04 plus size wedding dresses, 03 Aug 02:02 AM

Do not know if you have not heard of the tiffany? Tiffany Jewelry.If you have not heard, then you're behind the times, discount tiffany jewelry.there are cheap tiffany now, pretty cheap tiffany of Chains, the beauty of the girls, cheap tiffany jewelry .the brand is definitely your best choice.

Avatar-missing-icon-04 bili, 01 Nov 10:23 AM

It was a very good post indeed. I thoroughly enjoyed reading it in my lunch time. Will surely come and visit this blog more often. Thanks for this informative share Online Directory

Avatar-missing-icon-07 north face outlet, 06 Feb 01:17 AM

When I was a college The North Face Outlet student in the mid 90's, I daydreamed of combining my climbing passion with my budding profession as a geologist. The North Face Gore Tex It seemed like it would take a lot of luck to blend the academic and adventure pursuits into one career, but it had been done. The North Face JacketsI wistfully read stories of alpine legend Mugs Stump climbing and descending rock faces in remote parts of Antarctica, collecting fission-track dating The North Face Nuptsesamples for his brother, Professor Ed Stump.

Avatar-missing-icon-09 dress designs, 08 Feb 06:30 AM

There are many ways to test a Web application through its user interface. In the case of Web applications intended for use by actual humans, manual testing in some form is almost always essential. But automated Web app UI testing can be very useful in many scenarios too. In the December issue of MSDN Magazine I describe an automated testing approach which uses the jQuery library. The jQuery library is an open source collection of JavaScript functions. Although jQuery was created with Web development in mind, it can be used to write pretty neat test automation too. The image below shows an example. The Web page in the left frame contains some test-related UI controls and a jQuery script which exercises the Web app under test in the right frame

dress designs

Avatar-missing-icon-09 dress designs, 08 Feb 06:32 AM

Avatar-missing-icon-05 Sushil Kumar, 22 Dec 10:18 AM

I wanted to thank you for this unique read. I definitely savoured all bits and pieces of it including all the comments and I have added you to my bookmark list to check out new articles you post. | Creating an unfunded PhD tier could have dire consequences for the accessibility and diversity of the graduate school,.

Have an account? Sign in or register.

Leave a Comment

6 Ratings: 3.93

Delivery: 4.10

Content: 3.77

Last Five Ratings