api test
fetch('https://jsonplaceholder.typicode.com/todos/1')
.then(response => response.json())
.then(json => console.log(json))
api test
fetch('https://jsonplaceholder.typicode.com/todos/1')
.then(response => response.json())
.then(json => console.log(json))
api test
fetch('https://jsonplaceholder.typicode.com/todos/1')
.then(response => response.json())
.then(json => console.log(json))
dummy api json
var xhr = new XMLHttpRequest();
xhr.open("GET", "https://reqres.in/api/products/3", true);
xhr.onload = function(){
console.log(xhr.responseText);
};
xhr.send();
dummy api json
var xhr = new XMLHttpRequest();
xhr.open("GET", "https://reqres.in/api/products/3", true);
xhr.onload = function(){
console.log(xhr.responseText);
};
xhr.send();
generating test data in api
For API Part: I use "https://www.mockaroo.com/" ==>
generates multiple format (CSV, JSON, XML, etc)
generating test data in api
For API Part: I use "https://www.mockaroo.com/" ==>
generates multiple format (CSV, JSON, XML, etc)
what to test in api
Request Payload has
ENDPOINT (Specific URL where we send our requests to a certain web service. )
METHOD (Get•Post•Put•Patch•Delete)
HEADERS(Represents the metadata of request
or response. Like basically we can verify
the object type we are sending etc )
PARAMETERS(Parameters are to specifiying
even more about the request we are sending
like what specific resources needs to be returned etc.)
BODY(Body is where we sent or received the request we made)
For the repsonse
Basically 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)
what to test in api
Request Payload has
ENDPOINT (Specific URL where we send our requests to a certain web service. )
METHOD (Get•Post•Put•Patch•Delete)
HEADERS(Represents the metadata of request
or response. Like basically we can verify
the object type we are sending etc )
PARAMETERS(Parameters are to specifiying
even more about the request we are sending
like what specific resources needs to be returned etc.)
BODY(Body is where we sent or received the request we made)
For the repsonse
Basically 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)
how do you test api in your project?
I have worked on API testing in my project and I used
POSTMAN for manually testing and REST ASSURED
java LIBRARY for automation.
I used JDBC and it is a Java-based data access technology
used for Java database connectivity. It provides classes and
interfaces to connect or communicate Java application with
database.
JDBC API is a Java API that can access any kind of data
stored in a Relational Database. It enables Java programs to
execute SQL statements.
how do you test api in your project?
I have worked on API testing in my project and I used
POSTMAN for manually testing and REST ASSURED
java LIBRARY for automation.
I used JDBC and it is a Java-based data access technology
used for Java database connectivity. It provides classes and
interfaces to connect or communicate Java application with
database.
JDBC API is a Java API that can access any kind of data
stored in a Relational Database. It enables Java programs to
execute SQL statements.
How do you test API in your project?
Request Payload has
ENDPOINT (Specific URL where we send our requests to a certain web service. )
METHOD (Get•Post•Put•Patch•Delete)
HEADERS(Represents the metadata of request
or response. Like basically we can verify
the object type we are sending etc )
PARAMETERS(Parameters are to specifiying
even more about the request we are sending
like what specific resources needs to be returned etc.)
BODY(Body is where we sent or received the request we made)
For the repsonse
Basically 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)
How do you test API in your project?
Request Payload has
ENDPOINT (Specific URL where we send our requests to a certain web service. )
METHOD (Get•Post•Put•Patch•Delete)
HEADERS(Represents the metadata of request
or response. Like basically we can verify
the object type we are sending etc )
PARAMETERS(Parameters are to specifiying
even more about the request we are sending
like what specific resources needs to be returned etc.)
BODY(Body is where we sent or received the request we made)
For the repsonse
Basically 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)
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us