Questions tagged [postman]

Postman is the complete tool chain for API developers to make API development faster, easier, and better.

Filter by
Sorted by
Tagged with
0
votes
3answers
50 views

Postman or any API tools for API cache testing

my application (Restful API, no UI interface at this moment) has the Cache Async in memory functionality at each GET, POST, PUT, DELETE. Does Postman or any API tools has the ability to test the cache ...
-2
votes
2answers
35 views

Validating GET req for type of data in response

{ "id": 5, "display_name": "3", "code_name": "policy", "description": "test", "authenticated": NULL }
0
votes
1answer
58 views

Postman API test structure

Recently I started writing tests for our API. However, I have faced some issues which I think it is critical to think at the start. How should I structure my tests in terms of setup and cleanup phase(...
1
vote
2answers
126 views

Schema Validation in Postman

I'm having trouble validating a schema in Postman using tv4 inside the tests tab - it is always returning a true test, no matter what I feed it. I am at a complete loss and could really use a hand - ...
0
votes
1answer
32 views

Compare the date from a API key value in Postman

I have a scenerio where I need to compare a date from an API response with today's date and check whether it is less than or equal. The API response will give me a JSON object and in that JSON the ...
0
votes
2answers
177 views

Print API response in “Test results” tab in Postman

I'm using Postman to automate an API using Newman. But the response body of the API call is not showing in the Postman "Test results" tab. var body = JSON.parse(responseBody); tests["Response ...
0
votes
0answers
121 views

Use tv4 to validate schema in postman

I am trying to validate a scheme using tv4 in Postman, but no matter what I do it always passes - even if I force bad data. I am unsure if I am doing something wrong or if there is an issue with tv4 - ...
1
vote
1answer
35 views

Error showing for url when try to run api test script with Newman

I'm beginner to REST API testing. I wrote some scripts for some scenarios using postman and tried to run with Newman. (In there URL defined as environment variable.) Showing errors for that URL when ...
0
votes
2answers
2k views

How to verify response body as a test in postman

I want to verify the response data as a test using Postman. For example, given the response below: { "data": { "id": 2, "first_name": "Janet", "last_name": "Weaver", "avatar":"...
1
vote
2answers
43 views

How to identify a specific location in returned Json through a postman test

When submitting an order to an API we get a Json response containing: "AMLResults": [ { "amlResult": [ { "addresses": [ { ...
1
vote
1answer
44 views

Postman - flags for different requests on different environments?

I have serviceA, serviceB, serviceC..., up to service L. I have a collection with requests for all those services. Is it possible to set somehow flags for postman runner for requests to be run on ...
1
vote
2answers
72 views

Web Service Testing Site

I practice web services testing but I don't have any web service testing site. Could anyone please suggest a good web service testing site? Please help. Thanks in advance.
0
votes
1answer
372 views

Multiple API requests from CSV file as parameters

Let's say that my domain is api.test.com, path is /v1/products and I have to do 1000 API requests with different products as parameters. Examples: GET api.com/v1/products/product1 GET api.com/v1/...
5
votes
1answer
4k views

Assistance with a DELETE request in Postman

I'm attempting to create some API tests to assist with getting familiar with API automation and I'm using the really helpful Restful-Booker API for this. The API documentation is also here. However I’...
2
votes
1answer
308 views

What are the pro's and con's of writing an API test automation framework at code level as opposed to using a tool

As I look into writing automation frameworks at the API layer(relatively new to this area), a question that keeps cropping up in my mind is.....why should I write an automation framework at code level ...
0
votes
1answer
824 views

Preview tab is empty for the request sent in Postman tool

Am new to POSTMAN tool and when I send a request am getting the response status as '200 ok'. But in Preview tab, the page is not displaying and its empty. How to view the response in preview tab?
1
vote
1answer
58 views

Should I test the created data after using Post Https Requests from Postman?

We are gonna use Postman to tests our API resources. When you create a Post HTTP request to your API, it returns success response and not sure if the data were created successfully and correctly. ...
1
vote
1answer
8k views

PostMan gives “JSONError: Unexpected token '<' at 1:1 <!DOCTYPE html> ^ ” when trying to extract data from response body [closed]

I am trying to chain API request on using POSTMAN. I am writing a script in the test section for extracting token from the response body and storing it in an environment variable. This is my code in ...
2
votes
1answer
921 views

Adding session tokens to HTTP request with Postman

Our teams use Postman to explorative testing of API. However, for protected endpoints we need to: Authenticate and retrieve session tokens: SESSION and XSRF (we have the endpoint returning both as ...
1
vote
1answer
31 views

How to Prevent Postman from sending a 'X-Deploy-Current' Header?

I am attempting to use Postman to call the REST API for an EAM tool using CURL, which I have no issue pulling what I need to using the Vendor's SDK. However, when using Postman, I was getting HTTP ...
0
votes
1answer
344 views

Need to feed the input data for particular API in the collection using POSTMAN

Currently, am using POSTMAN collection for API testing. In the collection, we have more than 10 API's request. we are passing the input from the CSV while passing the input, I need to apply for only ...
2
votes
5answers
1k views

API testing Using Postman

Can someone tell me the basic test cases for testing an API with Postman? Which test cases are commonly applied in API Testing. Note: I am a beginner and I don't know where to start.
1
vote
1answer
3k views

What is the simplest way to rewrite Postman requests to C#

I have made lots of made Requests in JSON in Postman. Now I am thinking about re-write all the Postman-tests into C#. There are many different Nuget packages that could be used. I have googled a ...
1
vote
0answers
35 views

The response XML is getting with some space after running collection runner in Postman [closed]

I'm using collection for the XML service in Postman, After the execution, I got the results successfully but when am seeing the test results the response body is coming with some extra space for each ...