The Artima Developer Community
Sponsored Link

Agile Buzz Forum
Extreme UI Testing

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
James Robertson

Posts: 29924
Nickname: jarober61
Registered: Jun, 2003

David Buck, Smalltalker at large
Extreme UI Testing Posted: May 2, 2007 8:29 PM
Reply to this message Reply

This post originated from an RSS feed registered with Agile Buzz by James Robertson.
Original Post: Extreme UI Testing
Feed Title: Cincom Smalltalk Blog - Smalltalk with Rants
Feed URL: http://www.cincomsmalltalk.com/rssBlog/rssBlogView.xml
Feed Description: James Robertson comments on Cincom Smalltalk, the Smalltalk development community, and IT trends and issues in general.
Latest Agile Buzz Posts
Latest Agile Buzz Posts by James Robertson
Latest Posts From Cincom Smalltalk Blog - Smalltalk with Rants

Advertisement

This afternoon, Niall Ross is doing a talk on Extreme UI Testing. Heh: from 1999:

One of the great things about the web is that it's trained our users to not be so picky. They're now accustomed to seeing UIs that look like garbage and change without notice"

Niall is probably right in saying that Ajax (and Apollo, and Silverlight) are undermining this assumption. For UI testing, there are options: SilverMark's Test Mentor, Dave Buck's VWUnit. James Foster has extended WinRunner as well. Niall says that these tools are good for retrofitting an existing system. They don't really support "Test First" (i.e., you can't click an unpainted widget).

An approach: Method Wrappers. Easily possible in VW and Squeak, since you can subclass CompiledMethod and muck with the method dictionary. In VA, you have to do some additional work. Why use MethodWrappers? Niall's earliest attempts at getting at widgets as UI operations returned things made code unpredictable. Using MethodWrappers, you can:

  • Wrap the #open method
  • Have it not actually open, but instead just report "yes, I was about to open"

You can extend that approach to other actions the UI takes and install before/after handling/reporting. Wrappers are a way to achieve what other languages do with "policy" code.

The ideal test is like a use case test at the "top" of the model layer. Niall uses a strategy pattern to automatically wrap threads that get forked off by looking up the stack to see if the code is under test (and if it is, make sure to install a wrapper). He wraps processes, deferred messages, completion helpers, etc. In VW, there's some additional cleanup necessary to ensure that WindowManagers (for example) get "kicked". In VA, you have to drain the event queues.

Summary:

  • MethodWrappers are good for UI tests
  • The same tests can drive the model layer and the UI layer
  • You can still do this in multi-process UIs.

A lot of thanks to various people: John Brant, Don Roberts, Michael Lucas-Smith, and Reinout Heeck.

Technorati Tags: ,

Read: Extreme UI Testing

Topic: Low Scrum Adoption Rate in German-speaking world? Previous Topic   Next Topic Topic: Speaking of copyrights...

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use