The BrowserMob Blog | All about browsers, performance testing, and load testing

Sep/09

18

DynaTrace Selenium Integration

We are big fans of what DynaTrace is doing, they are a great compliment to testing with BrowserMob. They have written an nice article on integrating their performance testing monitor with Selenium and BrowserMob.

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:

  1. every test case should automatically be tagged with the test case name. This ensures that we can link each transaction to the test case
  2. 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

  1. a custom TestRunner class (DynaTraceSeleniumRunner) that sets the default value for the HTTP Header to the current test case name
  2. a custom Selenium class (DynaTraceSelenium) that offers the scripter to change the value for the HTTP Header

Go to the full article to get the code snippets and integration examples.

[Post to Twitter] Tweet This Post 

No tags

No comments yet.

Leave a Reply

<< IT World on Open Source Load Testing Tools

Show CMSWire some love >>

Theme Design by devolux.nh2.me

Tweet This Post links powered by Tweet This v1.3.9, a WordPress plugin for Twitter.