Proxy2JMX ConverterIt'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. Let's 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. If you want to change the resulting name of generated JMX files, use simple-output and/or smart-output options of Proxy2JMX module like this: services: - module: proxy2jmx simple-output: result.jmx smart-output: result-clean.jmx Proxy Server Auto SetupTaurus can help you with settings of proxy server for recording purposes. This ability depends on your operating system. LinuxFull support of Chrome and Firefox. Microsoft WindowsWe 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:
Take note: as proxy2jmx uses own proxy it doesn't support top level proxy option. MacOSAuto setup in macOS is currently not implemented. |
On this page:
Quick Links: |