GET Request

In this lesson, we will learn to automate an HTTP GET request using Rest Assured.

HTTP GET request automation

Rest Assured uses given/when/then syntax from behavior-driven development as it makes it easy to read and write tests.

Example 1 – Fetch all student records

  • HTTP Method: GET
  • Target URL: http://ezifyautomationlabs.com:6565/
  • Resource path: /educative-rest/students
  • Take a look at the code below:

Get hands-on with 1200+ tech skills courses.