
By Andreas Grabner | Article Rating: |
|
August 7, 2009 04:15 PM EDT | Reads: |
22,662 |

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 22,662
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 Grabner has been helping companies improve their application performance for 15+ years. He is a regular contributor within Web Performance and DevOps communities and a prolific speaker at user groups and conferences around the world. Reach him at @grabnerandi
![]() Jun. 20, 2017 06:00 PM EDT Reads: 273 |
By Elizabeth White ![]() Jun. 20, 2017 04:45 PM EDT Reads: 946 |
By Yeshim Deniz ![]() Jun. 20, 2017 02:15 PM EDT Reads: 1,315 |
By Elizabeth White ![]() Jun. 20, 2017 12:00 PM EDT Reads: 974 |
By Elizabeth White ![]() Jun. 20, 2017 12:00 PM EDT Reads: 869 |
By Liz McMillan ![]() Jun. 20, 2017 08:30 AM EDT Reads: 1,022 |
By Yeshim Deniz ![]() Jun. 20, 2017 07:45 AM EDT Reads: 1,351 |
By Yeshim Deniz ![]() Jun. 20, 2017 07:30 AM EDT Reads: 1,442 |
By Yeshim Deniz ![]() Jun. 20, 2017 07:15 AM EDT Reads: 1,414 |
By Elizabeth White ![]() Jun. 20, 2017 04:15 AM EDT Reads: 1,349 |
By Yeshim Deniz ![]() Jun. 19, 2017 04:15 PM EDT Reads: 2,033 |
By Yeshim Deniz ![]() Jun. 19, 2017 10:00 AM EDT Reads: 2,221 |
By Elizabeth White ![]() Jun. 11, 2017 04:00 PM EDT Reads: 1,517 |
By Liz McMillan ![]() Jun. 11, 2017 04:00 PM EDT Reads: 1,381 |
By Yeshim Deniz ![]() Jun. 10, 2017 06:45 AM EDT Reads: 1,914 |
By Elizabeth White ![]() Jun. 8, 2017 12:00 PM EDT Reads: 1,558 |
By Liz McMillan ![]() Jun. 8, 2017 09:00 AM EDT Reads: 1,542 |
By Liz McMillan ![]() Jun. 8, 2017 07:00 AM EDT Reads: 2,390 |
By Yeshim Deniz ![]() Jun. 8, 2017 12:00 AM EDT Reads: 6,018 |
By Carmen Gonzalez ![]() Jun. 7, 2017 08:00 PM EDT Reads: 6,730 |