wp Jmeter

Using JMeter to Drive webPageTest

JMeter is of course a performance test tool (see here) but it can also be put to good use for various automation tasks. For example, I sometimes use it to drive ssh through an Apache instance to gather server metrics, allowing easy graphing of CPU, gc stats etc. In this case I'm using it to drive the webPageTest API, to send down test scripts, poll for test status, analyse results and build data files for Jenkins graphs.

There are three stages to the jmeter script:

    1. Kick off the webPageTest test run

    2. Wait for the webPageTest to complete

    3. Retrieve the results and analyse them

It's worth discussing input data briefly as well, particularly for sending down the url encoded webPageTest scripts.

The jmeter script outline is as follows then:


And input data includes url encoded webPageTest scripts, one per line:


[Home] [About (CV)] [Contact Us] [JMeter Cloud] [webPageTest] [wP Highlights] [wP Overview] [wP Jenkins] [wp Jmeter] [wP Input] [wP Start] [wP While] [wP Results] [wP Utilities] [_64 images] [asset moniitor] [Linux Monitor] [Splunk ETL] [Splunk API] [AWS bash] [LR Rules OK] [LR Slave] [LR CI Graphs] [LoadRunner CI] [LR CI Variables] [LR Bamboo] [LR Methods] [LR CI BASH] [Bash methods] [Jenkins V2] [Streaming vid] [How fast] [Finding Issues] [Reporting] [Hand over] [VB Scripts] [JMeter tips] [JMeter RAW] [Dynatrace] [Documents] [FAQ] [Legal]

In the Cartesian Elements Ltd group of companies