| By Andreas Grabner | Article Rating: |
|
| August 7, 2009 04:15 PM EDT | Reads: |
2,939 |
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,939
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
- Moving Your RIA Apps into the Cloud: Seven Challenges
- Cloud Computing Drives Real World Enterprise IT Value
- Big Data Kills 30-Year-Old Market
- Revolutionizing Security Through Virtualization
- What Could You Do With Your Code in 20 Lines or Less?
- The Seven Deadly Sins of Software Test Automation
- CenterPoint Energy's Pipeline Group Signs Joint Development Agreement With Affiliate of FPL Group to Explore Construction of New Pipeline in North Louisiana
- The Cloud Bubble: Is Computing Becoming a Utility?
- Moving Your RIA Apps into the Cloud: Seven Challenges
- Pixamba CEO Launches Stock Photography Topic on Ulitzer
- Cloud Computing Drives Real World Enterprise IT Value
- Big Data Kills 30-Year-Old Market
- Animation Doesn't Always Require a Computer
- Revolutionizing Security Through Virtualization
- You Don’t Know Your Competition…
- What Could You Do With Your Code in 20 Lines or Less?
- The Seven Deadly Sins of Software Test Automation
- CenterPoint Energy's Pipeline Group Signs Joint Development Agreement With Affiliate of FPL Group to Explore Construction of New Pipeline in North Louisiana
- The Top 250 Players in the Cloud Computing Ecosystem
- Red Hat Named "Platinum Sponsor" of Virtualization Conference & Expo
- An Introduction to Ant
- Telco Perl Powers Telephony With Linux
- Cloud Computing Bootcamp May 18-19 in Prague, Czech Republic
- This Man Should Be Fired from His Job as a Magazine Editor
- 120 Billion Web Pages Indexed by Cuil
- Microsoft Reorgs After Key Exec Bolts
- Java for Managers -- What Should They Know?
- The Cloud Bubble: Is Computing Becoming a Utility?
- RightScale Goes Multi-Cloud
- ActiveState Celebrates 20th Anniversary of Perl with Release of ActivePerl 5.10.0 Build 1001











E-Government initiatives aimed at modernizing...























