Proxy2JMX Converter

It's possible to convert existing Selenium scripts into JMeter JMX file. Keep in mind: only requests will be converted, no assertions or other logic. Also note that it will only capture requests going to publicly available servers, so localhost or behind the firewall won't be captured. For this purpose Taurus uses BlazeMeter Recorder so you need valid token. This service starts proxy for logging requests and build jmx file based on the requests when test is finished. You will need BlazeMeter API key configured for this approach to work. Lets see example config:

execution:
- executor: selenium
  iterations: 1
  scenario: sel

scenarios:
  sel:
    script: example.java

services:
- module: proxy2jmx

As soon as taurus completes its work you'll find JMX in artifacts dir with the name generated.simple.jmx and generated.smart.jmx. SmartJMX is a feature to help with JMX parameterization and explained in detail in this article.

Proxy Server Auto Setup

Taurus can help you with settings of proxy server for recording purposes. This ability depends on your operation system.

Linux

Full support of Chrome and Firefox.

Microsoft Windows

We provide support of Chrome browser at the moment. For correct work of proxy you have to prepare the right place for chromedriver (don't place your chromedriver inside Windows directory). We strongly recommend the next way:

  1. create directory (e.g. "c:\chromedriver")
  2. put chromedriver.exe into created directory and remove all another copies of chromedriver
  3. add directory to path:
  4. 1 go to Control Panel -> System and Security -> System
  5. 2 Advanced system settings -> Environment Variables
  6. 3 in the System Variables area locate the Path variable, highlight it and click Edit
  7. 4 add your path ("c:\chromedriver") to previous value (and don't forget about path separator ;)
  8. 5 save changes.
  9. don't run taurus from Admin account or Admin terminal
  10. don't hardcode the path to chromedriver.exe in your scripts

Take note: as proxy2jmx uses own proxy it doesn't support top level proxy option.

MacOS

Auto setup in MacOS is currently not implemented.