JMeter Basic Authentication

I’ve found through debugging requests coming in from JMeter that the HTTP Authorization Manager module doesn’t encode the username and password correctly. It puts a newline character after the username. To run a JMeter test against a Basic Auth protected endpoint, include the HTTP Header Manager and add the Basic Auth header yourself: Manually Encoding … Read more

SSLHandshakeException while connecting to a https site

SSLlabs is apparently testing “out of the box” support. Java crypto has a crock dating back to the 1990s when the US government severely restricted export of crypto software, and as a result the JRE (or JDK) as distributed by then-Sun now-Oracle does not permit use of 256-bit symmetric encryption, which your server is demanding. … Read more

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

JMeter : How to record HTTPS traffic?

Starting from JMeter 3.0 default port for the HTTP(S) Test Script Recorder is 8888 The easiest way to configure recording is using JMeter Templates feature. From JMeter’s main menu select: File -> Templates -> Recording -> Create Don’t forget to start the recorder : In JMeter < 4.0, Expand “Workbench”, if >= 4.0, ignore this … 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

What is the highest number of threads that is reasonable to simultaneously run in Jmeter?

JMeter can simulate a very High Load provided you use it right. Don’t listen to Urban Legends that say JMeter cannot handle high load. Now as for answer, it depends on: your machine power your jvm 32 bits or 64 bits your jvm allocated memory -Xmx your test plan ( lot of beanshell, post processor, … Read more