Online Exam Quiz

questionQuestion  1 to 30

How do you handle XML responses in Rest-Assured?

  • parseXML()
  • XMLPath()
  • body().xml()
  • jsonPath()
Mark for review

How do you handle cookies in Rest-Assured?

  • setCookies()
  • requestCookies()
  • cookies()
  • addCookies()
Mark for review

How do you pass path parameters in Rest-Assured?

  • addPathParams()
  • parameters()
  • pathParams()
  • addPath()
Mark for review

Which assertion checks the content type of a response in Rest-Assured?

  • type()
  • assertContent()
  • contentType()
  • responseType()
Mark for review

How do you handle multiple values in the response body?

  • response().getList()
  • extract().json()
  • body().jsonPath()
  • body().list()
Mark for review

What function is used to specify the query parameters in Rest-Assured?

  • addParams()
  • requestParams()
  • setParams()
  • queryParams()
Mark for review

How can you modify the request headers dynamically in Rest-Assured?

  • modify()
  • setHeaders()
  • addHeader()
  • headers()
Mark for review

How do you skip SSL validation in Rest-Assured?

  • given().noSsl()
  • given().skipSSL()
  • given().sslEnabled()
  • given().relaxedHTTPSValidation()
Mark for review

How do you validate a negative status code in Rest-Assured?

  • checkStatus(404)
  • assertStatusCode(404)
  • statusCode(404)
  • status().validate(404)
Mark for review

How do you specify custom timeouts in Rest-Assured?

  • timeout()
  • requestTimeout()
  • timeLimit()
  • setTimeout()
Mark for review

Which method in Rest-Assured is used for setting the base URI?

  • baseUri()
  • baseUrl()
  • setBase()
  • setURI()
Mark for review

How do you send a PUT request using Rest-Assured?

  • put()
  • update()
  • send()
  • putRequest()
Mark for review

Which of the following testing types can be performed using Rest-Assured?

  • Unit testing
  • Load testing
  • API testing
  • UI testing
Mark for review

What does the extract().response() method do in Rest-Assured?

  • Extracts raw data from the response
  • Extracts JSON data from response
  • Extracts status code
  • Extracts HTTP headers
Mark for review

How do you validate the HTTP status code in Rest-Assured?

  • assertEquals()
  • statusCode()
  • validateCode()
  • validateResponse()
Mark for review

What method is used to send a PATCH request in Rest-Assured?

  • patchRequest()
  • patch()
  • request()
  • send()
Mark for review

How can you perform parameterization in Rest-Assured tests?

  • Using dataProvider()
  • Using parameters()
  • Using values()
  • Using @Test annotations
Mark for review

How do you configure Rest-Assured to use a custom serializer?

  • setConfig()
  • setSerializer()
  • customConfig()
  • setCustomSerializer()
Mark for review

Which of these annotations is used in Rest-Assured for JUnit testing?

  • @Before
  • @Request
  • @Test
  • @RestAssured
Mark for review

Which of the following methods in Rest-Assured is used for logging?

  • log().body()
  • log().request()
  • log().response()
  • log().all()
Mark for review

How can you send form data in a POST request using Rest-Assured?

  • using formParams()
  • using body()
  • using params()
  • using request()
Mark for review

What is the correct method to handle a HEAD request in Rest-Assured?

  • request()
  • head()
  • headRequest()
  • send()
Mark for review

What does the extract().asString() method do in Rest-Assured?

  • Converts response to string
  • Converts JSON to object
  • Extracts response time
  • Extracts headers
Mark for review

How do you validate the response body format in Rest-Assured?

  • body().jsonPath()
  • body().contentType()
  • body().validate()
  • body().format()
Mark for review

How can you extract a value from the response body in Rest-Assured?

  • getBody()
  • extract()
  • body()
  • response()
Mark for review

How do you extract a specific field from a JSON response in Rest-Assured?

  • jsonPath()
  • response()
  • extract()
  • getJson()
Mark for review

How do you perform assertions on response data in Rest-Assured?

  • response()
  • body()
  • assertEquals()
  • assert()
Mark for review

How do you configure Rest-Assured to log request and response?

  • log().all()
  • log().response()
  • log().request()
  • log().body()
Mark for review

How can you validate a JSON response schema in Rest-Assured?

  • validateJSONSchema()
  • body().matchesSchema()
  • assertSchema()
  • matchesJsonSchema()
Mark for review

How can you validate the response time in Rest-Assured?

  • time()
  • validateTime()
  • responseTime()
  • body().time()
Mark for review

blinkerOnline

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • Answered
  • Not Answered
  • Marked for Review