Given/When/Then
In this lesson, we'll learn how to build a DSL expression request using the Given/When/Then methods.
given()
It is used in building the DSL expression request with any additional information like headers, params, message body, authentication, etc., before making any HTTP
Request like POST
, GET
, PUT
, DELETE
using given()
method.
Example 1:
RestAssured.given()
.header("heade
...Create a free account to view this lesson.
By signing up, you agree to Educative's Terms of Service and Privacy Policy