Jmeter Coverage
Jmeter Coverage
Streaming services like Spotify and Netflix use APIs to distribute content.
Download a distributed archive from Binaries section of JMeter from Download Apache
JMeter page
Depending on the version you downloaded, check minimal Java version requirements
and
install Java if needed.
\java -version
Open JMeter UI
If you are able to see JMeter UI, basic setup was successful.
1 Start JMeter
2 Create a TestPlan
3 Create a Thread Group (Users)
4 Add a Sampler (Http)
5 Add Listeners
6 Run the Test
Assertions
Assertions = checks on the Request/Response
1 Response Assertion
2 Duration Assertion
3 Size Assertion
4 HTML Assertion
5 XML JSON Assertion
6 XPATH Assertion
Windows
jmeter -n -t “location of your test file” -l “location of results file”
Linux / Mac
sh jmeter -n -t “location of your test file” -l “location of results file”
Plugins - https://jmeter-plugins.org/wiki/Start/
Functions - methods used to populate fields in any other element of a test plan
Syntax
${__funcName}
${__funcName(var1, var2, ….)}
Variables - containers that can store values, which can be referred in any element
within a thread
${varName}
https://reqres.in/api/users?page=2