Questions tagged [rest]

Representational State Transfer (REST) is a software architecture style for building scalable web services.

Filter by
Sorted by
Tagged with
5
votes
1answer
271 views

How to approach API testing?

This is one of the most common needs today and subsequently a common interview question. This question is intended to be a canonical answer to the general question of "How do I test an API". Other ...
0
votes
1answer
83 views

Is it a good practice to compare responses with benchmark responses in API Test Automation?

Is it is good practice while writing automated tests for APIs to compare the complete response of the requests with a benchmark response instead of writing specific tests to verify the required values ...
0
votes
4answers
402 views

How to create generic Java code to make REST API calls?

I have some automated RESTful API tests in Java. They use a proprietary Java library (restLibOne) to make API calls. The proprietary library is similar in concept to REST Assured, but vastly different ...
0
votes
1answer
288 views

Rest assured API to get a element from Json response

I'm using restassured.path.json.JsonPath extractor From the below response I would like to extract the customerProductIdentifier where highLevelProduct is HSI, { "recordsChoice": [ { ...
1
vote
1answer
247 views

SoapUI/ReadyAPI: How to best compare two data sources

I am currently setting up some REST API tests. I have a test case that has the following Steps: Data Source - Get all Auth credentials in database REST Request - Auth POST getting auth token ...
1
vote
2answers
30 views

Should I obtain data required for particular test case using appropriate endpoint or read it directly from the DB?

I am implementing automated tests of the system that consists of many microservices. To verify appropriate behaviour of the endpoints using POST and PUT methods, I need to obtain some data (for ...
0
votes
3answers
89 views

Testing multiple API contracts as part of 1 test

I have a situation whereby, say, I have one API which creates an employee(POST); one which then returns the employee(GET) and one which deletes the employee(DELETE). I've been using RestSharp/C# to ...
0
votes
2answers
1k 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 ...
1
vote
1answer
65 views

What type of tests would you run on this http GET request?

I'm writing up some postman tests for a REST API: api/controller/getPerson?person=personID I'm curious as to what types of things would come in your head for testing this? the call itself requires ...
2
votes
3answers
250 views

How to verify the body context using Assert command [closed]

I want to pass my test.When I run my test it gets fail because expected and actual is not matching. How to do with assert command? When I copy the actual value it shows like an error: {"level":"...
1
vote
0answers
129 views

Jira Test Center plugin with similar functionality to the Jama Test Center

I am working on a new project for which requirements are being managed in Jira. My previous experience is using Jama to manage requirements, test cases and finally test cycles and test runs. I really ...
1
vote
0answers
938 views

Generate personalised Report with Ant for jmeter script

I have a testing jmeter script that runs a single request for a REST service I had run ant run generate-report the report is successfully generated but it seems quite no descriptive I need the ...
7
votes
7answers
9k views

How to test the REST API's effectively ( Complete )?

I want to know apart form verifying status codes ( 200, 400, 500 ) and json what else we can verify to make sure API's work as intended ? PS : I have little Idea about Schema validation as well. If ...
3
votes
8answers
4k views

Tools for mobile web services, rest api testing

I am looking for some tools for testing the background rest API and web services for mobile application based on android as well as iPhone.
3
votes
1answer
1k views

SoapUI: Refresh/update test step's payload or request headers from REST resource's request definition?

When I update a resource's path, or add query/matrix parameters to a resource, these changes get "pushed" down into the test steps that rely on (i.e. are associated with) that resource. I'm wondering ...
2
votes
1answer
910 views

How to organise multiple SoapUI test scenarios to the same REST endpoint?

Let's say I have a REST service that allows you to search for rail journeys - and that once you have selected them, you can book them. The endpoint is example.com/service/v1/book, and to create the ...
1
vote
1answer
722 views

How do I change/toggle the path in all my SoapUI tests?

We have two different environments and for those environments the endpoint and the path changes, e.g. http://env-qa.domain.com/path1/serviceName http://env-uat.domain.com/path2/serviceName I know ...
2
votes
1answer
675 views

Change media type of SOAPUI response

I am sending a request with a custom accept header of application/content.bundle.v1+zip The REST service promptly responds; HTTP/1.1 200 OK content-type: application/content.bundle.v1+zip connection:...
3
votes
6answers
490 views

Which tool to use for testing REST API? [duplicate]

All REST API's that I've built have always had a good series of unit tests to verify that they are working as expected. One downside to this approach is that the testing almost always happens on ...
1
vote
1answer
669 views

REST Testing for CSRF Enable Website

I want to perform rest testing, like strong text rest client but issue here is website which I am performing testing sets CSRF token in browser in such situation rest client gives 403 error, is there ...
4
votes
2answers
269 views

Testing a REST API client

There many tools for testing REST APIs by mimicking a client, but I need the other side- test my client. I wrote a simple server using Flask, but I was hoping for something that includes builtin ...
6
votes
6answers
27k views

Suggest me the best way to automate REST web services with JSON using Java

I was testing web services manually using Postman or REST client. I want to automate testing here. I use REST with JSON format. Questions: How to use target URL ? How to pass header values? How to ...
3
votes
3answers
4k views

Automating Restful API — Tools?

I've been automating tests for our restful api's using retrofit and testNG. Basically, I create a POJO-Model... send the request in retrofit and do the assertions on the model. Example: public ...
5
votes
6answers
3k views

I am about to automate the Web API testing, how to initiate

There is a web API (RESTful) which is used by our mobile applications. Untill now we were manually testing it through mobile devices. Now, as per our client requirement, we need to automate the ...
7
votes
6answers
16k views

How can I test Web service without any automation tool and only using manual

I am manual tester and my responsibility is web, mobile application testing in which I need to test a web service but I have not using any automation tools yet. Please suggest me a manual way for to ...
4
votes
2answers
9k views

Testing a Python REST API

We want to add formal testing an quality assurance to our application API. It is written in Python using Flask with Restless and outputs JSON. My question is what is the best way to test our API? It ...
6
votes
13answers
5k views

Tools for REST webservice testing

I was using SOAPUI to test SOAP web services.But now i have to Test Rest Services. I understand that SOAPUI can be used to test REST services too. But can SOAPUI be considered as Standard Testing ...
2
votes
1answer
6k views

Getting started with Rest-Assured for REST-Api Testing

I am new to REST-Api testing. i am getting started with Rest-Assured for Rest-Api testing. i am having an issue in my first ever testcase. The code is as follows: @Test public void testGetSingleUser(...
2
votes
1answer
4k views

QC via REST API

I'm trying to update defects in quality centre using their REST API from a curl-based script. So far, I've managed to authenticate, store the cookie, and retrieve a defect's data from QC. My ...