The Postman request:


Request configuration

a.- Headers

Standard headers, nothing to update here.


b.- Body

For this particular case, the file has to be loaded as binary into Postman body.

1.- Press "select file"

2.- look for your file and then select it.



c.- Pre-request script

Is not used for this request


d.- Tests script

The following script is executed after the request is sent, to evaluate the response and also to set up environment variables (if they are needed for following requests)

// following test will verify the expected response code for this request

pm.test("Status code is 200", function () {
    pm.response.to.have.status(200);
});

Expected response

e.- Body

We will get a 1 as success of the transaction


f.- Headers

Normal headers.


g.- Test results

This depends on the test we set up in the test script








  • No labels