Testing / Apache JMeter Interview questions
How do you record a test script in JMeter?
Add an HTTP(S) Test Script Recorder to the test plan, configure a browser (or a proxy tool) to route its traffic through JMeter's local proxy port, and start the recorder - every request the browser makes while browsing will then be captured as HTTP samplers under a Recording Controller in the test plan.
For HTTPS traffic to be captured correctly, JMeter's self-signed root CA certificate typically needs to be installed and trusted by the recording browser, since it needs to intercept and decrypt HTTPS traffic to log the actual requests being made.
After recording, the resulting script generally needs cleanup - removing unwanted static-asset requests, adding correlation for dynamic values, and parameterizing hardcoded data - before it's ready to serve as a realistic, reusable load test.
More Related questions...
