Is there any pros and cons of writing scripts in jmeter without using selenium?
JMeter can be used for load testing etc. Also, it's possible to do functional testing as well. I know selenium scripts can be run in JMeter.
Why use selenium if most of the work can be done using JMeter?
Please note that I'm expecting an answer relating to such as advantages of selenium over JMeter, unique actions/tests can be performed in selenium and use of both tools other than one tool(JMeter)
According to JMeter project main page:
So you will not be able to assess client-side performance using JMeter and will not be able to conduct high loads using Selenium (or at least you will need many machines in order to kick off many real browsers)
The truth is somewhere in-between, i.e.
Create main load on HTTP protocol level using JMeter (make sure to configure it to behave like a real browser in terms of
- At the same time you can run a Selenium test and measure page rendering speed, scripts execution speed, track page loading events, etc. JMeter can be integrated with Selenium using WebDriver Sampler plugin.