What do you want to save?
Add Code snippet
New code examples
-
Other 2022-02-19 08:05:33
negative testing in api
How I do negative testing in api, - I send invalid request parameters - or invalid headers - or invalid request json body and verify that response status code is not 200 - and response body contains error message (for example there are... Add solution -
Other 2022-02-17 20:35:37
testing response body
Basicall we are checking response body to verify if request matches with response. In the response we are verifying (body, status code, header, response time, test structure of json against the given jsonSchema) If file not under resources: File sch... Add solution -
Other 2022-02-16 00:30:01
how do you do positive api testing
How I do positive testing in api, - I send valid path and query parameters, - valid headers, - valid request body to valid url and verify that - response status code is correct and - response body is as expected How I do negative testin... Add solution -
Other 2022-01-26 03:50:56
request
HTTP request method is made up of four components: Request Method ==> Get, Post, Put, Delete (these are the common ones) Request URL ==> the URL of the resource Request Header ==> Accept-Language, AcceptEncoding, User-Agent, Host Request Body ==&... Add solution -
Other 2021-11-22 05:38:19
response logging
Response Logging If you want to print the response body regardless of the status code you can do: get("/x").then().log().body() .. This will print the response body regardless if an error occurred. If you're only interested in printing the re... Add solution -
Java 2021-11-07 05:08:10
make a post request call using HttpClient in java
HttpClientPostJSON.java package com.mkyong.java11.jep321; import java.io.IOException; import java.net.URI; import java.net.http.HttpClient; import java.net.http.HttpRequest; import java.net.http.HttpResponse; import java.time.Duration; public class Htt... Add solution -
Other 2021-10-27 19:36:10
how to test time in api
Basicall we are checking response body to verify if request matches with response. In the response we are verifying (body, status code, header, response time, test structure of json against the given jsonSchema) If file not under resources: File sch... Add solution -
Other 2021-10-22 04:55:12
what do you test in response api
Basicall we are checking response body to verify if request matches with response. In the response we are verifying (body, status code, header, response time, test structure of json against the given jsonSchema) If file not under resources: File sch... Add solution