Questions tagged [rest-api]

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

Filter by
Sorted by
Tagged with
-2
votes
1answer
18 views

How to provide File and some para. to POST API using Python/ C#?

Team, I am trying to provide File and some para. as a input for API. Expecting output based on validation. Even after providing both inputs correctly, I am getting File as null with length 0. Below ...
1
vote
0answers
10 views

Header isnt being sent when using faraday gem ruby

I am doing an Api automation in Ruby and I am using the Gem Faraday to automate a file upload in my API. I have the follow problem: My Header is not being sent. I just tried all the options and is ...
0
votes
3answers
54 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 ...
0
votes
0answers
34 views

TestNGClassFinder Warning: Can't link and determine methods of class examples.ExamplesTest

Just started with Karate API test sample project and encountered with this issue. My pom.xml <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-...
0
votes
2answers
27 views

Jmeter 1 Thread Group and Multiple HttpRequest

I have the following Jmeter configuration where I have 1 Thread Group with Number of Threads 1 and under this 4 HttpRequest I have defined. The loop count is forever. My question is how will my ...
0
votes
1answer
23 views

How to perform page load for page with API in it?

I have tried RESTAPI testing for few projects, but I have a task now to perform concurrency testing/ load test of a page. When I inspect the page load in chrome >> Network tab, it shows one Index ...
0
votes
2answers
57 views

API/REST API Performance Testing within a Gateway Staging Environment. At what point which performance test procedure should be used correctly?

In my current project, there is planning regarding a load and performance test within a staging environment and Jenkins pipeline based. The question I'm only asking myself when and where to start in ...
-1
votes
1answer
55 views

Cucumber with and without Rest - Assured. What are the advantages?

Currently my team uses Cucumber as a testing framework. We need to start testing REST web services. I understood that REST-Assured is one of the leading tools for that. Can these tools be used in ...
1
vote
2answers
722 views

Rest Assured Vs. Apache HttpClient performance

I am checking Rest Assured now, and want to understand its performance. So, I created 2 unit tests: public static final String C_URL = "http://ergast.com/api/f1/2017/circuits.json"; @Test public ...
0
votes
1answer
82 views

Testing REST api with postman

I am very new to this, so I am approaching it like I would test a sign up form for instance. I have a Rest interface exposed for testing operations: Getting all users, getting users by id, searching ...
0
votes
1answer
84 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 ...
7
votes
1answer
176 views

Do testers perform usability tests of API?

Many teams do not deliver GUI but a library or a service that is used by other developers. For instance: A company provides REST APIs and client libraries for their customers to use their services ...
0
votes
2answers
2k 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":"...
2
votes
2answers
96 views

Starting points for REST API Automation

I am new to REST API Automation. As an Automation Engineer, should I expect to get the below mentioned things as a starting point which can help me write the automation code or is it my ...
-1
votes
1answer
97 views

Test strategy/plan creation

I have to create a test plan for my project and present it to the stakeholders. The Test plan should comprise of : Testing types Test Environment Test Data Project components : Thick client ...
2
votes
4answers
114 views

Diff between Integration(written by dev) and End to End testing(written by qa)

Recently, I was in conversation with a developer, developing an API. We had a conversation appertaining to testing of that API, while I told him we will test the end to end flows of API using ...
0
votes
1answer
135 views

How to add test cases to TFS via REST API

I'm implementing a library to export/synchronize test cases into TFS automaticaly during test run. One of my requirements is that I need to use NodeJS, so I decided to use TFS REST API. In my code I'm ...
0
votes
1answer
45 views

Session is outdated or not initialized while sending Request

When I send POST request to the server for SignUp I receive an error that session is outdated or not initialized. How could it be solved? // create request @BeforeClass private void ...
1
vote
1answer
252 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
1answer
106 views

NullPointerException in RequestSpecification

Getting Null pointer exception whenever running, unable to resolve. Below is my code public static RequestSpecification setFormParam(String formParam, RequestSpecification reqSpec) { ...
1
vote
1answer
277 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 ...
2
votes
4answers
336 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 ...
5
votes
1answer
4k 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
129 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
685 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'...
2
votes
2answers
139 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
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 ...
3
votes
1answer
235 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
326 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
90 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
60 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
411 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
553 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
1answer
8k 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 ...
0
votes
1answer
43 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
548 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
1k 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
3
votes
4answers
2k 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
317 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
6k 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
3k 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 ...
2
votes
2answers
1k 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
97 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
1answer
807 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
221 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
93 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
2k 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
1k 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
635 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 ...