DZone
Thanks for visiting DZone today,
Edit Profile
  • Manage Email Subscriptions
  • How to Post to DZone
  • Article Submission Guidelines
Sign Out View Profile
  • Post an Article
  • Manage My Drafts
Newsletter
Log In / Join
Refcards Trend Reports
Events Video Library
Refcards
Trend Reports

Events

View Events Video Library

Related

  • When One Docker Swarm Replica Became Unreachable Over an Overlay Network: A Production Case With Traefik
  • Documentation Debt Is the Real Risk in Long-Lived Network Infrastructure
  • Beyond Clicking Buttons: Build a Browser Agent That Verifies Its Results With Playwright MCP
  • Distributing Massive AI Models With Network-Layer Multicast

Trending

  • Part 3: End-to-End Tracing and Observability Across Goose, agentgateway, and Quarkus
  • How You Clear Your HTML5 Canvas Matters
  • Replay, Scheduling, and Throttling: Engineering a Self-Service Kafka Streaming Tool at Scale
  • Taming Parameter Sniffing in SQL Server 2022 With PSP Optimization

Draft This article hasn't been published, so readers can't see it.

In moderation This article is waiting for review, so readers can't see it yet.

Deleted This article has been deleted, so readers can't see it.

  1. DZone
  2. Data Engineering
  3. IoT
  4. How to Capture Network Transactions With Iridium

How to Capture Network Transactions With Iridium

Learn how to use Iridium to track network transactions as you run your integration tests with the ability to track website performance over time.

By 
Matthew Casperson
·
Updated Jun. 22, 22 · Tutorial
Post on X (opens in a new tab) Share on LinkedIn (opens in a new tab)
3.7K Views

Join the DZone community Save articles, join the discussion, and download Refcards and Trend Reports with a free account.

Join for free Already a member? Log in

Although Iridium is not designed to stress test your web applications, sometimes it is nice to be able to collect objective performance measurements from your web sites using a consistent set of interactions. With Iridium, Firefox, FireBug and the NetExport plugin, it is possible to capture the network transactions that take place during a test.

To get started, we need to configure a special Firefox profile that contains the extensions that we will make use of to capture the network transactions that take place.

  1. Create a local Firefox profile called selenium using the instructions at https://support.mozilla.org/en-US/kb/profile-manager-create-and-remove-firefox-profiles.

  2. Start Firefox with the new profile, and open

  3. Set xpinstall.signatures.required to false. This will allow us to install unsigned extensions.

  4. Install Firebug from https://addons.mozilla.org/en-US/firefox/addon/firebug/

  5. Install NetExport from http://www.softwareishard.com/blog/netexport/

  6. Open again

  7. Configure the following options:

    • extensions.firebug.console.enableSites: true
    • extensions.firebug.script.enableSites: true
    • extensions.firebug.net.enableSites: true
    • extensions.firebug.previousPlacement: 1
    • extensions.firebug.allPagesActivation: on
    • extensions.firebug.netexport.alwaysEnableAutoExport: true
    • extensions.firebug.netexport.defaultLogDir: <your output directory>

What we have done is installed some Firefox extensions that we can use to track the network transactions that take place during a test script execution, and configured the extensions to open and begin recording once the browser is opened.

The next step is to configure Iridium to use this custom Firefox profile. We do this via the webdriver.firefox.profile system property:

<property name="jnlp.webdriver.firefox.profile" value="selenium" />

You can run an example Web Start application by right clicking on this link, saving the file to the local disk, and running it.

When the script is run, you’ll see that Firefox has automatically opened the Firebug extension at the bottom of the page.

Screen Shot 2016-07-12 at 6.08.13 PM.png

Once the test is complete, a HAR file will be saved in the location that you set against the extensions.firebug.netexport.defaultLogDir Firefox configuration option. This file contains the details of the network transactions that took place during the test script execution.

There is a neat service at http://www.softwareishard.com/har/viewer/ that allows you to visualize these transations, much like you would in the developer tools provided with most browsers these days. This tool shows you download sizes, URLs, times and how the interactions contributed to the overall download time of a web page.

Screen Shot 2016-07-12 at 6.12.03 PM.png

HAR files are a great way to track what was downloaded, how big it was, and how long it took, and for comparing those results to future runs to see how the performance and network load of your web sites has changed over time.

Network

Opinions expressed by DZone contributors are their own.

Related

  • When One Docker Swarm Replica Became Unreachable Over an Overlay Network: A Production Case With Traefik
  • Documentation Debt Is the Real Risk in Long-Lived Network Infrastructure
  • Beyond Clicking Buttons: Build a Browser Agent That Verifies Its Results With Playwright MCP
  • Distributing Massive AI Models With Network-Layer Multicast

Partner Resources

×

Comments

Loading comments

The comments didn't load

Please try again in a moment.

Likes

Loading

The next likes didn't load. Please try again.

The likes didn't load

Please try again in a moment.

See who liked this

Log in or join DZone for free to see who liked this article.

Log in Join for free
  • RSS
  • X
  • Facebook

ABOUT US

  • About DZone
  • Support and feedback
  • Community research

ADVERTISE

  • Advertise with DZone

CONTRIBUTE ON DZONE

  • Article Submission Guidelines
  • Become a Contributor
  • Core Program
  • Visit the Writers' Zone

LEGAL

  • Terms of Service
  • Privacy Policy

CONTACT US

  • 3343 Perimeter Hill Drive
  • Suite 215
  • Nashville, TN 37211
  • [email protected]

Let's be friends:

  • RSS
  • X
  • Facebook