How to run ant build.xml (having UI selenium Test cases) from Jmeter to see performance?

48 views Asked by At

I have my ant build.xml to run all my UI test cases. Now my task is to check the performance report so I am looking to integrate it with JMeter. How I can achieve this. Can anyone please share steps or link to me? Thanks

1

There are 1 answers

0
Dmitri T On

If you have enough hardware power (CPU, RAM, etc.) you can consider using Selenium Grid

If you want to use JMeter the best option would be converting your UI-based Selenium tests into HTTP protocol based JMeter tests, this way the footprint of the tests will be much lower.

For example looking into Firefox 73.0.1 System Requirements it looks like you need to have 1 CPU core and 2 GB of RAM for single browser instance while with JMeter you should be able to simulate at least a hundred of virtual users with this CPU and RAM.

With regards to conversion options:

  1. You can record them using JMeter's HTTP(S) Test Script Recorder by configuring your Selenium tests to use JMeter as the proxy.
  2. You can use Proxy2JMX Converter module of the Taurus tool to do the conversion for you, check out How to Convert Selenium Scripts into the JMX Converter article for more details.