Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [rest-api]

When Web services use REST architecture, they are called RESTful APIs (Application Programming Interfaces) or REST APIs.

0
votes
1answer
24 views

Deviation in JMeter

I am new to Web API development. I have created a small Web API, which returns a JSON output. The Web API is running on another PC in the same network. I have been connected to the API via GET ...
0
votes
0answers
20 views

Creating a Request Payload in RestSharp using XML

I'm currently looking at building a test framework in c# utilising Restsharp. The payload I'm trying to create is outlined below <Order> <BillingAddress> <AddressLine1></...
2
votes
2answers
104 views

What is the best approach to the REST APIs automation?

I have been working on REST API test automation in JAVA and have many approaches in my mind but not able to decide which one is better. Here are few approaches that I can think of- Very Simple and ...
4
votes
1answer
182 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’...
5
votes
5answers
106 views

Useful real-world APIs to test against

In order for me to firm up my understanding of API testing I'm looking at testing against some real-world API's. For understanding, I'm going to be writing my API tests in C#, ideally utilising ...
1
vote
1answer
82 views

Configuring OAuth2 with RestSharp

I'm looking to set up a test against the Vimeo API and have been using some of the RestSharp tests to set me up. However, since these test were written Vimeo now requirs OAuth2 rather than OAuth1. I'...
1
vote
2answers
35 views

Advice on assertions to make when creating an API testing framework

I'm currently looking at building an API test automation framework for a series of Rest Services, utilising c#. Coming from a UI-automation background I was after some advise on assertions when ...
0
votes
2answers
168 views

Deserializing JSON response using RestSharp

I'm looking for some general advice with an API framework I am setting up using C# and RestSharp as the client library. I've successfully set up an initial test, but I'm now looking at creating a ...
3
votes
1answer
49 views

Generating tests for REST API based on RAML

I'm trying to find a way to do automated regression testing on a REST API. My idea is to generate automated tests based on the RAML documentation of the API and this way I can also test the ...
0
votes
1answer
74 views

Testing NIFI: best practices

I do have new task related to test NIFI Apache. not sure where to start or how to. I have one thing in mind to test it as an API but the only response it sends is status code. I know also it has be ...
0
votes
1answer
62 views

API automation for a android App [closed]

I have to start API automation for a android App. App is coded in C++. Please suggest the approach as I am new to API testing.
1
vote
1answer
37 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. ...
3
votes
2answers
81 views

Postman vs writing tests programmatically using curl or related vs unit tests

I am new to Rest API testing and this questions might be asked already. We are building a Rest API for our react applications using Laravel Framework (PHP). We want to test it but we are confused ...
1
vote
1answer
19 views

What to target when testing an SDK interacting with a Web API?

I have started building an SDK in Golang that interacts with a REST API. Without testing the actual API for correctness and isolating the tests for the SDK, what should I be looking to assert within ...
0
votes
0answers
258 views

Rest Assured | Why getting repeated errors when trying to automate apis using rest assured?

I have just set up rest assured framework and implemented it as a maven project. My pom.xml has the below mentioned dependencies io.rest-assured rest-assured 3.0.2 test io....
1
vote
0answers
2k views

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

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 ...
0
votes
1answer
37 views

How to find method name and return types in API testing?

When creating a test for api testing how do I determine which method I should call(how to know method name) and and its return type(GET,POST,etc)? For example : Do I have to talk to developers and get ...
0
votes
1answer
335 views

What are the best ways to Automate JSON POST Request using Restassured API

What are the best ways to Automate JSON POST Request using Restassured API. My POST request is too big and all my endpoints requests are too bit. Appreciate your help on this. For Ex: { "...
0
votes
1answer
338 views

Can i use RESTAssured API for SOAP Web Service Automation

I know , i can use RESTAssureed API for REST web service automation. But, can i use REST Assured API to automate SOAP web services. or are there any other way to automate SOAP web service using Java
0
votes
0answers
23 views

which e2e test frame for multiple docker container app involving kafka, postgres, and rest api

I have an app which is setup by docker-compose. The app contains docker containers for kafka, postgres, rest api endpoints. One test case is to post data to endpoints. In the data, there is a field ...
2
votes
4answers
462 views

How to create automation framework for automation of REST APIs?

Currently, I am using JMeter to automate APIs but I have been asked to form a framework that is quicker and convenient to use for everyone in the team and a framework that preferably involves reading ...
2
votes
3answers
293 views

API testing single layer

I would like to start writing some API tests for one of our APIs, but we are seeing a lot of issues with stability of other APIs and I'm not really sure how to handle that problem. To clarify I have ...
0
votes
2answers
3k views

How to pass parameters in body of JSON request with GSON builder

JSON example: { "locale": "abc", "passengers": [ { "address1": "xx", "address2": "yy", "city": "London", "county": "Test", "dateOfBirthDay": "2", "dateOfBirthMonth": "1", "...
1
vote
1answer
1k 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
2answers
591 views

What is the best way to test API? [closed]

I am working as QA in a company. We create a client-server mobile application. Now I want to test our APIs via automation during my daily routine. What is the best way to test a RESTful API? Any ...
2
votes
2answers
68 views

How can I mock a c# restful webservice and test it using java?

I suppose this is more like two questions. Considering i wanted to do some automated testing of a restful web service that is written in c#. How can I using java and something like rest-assured test ...
0
votes
0answers
96 views

Input Iteration data's are not reading from the CSV for the request in the POSTMAN

I'm facing problem while reading the input data from the CSV for data-driven testing. My inputs are from the CSV file so I am passing the request parameters without values in the body while posting ...
0
votes
1answer
197 views

How to assign only(200 ) success response to next request in JMeter

here i'm facing one problem.in My JMeter script i am getting some response like this {"error":"404","error_description":"The underlying provider failed on Open."} {"error":"404","error_description":"...
1
vote
0answers
147 views

Testing scenario to test remote API through Proxy server [closed]

I'm working on Remote API testing. Now we decided to pass every request through proxy server to fetch the endpoints. I just wanted to know is their any special scenario that I need to focus. Thanks.
1
vote
0answers
61 views

Using `ava` test runner for functional testing

This question is to get a recommendation from the community, what framework/library they mostly use for testing their APIs (REST) in JavaScript. I stumbled upon https://github.com/avajs/ava, would ...
1
vote
1answer
819 views

How to Run Entire Test Plan continuously for multiple Times in JMeter(Not thread group ) [duplicate]

I created Test plan in JMeter with 2 Thread group. one Thread group consisting of 100(user) Number of thread and other consisting of 10(user) Number of thread. So i want run this entire Test plan ...
1
vote
1answer
426 views

How to store all and multiple response data using setProperty Function in jmeter

Here is the scenario : 20 users with one thread group and 6 driver with other thread group here interlink the thread group with beanshell Assertion with setproperty method so from 20 user is ...
3
votes
1answer
248 views

Testing idempotency - Is it enough to make two api calls to test idempotency?

Firstly, w3's (confusing) definition of idempotent http methods - https://www.w3.org/Protocols/rfc2616/rfc2616-sec9.html. My understanding of idempotent http methods is that when a request is made ...
2
votes
3answers
2k views

How to implement the cucumber data table for different JSON post using java?

I'm trying to post different json body , but same set of set of steps ie., request builder, header and assertion. Is it possible to implement cucumber data table for different set of json?
2
votes
1answer
85 views

How to Handle the odd and even number of user in Two Thread Group in jMeter

In JMeter i am using for load Test Uber like application so here in First thread group user login and and he will made one request for ride and in second thread group Drive Login he will accept the ...
0
votes
2answers
397 views

How to run one Http Request between execution time of other two Http Request in Jmeter

I am Using Jmeter for load testing so i am little bit struck so here is problem i want run continuously (Http-request-2) getDriverLocationId in between Trip started(Http request -1) and Trip complete(...
7
votes
3answers
752 views

API test automation: GUI tool vs programmatic approach?

We have a Rest API written in C# and I need to investigate a good approach to automate the tests. There are 2 ways to automate API tests: GUI tool (e.g. SoapUI) Programmatic approach, using some test ...
1
vote
0answers
99 views

Get error (Illegal query expression: must be surrounded with curly brackets) while trying to fetch details about test-set in QC ALM Rest api

I want to update the test results of Cucumber test scenarios to QC ALM using Rest API. I have individual test-set for all automation test scenario (There is a 1-1 mapping between automation test ...
4
votes
2answers
15k views

How to wait for an api request to return a response?

We use a proprietary framework based on the REST-assured library and TestNG to automate API testing for our REST web services. I saw some api testing code which uses Thread.sleep(n seconds) to wait ...
1
vote
3answers
1k views

How to test single sign on(SSO) application using a token

I have to two applications : A : is the parent application B : is the child application. When the user has to access B , he needs to sign in to A , which creates a token, and then the user can ...
1
vote
2answers
3k views

What are the good java Frameworks/Libraries for REST API Automation Testing? [duplicate]

My primary focus will be to make API Calls and to verify Status Code and Json response.If you know any library which makes this task easier please answer. As of now I am using Postman-Newman Apache ...
4
votes
1answer
836 views

Getting issue while sending nested JSON as request to validate the POST REST API method using Karate framework

Please note that I am trying to send the below request and validate the response on POST method using url `http:******* Note : I tried sending nested Json as an array like ****[0]='', voucherData[1]='...
5
votes
2answers
162 views

Unable to capture Rest API's in soapui with proxy

I am a SoapUI Beginner, using SOAPUI(version 5.3.0) open source for API testing. I want to fetch all Rest API with a proxy. But whenever I use HTTP Monitoring Tool in soapUI to fetch all the rest APIs ...
0
votes
1answer
175 views

Load test Java application with 3rd party web services

I have a Spring Boot application and need to perform load and stress tests in order toestimate the resources my production server will need and configure my auto scaling metrics. But the major part of ...
1
vote
0answers
865 views

JMeter REST API script not working over Https

I have a JMeter script, that actually have a "HTTP Sampler" for hitting a REST API. This Rest service is running on HTTPS that is currently using "Self-Signed Certificate", but when I run my script ...
0
votes
1answer
2k views

Best practices for rest-assured api automation testing

I am working in a rest-assured tool to automate API's. I am using java language. I did a sample API automation. I want to improve. So I want to know the best practice for rest-assured API automation. ...
1
vote
0answers
1k views

Rest API possible test cases [closed]

I'm working in rest api testing. Currently I test when request send and json response generate or not. I'm test with positive and negative values to put in parameters in the url. Now I need to test so ...
4
votes
2answers
822 views

BDD & Rest API automation

When I search for BDD and Rest API automation. I get lots of examples where some user scripts a human-readable user story which shows how to use his API. This user calls it BDD. But BDD based not ...
1
vote
1answer
105 views

Confusion of using rest api testing [closed]

I have done my selenium functional automation testing Now my company gave a task to do rest api testing .There were several tools are there like Jmeter, soap ui etc... and also we can add rest-assured ...
5
votes
1answer
2k views

Testing RESTful webservice with kerberos authentication

I've been testing a RESTful webservices for the last little while using SoapUI. It's worked great until this week where a requirement was added that the web service must use Kerberos authentication, ...