Questions tagged [postman]

Postman is a client for sending and emulating requests over HTTP. It is most commonly used with API requests. Use for questions about the tool itself. Use with any relevant API tags if you are having issues with a specific use.

Started out as a simple testing tool, Postman is now an elegant, flexible tool used to build connected software via APIs - quickly, easily, and accurately. It is used by nearly five million developers and more than 100,000 companies worldwide.

Postman enables you to:

  • Create Collections of requests
  • Organize your work within different Workspaces
  • Split-stack development with Mock Servers
  • Use Tests & Scripts to add dynamic parameters
  • Automate tests with Collection Runner
  • Test performance & behavior with Monitors
  • Document & Publish Collections for collaboration
12313 questions
3
votes
1 answer

Calling Twitter API results in "Timestamp out of bounds" Error

I am calling Twitter for fetching user Timeline Details. Here is my code $curl = curl_init(); curl_setopt_array($curl, array( CURLOPT_URL => "https://api.twitter.com/1.1/statuses/user_timeline.json?screen_name=twitterapi", …
John Doe
  • 35
  • 4
3
votes
2 answers

How to setup a Jenkins pipeline for postman tests

Postman is used as a popular testing tool for API testing, you can write bunch of unit tests using Postman and execute them as a part of your build process to perform unit testing. The following covers the Jenkins integration of Postman tests. In…
Upul Doluweera
  • 2,146
  • 1
  • 23
  • 28
3
votes
1 answer

Why would Postman strip out the form post data?

I got this Postman: Obviously I've included the nickname field, but my Laravel app thinks otherwise. I clicked on the code link to get the curl version, and it returned this: curl -X POST \ http://192.168.1.143:8000/api/addresses/new \ -H…
abbood
  • 23,101
  • 16
  • 132
  • 246
3
votes
3 answers

Unable to import swagger JSON or YAML into Postman

Problem Unable to convert swagger 2.0 into a format which is being affected by Postman import functionality Generated via /swagger.json|yaml Swagger endpoint exposed via dropwizard jetty using swagger swagger-core: 1.5.17 swagger-jaxrs:…
RST
  • 592
  • 1
  • 10
  • 27
3
votes
1 answer

How to get JSONobject from JSONArray in postman

I am trying to automize a registration scenario in postman using test scripts I have the following JsonArray as a response: [ { "id": 1, "name": "user_A", "cntkp": "martin", "company": "kreativ", "tel":…
AKADO
  • 481
  • 1
  • 11
  • 19
3
votes
2 answers

Postman setNextRequest and workflow

I have a question about how best to chain requests to test multiple workflows in postman. I want to test the following two flows. Each of the boxes is a request set up in postman, but there are requests that are common to both workflows. How do I…
user3603308
  • 355
  • 4
  • 17
3
votes
3 answers

Create unique body request in postman for API-test

I want to create test request on postman with unique email property in the request body. { ... "email": "{{email_string}}.com", ... } I've set email_string with static string in enviroment, but is there any way that I can set…
Vala Khosravi
  • 2,352
  • 3
  • 22
  • 49
3
votes
1 answer

Variables and data files in Postman Collection Runner

I have an API get requests in Postman that uses a data file of voucher codes to look up other information about the code, such as the name of the product the code is for. When using collection runner the voucher codes are passed incorrectly and the…
3
votes
1 answer

REST API returns "bad array" instead of JSON object

I'm building REST API server in .NET core. I'm testing my code via Postman software. I have a problem with Include() method that enables me to attach navigation property data. I'm trying to get data in [HttpGet] action and objects that are being…
Dear Deer
  • 515
  • 1
  • 11
  • 29
3
votes
1 answer

Postman - Multiple actions were found that match the request in Web Api

I have this webapi2 controller: public class HomesController : ApiController and I have created a customized action like this: [Route("api/Homes/GetDetails")] [HttpGet] public IHttpActionResult GetDetails(string id) { var x = db.Homes.Where(b…
3
votes
1 answer

How to check whether one node in API response has same value under all object using postman tests?

Suppose a API request fetches a users id, email address and their designated role. Sample API Request below: GET: /v1/users HTTP/1.1 Content-Type: application/json Authorization: bearer {access_token} For the above request, the following is the…
Noor Yeaser Khan
  • 125
  • 1
  • 2
  • 18
3
votes
3 answers

Modify environment with tests while running Postman Newman in NodeJS

I'm running Newman in a Node Script. The collection has environment variables such as {{claimNum}} that would increment with each post by the test. Example: I have this collection request body 0001
Nicolás A.
  • 523
  • 4
  • 10
3
votes
1 answer

Poloniex API error using postman

Step1-Body Step2-Pre-req script to apply HMACSHA512. Step3-Headers for the POST Request. The hmacd in Step2 is applied to the request as header. I am facing a 403 Forbidden { "error": "Invalid API key/secret pair." } as above. Any suggestions to…
Sai
  • 598
  • 4
  • 14
3
votes
2 answers

Limit Characters returned in Header within Postman Environment

I'm working with an API set that requires a Session Key to be pulled down and used in the Authorization Header for subsequent calls to the service. The value to be added to the Header is X-CardConnect-SessionKey See below for example. The first…
3
votes
2 answers

Iteration through json with multiple API calls for other requests

I am using Postman to iterate through a json of about 40 pairs of items. I need to then take that array created and run an API call for each element in the array to return a set of results. Using the code here, i'm only able to pull the final…
user9129112
  • 61
  • 1
  • 7