Questions tagged [postman]
Postman is the complete tool chain for API developers to make API development faster, easier, and better.
46
questions
0
votes
2answers
25 views
Reconfiguring and checking monitors in Postman
Postman offers the possiblity to create monitors (Launchpad -> View More -> Create a monitor). I know that it is possible to view the list of them from Postman workspace on the web, but is it ...
1
vote
2answers
28 views
Postman proxy does not save URLs of some resources
I asked this on https://community.postman.com/t/postman-proxy-does-not-save-urls-of-some-resources/19376, but no answers this far.
I’ve turned on Postman Proxy and configured Firefox (Tools -> ...
2
votes
2answers
108 views
API Testing on production - what requests shouldn't test?
I've manage to get new job and what I can say so far - expectations for me are high. I never used to test API on production - usually I've been teached to test API on dev/test enviroment, but in ...
0
votes
1answer
78 views
How to automate GraphQL tests with Postman
My company is moving from REST APIs to GraphQL. I'm trying to use Postman (which I'm new to) to automate some tests for the GraphQL stuff, and I'm running into issues. The manual side of Postman ...
0
votes
0answers
20 views
I have automated Soap request via Rest Assured code, but its written that Rest assured API can only be used for rest service [duplicate]
Here is my code
public class xmlreq extends TestBase {
@Test
public void buildRequest()
{
logger.info("starting");
RestAssured.baseURI="http://webservices.oorsprong.org/...
1
vote
0answers
846 views
Postman gives There was an error in evaluating the test script: JSONError: No data, empty input at 1:1 ^ error
I'm trying to create a postman script that sends an SMS message to a phone. When I send the message I get this error:
There was an error in evaluating the test script: JSONError: No data, empty input ...
-1
votes
1answer
32 views
How to fetch the list of newly created time entries alone using Postman? [closed]
From this json, I need to fetch created_at. How should I do it in Postman?
{
"meta": {
"total_logged": 127200,
"total_logged_per_team_member": [
...
3
votes
4answers
122 views
How to spoof a third party API
Our application does calls to a third party API for completing a few tasks.
This endpoint has an issue in the test environment, and management has asked us to mock this environment so when the app or ...
2
votes
3answers
416 views
Writing Integration Tests programmatically vs using Postman for REST APIs
I am developing REST APIs in my project and using .net core 3.1.
Various best practices suggest that we should write Unit Tests as well as Integration Tests for our project.
I agree with the point of ...
-1
votes
2answers
202 views
How do I verify a value from a CSV file using Postman test [duplicate]
I'm using Postman to push data from a CSV in my Google cloud bucket to an app. I need to write a test to verify that one of the values in the CSV is all in uppercase.
-2
votes
3answers
1k views
AssertionError: verify response body as a test in postman
This is the response from Postman:
{
"data": [
{
"firstname": "tahaq",
"lastname": "postmanq",
"accountenabled": "true",
"email": "tahaiq@...
1
vote
1answer
836 views
Passing global variables to Newman (Postman) from Jenkins
I have a Postman Collection with Global Variables that I am running via Jenkins (successfully), but I want to expose choices for the variables as Choice Parameters within Jenkins.
I asked an initial ...
-1
votes
1answer
2k views
Postman PUT returns success, but parameters are null in response body
I am trying to update employee details on following URI
http://dummy.restapiexample.com/api/v1/update/24
The request body is:
{
"employee_name": "DorisWan",
"employee_salary": "50000",
"...
1
vote
1answer
206 views
Exposing Postman Global variables as Jenkins Choice Parameters
I have a postman collection which I have managed to run from Jenkins using Newman.
I have a groovy pipeline in which I install the dependencies included in my package.json (Newman in this case). ...
0
votes
2answers
3k views
Printing Response body element in Test results in Postman
I need to print one specific Response element from the response body of an API in the Test results Section of postman.
-2
votes
1answer
66 views
Testcase Python Request: 405 Error despite not accepting the certificates
Details
Currently I have the problem that I cannot accept the certificate on our test page. We use Python requests for our test cases and unittest from Python directly. We have also excluded the ...
0
votes
1answer
48 views
Collection Variable is not being assigned
If Env-Variable drawingmanage equals false the value gets assigned successfully(else block) whereas if it is true the value doesn't assign(if block)
if(pm.variables.get("drawingmanage") == 'true'){
...
2
votes
6answers
103 views
API Management Tool Recommendation
I am looking for a tool for API testing and collaboration that offers the following:
Creating a workspace that can be shared with a limited number of people.
A good number of collections without ...
2
votes
1answer
1k views
How to send double quotes in postman csv data file
I have the following request body:
{
username:{{user}},
password:{{pass}}
}
The expected structure of the request is :
{
username:"something",
password:"something"
}
if the request body is ...
0
votes
2answers
89 views
Consume POST request data to GET and DEL requests
I get an id from a POST request and I want to use that id in the GET and DEL requests. I don't want to do it manually; if there is automated way that my read and delete requests consume my POST ...
4
votes
1answer
2k views
How to export single API request with body in Postman so it can be imported
Postman can export whole collections, and also single requests.
I'd like to export just one request, so I can send it as an example to somebody else who can import it in their Postman via (possible ...
3
votes
3answers
96 views
Testing REST - submitting a web-form. Identifying why the server responses with 500 for some emails and for some - 200
The troubled email is teststudent12@skyeng.ru, the URL is https://junior.skyeng.ru/online-uroki-po-matematike/ (form is placed almost at footer).
The website to test is in Russian. If you want to ...
1
vote
1answer
296 views
How to analyse newman htmlextra report?
Hi could someone explain the fields in Postman htmlextra report. I am not able to understand why testscripts fail shows '0' even though two assertions failed
I only have 15 pm.expect in my ...
1
vote
1answer
2k views
Decoding JWT and testing results in Postman
We are implementing a new service which requires Authorisation by the way of a JWT.
I already have the submission and returned body containing the "access_token"
My question is how do I set up a ...
0
votes
3answers
781 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 ...
1
vote
2answers
273 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
2k 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
1k 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
4k 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 ...
1
vote
1answer
45 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 ...
2
votes
2answers
23k 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
95 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
338 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
74 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
786 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
6k 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
590 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
1k 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
76 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.
...
2
votes
1answer
24k 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
4k 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 ...
2
votes
1answer
38 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
474 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
2k 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
7k 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
46 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 ...