Questions tagged [web-api-testing]

Web API testing is the functional testing of HTTP based services.

Testing can include verification of domain related behavior and/or compliance with HTTP specified application behavior as described in RFC 7231.

787 questions
0
votes
1 answer

How to access the all key value?

All "long_name" value for all index of "address_Components" is not display. When using the path: path("results[0].address_components[].long_name") then test case is failed. I want to display all "long_name" value given in response. Please suggest…
0
votes
1 answer

Verifying JSON schema for uri and string together?

I am verifying below JSON schema for two separate JSON response which are same but only one difference is one returns 'system' as a string in format of uri and other returns plain string which cause failing of my second test case because for the…
Zorro
  • 57
  • 1
  • 8
0
votes
1 answer

Why does HTTPBuilder throw "HttpResponseException: Bad Request"?

Http-builder: 0.7.1 | Language: Groovy | Framework: Spock Testing Code import groovyx.net.http.HTTPBuilder import spock.lang.Specification /** * Created by Long Nguyen on 4/11/2017. * * Chatwork api documentation:…
Long Nguyen
  • 9,898
  • 5
  • 53
  • 52
0
votes
2 answers

Response assertion for json response in jmeter for webservice

As i am new to webservice in jmeter ,I am not understand how to move ahead in this, I have a json response like below,How can i put assertion for the below... { "flightDetails": [ { "outBoundFlights": [ { "flightInfo":…
ash
  • 59
  • 1
  • 6
0
votes
1 answer

RestAssured logging in via JSON

I want to use the RestAssured framework to test my Java Spring API. The way the API works is that you have to login using a POST to /session/login with a username and a password in JSON format, for…
Gamer1120
  • 236
  • 1
  • 8
0
votes
1 answer

how to get google oAuth token without user login and consent

is there any way to get google OAuth token without user login and give consent in the google account. I have my app client id and secret key and other info and have it working using google OAuth offline refresh token procedure, but for that user…
vkt
  • 1,401
  • 2
  • 20
  • 46
0
votes
1 answer

Cannot get api hostname via System property in Java

Recently got the code to write bdd tests with cucumber on Java. There is already maven project with couple of tests and test framework. I need to continue writing bdd tests using this framework. I am writing API tests and try to run them and i get…
Paulus
  • 138
  • 1
  • 11
0
votes
1 answer

Automating API's

Automating API's: How to automate API testing without using any third party tools? IDE's required? Choice is Eclipse. Java - Choice of programming language. Suggest Integration required if any? Suggestions on Framework approach/Methodology…
Bharadwaj Pendyala
  • 324
  • 1
  • 3
  • 16
0
votes
1 answer

How to save "respose data" from JDBC Request to csv file

I am using CSV data config as input file in that I have HTTP request parameters stored. After hitting HTTP Request I am using JDBC request to retrieve the result from the database for same http request. How can I store the Response data getting from…
Madhu
  • 367
  • 2
  • 7
  • 20
0
votes
1 answer

How to make API HTML report with the help of command prompt other then newman?

How to make API HTML report with the help of command prompt other then newman ? Hi, I have already try to make API HTML report with the help of newman but In that I won't be able to get Falied call report properly. So,Can any one help me how i can…
Amit Pal
  • 177
  • 3
  • 11
0
votes
0 answers

Are Runscope Scheduled Tests running sequentially or Parallel?

Here is my situation . We are testing our API with runscope . the main steps are follows . Create an Order by User Driver Take the Order User Cancel the order taken by driver This process takes around 3 minutes to complete , i want to run a…
Kanishka Panamaldeniya
  • 17,302
  • 31
  • 123
  • 193
0
votes
1 answer

Getting 'NoClassDefFoundError' (com/../JsonSchemaFactory) when trying to validate schema in Rest-Assured tool

We are trying to validate a JSON response to see if it matches a schema placed in the Eclipse ClassPath. This is designed to be a Maven project and I believe we have all the dependencies in place. But we are always getting the following…
0
votes
1 answer

TestNG for functional testing an API

I am tasked to write functional tests for an API and I am looking to use TestNG for it, is there a way I could orchestrate a bunch of API calls into one @Test - an example is POST on a resource, GET on the same resource based on the response from…
g0c00l.g33k
  • 2,458
  • 2
  • 31
  • 41
0
votes
4 answers

Django rest framework: unit testing database issue

I am doing unit testing of the rest Apis. I am using django rest framework. Apis are saving data into and getting data from the database. Both of the operations are not working or if it is working i am not able to see that in the databases. Apis are…
0
votes
1 answer

How to append extra information based on mocha + jenkins framework?

Background I am using mocha.js to perform api automation while using jenkins to implement continuous integration. I am facing some issues while trying to logging some extra information for failed tests. My code Following are my basic code for single…
J.Lyu
  • 932
  • 7
  • 16