Test Overview
This test uploads a binary file using Postman to verify the API accepts and processes the file correctly. It checks the response status and confirms the file upload success message.
This test uploads a binary file using Postman to verify the API accepts and processes the file correctly. It checks the response status and confirms the file upload success message.
POST /upload HTTP/1.1
Host: example.com
Content-Type: application/octet-stream
<binary file content here>| Step | Action | System State | Assertion | Result |
|---|---|---|---|---|
| 1 | Test starts | Postman app is open with the upload request prepared | - | PASS |
| 2 | User selects binary file in the Body tab under 'binary' option | Binary file is loaded into the request body | - | PASS |
| 3 | User clicks 'Send' to submit the POST request | Request is sent to the server with binary file data | - | PASS |
| 4 | Postman receives response from server | Response status code and body are displayed | Verify response status code is 200 | PASS |
| 5 | Check response body for success message confirming file upload | Response body contains JSON with message 'File uploaded successfully' | Assert response JSON message equals 'File uploaded successfully' | PASS |