Write extracted data to a file using jmeter

Just solved a similar problem. After getting the data using a regular expression extractor, add a BeanShell PostProcessor element. Use the code below to write the variables to a file: name = vars.get(“name”); email = vars.get(“email”); log.info(email); // if you want to log something to jmeter.log file // Pass true if you want to append … Read more

Running Selenium scripts with JMeter

Below are possible ways to run Selenium test-cases from JMeter: using JUnit Request Sampler; using BeanShell Sampler; using JSR223 Sampler + Groovy. JUnit Request Sampler Running Selenium tests this way maybe useful if you want to re-use already automated (Java) Selenium scenarios instead of re-writing JS-scripts for WebDriver Sampler. Selenium RC Prepare Selenium test project … Read more

Response time is high in JMeter

If single request takes around 5 seconds it is quite expected that 100 requests take 500 seconds if you run them sequentially. If you run them in parallel – consider the following troubleshooting tecnhiques Run your test with 1-2 virtual users / iterations with View Results Tree listener enabled to ensure that it is doing … Read more