| By Andreas Grabner | Article Rating: |
|
| August 7, 2009 04:15 PM EDT | Reads: |
2,937 |
Selenium is a free Web Application Testing System. It gained lots of popularity since it is available. It’s integration to FireFox – which allows instant record/replay as well as the scripting option - makes it a great tool for functional web testing.
BrowserMob on the other side leverages Selenium by providing an automated load-testing environment for Selenium scripts all configurable online via a Web Dashboard.
Tagging Web Requests
In my recent blog post – Get more out of functional web testing: How to correlate test reports with server side log information? – I discussed the problem that testing results are usually not linked to the log and diagnostics information captured by the application under test. The blog entry offered a way to link the two sides using HTTP Tagging via an HTTP Proxy. Tagging individual Web Requests allows linking each individual request executed by the testing tool with the transactions that are executed on the server side. Your logging framework or diagnostics solution can then take this tag and link the transaction to the originating web request.
Tagging Web Requests with Selenium
Selenium offers a feature to add additional HTTP Tags to each Web Request via DefaultSelenium.addCustomRequestHeader. This feature allows achieving the exact same result as I explained in my previous blog entry.
In order to make it easy for Selenium script developers to use this feature we (Patrick Lightbody from BrowserMob and I) came up with the following 2 requirements:
- every test case should automatically be tagged with the test case name. This ensures that we can link each transaction to the test case
- the scripter must have the option to change the tagged value within a test case to allow more granular linking to individual actions in a test case
The implementation for these requirements resulted in
- a custom TestRunner class (DynaTraceSeleniumRunner) that sets the default value for the HTTP Header to the current test case name
- a custom Selenium class (DynaTraceSelenium) that offers the scripter to change the value for the HTTP Header
Published August 7, 2009 Reads 2,937
Copyright © 2009 SYS-CON Media, Inc. — All Rights Reserved.
Syndicated stories and blog feeds, all rights reserved by the author.
More Stories By Andreas Grabner
Andreas has 10-years’ experience as an architect and developer, and he currently works as a senior performance architect and technology strategist for dynaTrace Software, where he influences product strategy and works closely with customers in implementing performance management solutions across the application life cycle. He is a regular speaker at software conferences, writes for a number of technology publications, and blogs at http://blog.dynatrace.com
- GITEX TECHNOLOGY WEEK 2009 Exhibitor Profiles
- IBM’s Linux-Based ‘Cloud-in-a-Box’ Makes its First Sale
- United Planet offers practical portal building tips for SMBs
- Unlocking the Cloud with Enterprise Private PaaS
- The Power of Google and the Promise of Cloud Computing
- Developing APIs for the Cloud
- The Bunker achieves PCI DSS Compliance
- Qt DevDays 2009 - Munich
- Testing the Limits with Jack Margo SVP of Developer Shed, (part 1)
- Big Data Kills 30-Year-Old Market
- Excuse Me But Is That a Gazebo On Your Site?!
- Securing the Cloud and Establishing a Level of Trust
- GITEX TECHNOLOGY WEEK 2009 Exhibitor Profiles
- Is Microsoft as Free as Open Source?
- IBM’s Linux-Based ‘Cloud-in-a-Box’ Makes its First Sale
- Research and Markets: Global Developer Population and Demographic Study 2009, V1 Will Estimate Specific Developer Target Markets' Size
- United Planet offers practical portal building tips for SMBs
- (Database - Sun) + Oracle = Acquisition
- Unlocking the Cloud with Enterprise Private PaaS
- The Power of Google and the Promise of Cloud Computing
- Developing APIs for the Cloud
- The Bunker achieves PCI DSS Compliance
- What Will the Car of the Future Look Like? Delphi Highlights Technologies That Are Enhancing Vehicle Connectivity
- Qt DevDays 2009 - Munich
- The Top 250 Players in the Cloud Computing Ecosystem
- Red Hat Named "Platinum Sponsor" of Virtualization Conference & Expo
- An Introduction to Ant
- Google Web Toolkit: Finally Java Has Been Put into JavaScript!
- AJAX World RIA Conference News - AJAX & RIA with Server-Side JavaScript
- Python Creator Guido van Rossum to Present the Next-Generation Python 3000
- White Paper: "Extended Validation SSL Certificates"
- CEO of Hyperic, Javier Soltero on SYS-CON.TV
- Perforce Software Delivers State-of-the-Art Application Lifecycle Management
- Rating JRuby, Jython, and Groovy on the Java Platform
- TurboGears - Python-Based Framework for AJAX Web Development
- iPhone 3G Only Looks Cheaper



































