In this tutorial, we will log a sample defect report that we might encounter during REST API testing. The bug tracker tool used is MantisBT.
Sample Defect Report: Rest API Testing
A sample defect report provided below by invoking an API call that responds with an error.
User REST API call /createUser fails with 500 Internal server error
Detailed reproduction steps for the developers to reproduce the issue on the dev environment.
- Deploy User API war/ear application on the QA server.
- Start the Application server.
- Invoke the /createUser REST API call with sample data using the Rest client.
- Examine the Rest API Response.
201 Created HTTP Response.
<Expected result is that the user should be created in the system by the API call. >
500 Internal Server Error.
<Actual Result A server error trace is displayed.>
Defect Priority: P1
<Defect priority P1. The defect is a show stopper bug. The defect blocks testing of other API calls.
User is not created and other Restful API calls testing need a user authorization token.>
API version: 2019.4.1
Rest client used like Postman tool version, User-Agent, etc.
Servers Logs/ Exception Traces
We can provide the exact 500 exception trace. This information can be collected from the application server logs.
Story Point Estimate:
Measurement of complexity and/or size of a requirement. This is applicable in Agile/Scrum projects.
Bug report logged using Mantis Bug Tracker tool.
Steps to create a bug report in MantisBT:
Mantis Bug Tracker Tutorial: