UCLan CO3409 Distributed Enterprise Apps: REST API Testing Report

Verified

Added on  2023/06/14

|6
|608
|307
Project
AI Summary
This assignment solution describes the process of testing a RESTful API using Postman, a powerful tool for API development and testing. It emphasizes the importance of testing in identifying and resolving errors within the code. The solution highlights common problems encountered during API testing, such as incorrect HTTP status codes, unverified response payloads, and incorrect application states, and explains how to address them. The document also explains how Postman helps in organizing API information, integrating with systems, and implementing logic. It provides practical examples related to fetching student and book details, showcasing Postman's utility in resolving code issues and ensuring the API functions as intended. The overall aim is to demonstrate how thorough API testing contributes to software quality and performance. Desklib offers a wide range of past papers and solved assignments to aid students in their studies.
Document Page
tabler-icon-diamond-filled.svg

Paraphrase This Document

Need a fresh take? Get an instant paraphrase of this document with our AI Paraphraser
Document Page
Testing description refereeing to postman script:
Testing is the effective approach which is implement by the developer, in which the every
paradigm of the code is tested, so that if any error found it can be solved immediately. In this
specific test cases are tested on the running code in order to lay out the certain functionalities
with the code. Thus for testing this given API postman application is used because of its
flexibility and efficiency (Tran, 2020). Postman script refer as powerful runtime platform which
is based on the node.js, which enables the user to add the dynamic features in HTTP request. For
testing in postman user require to install this application and proceed to click on new tab option,
and adds the URL link in Enter request URL option and then click on the send button, it will
show the running of API. As for running the API in postman certain problems have been
identified which are as follows:
Incorrect HTTP status:
If the status code is understood by the server then it accept the request and provides the
desire output, but if the HTTP status is inaccurate then it shows the entity incorrect status and
also do not support the media type. Thus it is important to input the right HTTP request in order
to run the code.
Not verified response payload
If there is no validity in JSON Body such as accuracy in names, identifiers, types gives
the incorrect result or mainly shows the error. Thus it is important to verify the response payload
in order to run the API.
Incorrect application state
Verification of the application is optional but it is generally use by the develop for the
manual testing, if it is not done in a manner then other user interface cannot be inspected.
As for the work which is done properly is there is no bug or error found in the code,
which means that code runs successfully. Thus it is important to test the API in order to remove
all bugs which can cause problem at the developer as well as for client side. With the help of
postman tool Information present in the API is stored in a organised manner so that it can be
used further (Wisittipanich and et.al 2021). It also helps in integrating with the system, so that if
request made then it rapidly provides the output. This application also helps in providing the
logic implementation, as for the following API, if the user want to fetch the details of the
Student, books then they can easily runs the URL into Postman in order to get the result.
Document Page
Postman helps in resolving the issue if it is found in the code, if the code is not running then user
can proceed to rewrite the code for removing any error. Thus this application is helpful and
encapsulated with every tool that are required by the developer to run the source code. If the
testing is done in manner it will remove all the errors from the software and it will perform
desired output.
3
Document Page
tabler-icon-diamond-filled.svg

Paraphrase This Document

Need a fresh take? Get an instant paraphrase of this document with our AI Paraphraser
Document Page
REFERENCES
Books and journals
Tran, T.T., 2020. Migrating from Monolithic Application to Microservices.
5
Document Page
Wisittipanich, W. and et.al 2021. Performance Comparison between Particle Swarm
Optimization and Differential Evolution Algorithms for Postman Delivery Routing
Problem. Applied Sciences. 11(6). p.2703.
chevron_up_icon
1 out of 6
circle_padding
hide_on_mobile
zoom_out_icon
[object Object]