skip to main | skip to sidebar

Tables Latency Benchmark

Being the blog of Pete Hopkins. This pirate kills fascists.

Bling-Bling

www.flickr.com

Monday, March 20

Testing Web Pages

I feel compelled to make a quick shoutout for JWebUnit, a unit testing framework for web pages. Basically, it’s an embedded Java HTTP client that allows you to programmatically access URLs, inspect pages, manipulate forms, and click links.

This is useful because it lets you write tests against web app behavior. So, if you change, say, Blogger, you can run tests to ensure that it’s still possible to post and comment, and that the access control works, and that posts show up right, etc.

I’ve — up until now — mostly scoffed at automated web testing. This is because it really doesn’t address design concerns, and doesn’t do heavy lifting on issues like cross-browser compatibility.

But, I’ve been working a bit on the Blogger comments form, and I have to admit I’m really quite pleased to have the confidence in my changes that passing the automated tests gives. If you’re curious about why this is necessary, play around with your comments settings and access the comments page in various states of logged in and not. Given all the possible combinations, it’s really necessary to ensure that each little permutation works the way it’s supposed to.

So, I’m pretty happy, but one major flaw in JWebUnit is that it doesn’t let you change hidden form fields. While this is authentic in that well-behaved user agents don’t let users change hidden form fields, but I’d much rather have tests to make sure that if a curious or malicious user did start playing around with those, the app would behave reasonably, or at least blow up without letting anyone do anything they shouldn’t.
Posted by Fin at 10:38 PM

1 comment:

  1. D to the P9:38 PM

    Apperently your not using this new technology at blogger.com as we have had nothing but problems trying to ftp OUT of your servers - incoming to our other websites are PERFECT in ftp operation.

    Hope you guys are staying up late tonight before the stock markets open!

    Also, there were quite a few comments section and buttons missing from a lot of user complaints I was browsing through.

    And on your last point, aye!

    ReplyDelete
    Replies
      Reply
Add comment
Load more...

Newer Post Older Post Home
Subscribe to: Post Comments (Atom)

Followers

Subscribe To

Posts
Atom
Posts
Comments
Atom
Comments

Blog Archive

  • ►  2009 (7)
    • ►  March (5)
    • ►  January (2)
  • ►  2008 (36)
    • ►  December (4)
    • ►  October (1)
    • ►  September (4)
    • ►  August (8)
    • ►  July (4)
    • ►  May (2)
    • ►  April (4)
    • ►  March (4)
    • ►  February (3)
    • ►  January (2)
  • ►  2007 (24)
    • ►  December (1)
    • ►  November (2)
    • ►  October (5)
    • ►  September (1)
    • ►  June (6)
    • ►  May (2)
    • ►  March (3)
    • ►  February (1)
    • ►  January (3)
  • ▼  2006 (32)
    • ►  December (3)
    • ►  November (1)
    • ►  October (5)
    • ►  September (3)
    • ►  August (2)
    • ►  May (1)
    • ►  April (2)
    • ▼  March (1)
      • Testing Web Pages
    • ►  February (6)
    • ►  January (8)
  • ►  2005 (53)
    • ►  December (8)
    • ►  November (30)
    • ►  October (5)
    • ►  September (10)

Gamercard

Geekness

Twitter Updates

Twitter Updates

    follow me on Twitter

    About Me

    My Photo
    Fin
    I play board games and video games, and sing sea shanties when I can. I like shiny things and tech things and cat macros. I am aware of all Internet traditions.
    View my complete profile

    Search This Blog

    Friends’ Blogs

    • Mihai Parparita
      Infinite Mac: Snow and A/UX
      4 weeks ago
    • Jason Shellen
      methaphone
      10 months ago
    • Graham Waldon
      Card Game: The Fellowship of the Ring
      1 year ago
    • Michael Greenberg
      I’m looking for students!
      2 years ago
    • Adam Saks
      Mengatasi Ambeien Atau Wasir Kambuh
      6 years ago
    • Abstractioneer
      Things People Have Been Impeached For In the Past
      6 years ago
    • Kellan Elliott-McCrea
      New-ish site
      7 years ago
    • tins ::: Rick Klau's weblog
      Jaguar I-Pace first impressions
      7 years ago
    • Jason Goldman
      Links for 2017-02-22 [del.icio.us]
      9 years ago
    • Greg Stein
      PSA: Redbud Custom Homes
      9 years ago
    • --verbose
      How to Write Hello World in Go (in Go)
      12 years ago
    • Stacy Jenson
      I promise not to mommyblog
      12 years ago
    • Eric Case
      Creepy
      13 years ago
    • Vast Public Indifference
      Pompe Stevens, Enslaved Artisan
      13 years ago
    • watched pots | news
      Dogs are cool.
      14 years ago
    • Rachel Grey
      Six months with Ido Portal: game-changer 2011
      14 years ago
    • Lauren Davis
      Best Thing Today: Opinioncat Lady
      14 years ago
    • massless
      Dreams, discernment, and Google Reader
      14 years ago
    • saladwithsteve
      Building F# on Mac OS X
      16 years ago
    • Farang
      Kaiseki
      17 years ago
    • Marty Lichmann
      Janko Keyboard
      17 years ago
    • Shriram Krishnamurthi
      Project Beansprout Successful
      17 years ago
    • Mobile Vince
      Hawaii wrap-up
      19 years ago
    • Chinese Migrant Worker
      More Real Than Real
      19 years ago
    • Laurence Gonsalves
      Copyright Law and the King
      19 years ago
    • Josh Peterson
      St. Pardi Gras Shirts
      19 years ago
    • Buzz Andersen
    • Tina Huang
    • Evan Williams
    • Andy Yen
    • Biz Stone, Genius
    • Kimmy Richardson
    • tajc | taj campbell
    Show 10 Show All
    Powered By Blogger