Perl Oasis 2011

6 years of web testing using Test::WWW::Mechanize

By Jim Martinez (‎JimX11‎)
Date: Saturday, 15 January 2011 12:00
Duration: 20 minutes
Target audience: Beginner
Language:
Tags: mechanize story success testing web


For over 9 years the Shim­berg Cent­er for Hous­ing Stud­ies at the Uni­vers­ity of Florida has re­lied on Perl to serve hous­ing data to urban plann­ers and the pub­lic. http://flhousingdata.shim­berg.ufl.edu/ In a talk aimed at I'd like to talk about the fol­low­ing: * Mig­rated from mod_perl 1 to mod_perl 2. * Sub class­ing Test::WWW::Mec­han­ize * Re­fac­tor­ing using Tests * Main­tain­ing web stan­dards with well for­med html * Th­ings to test web pages for ** Is html well-formed? ** Are there un­print­able charact­ers in the html? ** If your site has naviga­tion on each page, does the naviga­tion "look right?" Same for foot­er, same for breadcrumb. ** Are there stale links on the page? * Test­ing web applica­tions ** Does a sim­ple click through work? ** If aut­hentica­tion is re­quired, can a user ac­cess those pages with­out aut­henticat­ing? * Main­tain­ing a test suite ** How do you test the test suite? ** How do you re­fac­tor the test suite?


Attended by: Daniel LeWarne (‎Possum‎), Jonathan Hogue, Stefan Hornburg (‎racke‎),