Running JMeter in Non-GUI mode
GUI mode is only for setting up and script and verifying it. For actual load testing, it is recommended to run JMeter in non-GUI mode.
jmeter -n –t test.jmx -l testresults.jtl
-n: It specifies JMeter is to run in non-gui mode -t: Name of JMX file that contains the Test Plan -l: Name of JTL file to log results
Maintain User Sessions (send back cookies)
Unlike the browser, JMeter will not send cookies back to the server with each request by default. To send cookies set in earlier requests, include HTTP Cookie Manager in the test plan. We just need to include it, no further configuration is required.
Using Selenium with JMeter
JMeter can be integrated with Selenium. This enables us to test single page applications (SPA) and the performance of AJAX calls.