Questions tagged [rest]
Representational State Transfer (REST) is a software architecture style for building scalable web services.
36
questions
0
votes
0
answers
11
views
Not able to capture/Extract id generated in response in Post method
I am facing this issue - capture/print the id generated in response
last 2 line are the issue, the moment i take out last 2 line,test get passed
public void emp()
{
RestAssured.baseURI= "...
-1
votes
1
answer
26
views
I am manually putting ID generated via POST method in PUT,GET method, How to Auomate it
ISSUE- Using post method, ID get generated in response(id=ff80818188956aa6018899e27b76038b), now I don't want to put this id generated in PUT,DELETE,GET, manually(as I am doing below)
Can you please ...
1
vote
2
answers
273
views
How to avoid API tests duplicating Unit tests
How to deal with the overlap between unit tests for API endpoints (presumably written by the developers) and automated API tests (written by testers)?
The authorship of the tests is of secondary ...
-1
votes
1
answer
6k
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",
"...
3
votes
3
answers
105
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 [email protected], 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 ...
2
votes
1
answer
5k
views
soapUI - REST API, parameters as variables in request body are empty (*previously posted as guest by accident)
[I am re-posting this; I posted it as "guest" inadvertently.]
soapUI 5.5.0, community edition.
Created REST requests with parameters (style = plain). Wanted to use them in request body as variables, ...
0
votes
1
answer
246
views
soapUI - REST API, parameters as variables in request body are empty [duplicate]
soapUI 5.5.0, community edition.
Created REST requests with parameters (style = plain).
Wanted to use them in request body as variables, but that did not work.
Tried "${#firstName}" and "{firstName}"
...
11
votes
1
answer
776
views
How to approach API testing?
This is one of the most common needs today and consequently 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
1
answer
258
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 ...
1
vote
4
answers
5k
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
1
answer
1k
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
2
answers
1k
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
2
answers
43
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
3
answers
254
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
2
answers
7k
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
1
answer
76
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
3
answers
427
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
0
answers
148
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
0
answers
1k
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 ...
9
votes
5
answers
11k
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
8
answers
5k
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
1
answer
2k
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
1
answer
1k
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
1
answer
776
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
1
answer
1k
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
6
answers
557
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
1
answer
683
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
2
answers
303
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
6
answers
29k
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
3
answers
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
5
answers
4k
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
6
answers
22k
views
How can I test Web service without any automation tool and only using manual
I am a manual tester and my responsibility is the web, mobile application testing in which I need to test a web service but I have not used any automation tools yet.
Please suggest me a manual way to ...
6
votes
2
answers
10k
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
13
answers
6k
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
1
answer
7k
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
1
answer
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 ...