YUNOVA · Selenium & Test Automation
Module 10: API and performance testing
REST Assured API testing
Key points
- REST Assured tests REST APIs in Java with a given/when/then style.
- It sends requests and checks status codes, headers and the body.
- JSON fields are checked with path expressions.
Postman API test automation
Key points
- Postman tests are written in JavaScript in the Tests tab.
- Collections group requests; environments hold variables like the base URL.
- Newman runs Postman collections from the command line.
JMeter load testing basics
Key points
- A JMeter test plan has thread groups, samplers and listeners.
- A thread group sets the number of users, the ramp-up and the loop count.
- Listeners show response times, throughput and errors.