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
-1
votes
1 answer

Posting array object in JSON body

I am using Rest Assured for API testing, how do I send array objects in a POST? For a plain string I know I can do something like this JSONObject json = new JSONObject(); json.put("firstname", "John")); json.put("lastname",…
ken4ward
  • 2,246
  • 5
  • 49
  • 89
-1
votes
1 answer

How to Write test case for Rest Services with out using Server?

I am using TestNG to write test cases. I want to write a test case for my Rest API, and my server is not up. It means no one is giving me a response. I have URL which I can hit. I know the response also what should come as a response when I hit the…
Sharvil
  • 247
  • 1
  • 6
  • 15
-1
votes
2 answers

Postman - Web service - IIS 7.5 Detailed Error - 404.0 - Not Found

Im running a C# workflow application. I've added an aspx page UserUpdate.aspx Also added a web api controller SynchronisePersonnelXmlFromAwsServiceController.cs Using postman on a POST call if I enter…
John
  • 3,965
  • 21
  • 77
  • 163
-1
votes
1 answer

How can is store the value of an element in a API response from one scenario and use the variable in the other scenarios in the same feature file?

Consider I am having three scenarios in my feature file. I want an authorization token that I get from an API response in the first scenario to be used in the other scenarios. I declare the variable in "Background:" section. How to use the variable…
Vimal Raj
  • 109
  • 2
  • 8
-1
votes
1 answer

Getting "org.glassfish.jersey.message.internal.HeaderValueException" error for a "post" method on an API

The exception I am getting is org.glassfish.jersey.message.internal.HeaderValueException: Too many "Content-Type" header values: "[application/json, application/json]" I was passing a request with content type = 'application/x-www-form-urlencoded'…
Vimal Raj
  • 109
  • 2
  • 8
-1
votes
1 answer

How to validate SOAP service XML file with given XML using Karate

I'm learning Karate API for executing our SOAP-based web services. For that, I have created two XML files in which, one is, request information and another one is response data. And then I have created one more file is called webservice.feature…
Karunagara
  • 389
  • 1
  • 8
  • 30
-1
votes
1 answer

How to add timestamp to filename in UFT when using writetofile property

I trying to generate files with time stamp when I'm running test with multiple inputs(parameterisation). Please suggest me how to add timestamp to filename ex: C:\xxx\xxxx\xxx\Responses\xxx.xlsx to this path I need to append timestamp to make file…
sarath
  • 1
  • 1
-1
votes
1 answer

Is there a way to integrate API testing into GitHub?

I am aware that there are many API testers available but I was curious if you could integrate them right into your GitHub. I would like it to run automatically whenever a merge would occur rather than having to run an API tester manually.
JoshKopen
  • 940
  • 1
  • 8
  • 22
-1
votes
1 answer

How to Start programming for API testing with POSTMAN

Currently i have started to work with API testing with postman. But also i don't know java script and i don't know where to start with java script for Postman programming.I'd be cool if someone gave me hand
nandha
  • 51
  • 6
-1
votes
2 answers

Postman: How to verify the data type of the field without verifying its value?

For example, API response is: "Test": { "Test1": 390, "Test2": "391" } I just want check that the Test1 returning integer value and Test2 is returning string value without verifying the actual value (ex: 390) returned by the field.
Tester77
  • 309
  • 1
  • 4
  • 10
-1
votes
2 answers

How to get specific value from Json response using SOUPUI

I am very new to SOUPUI, I am able to read the response for restapi and able to save to file, I struked at this place i want to store a value from the response. Please help. My questions : How can I store a random employeeId from the following…
Shankar Daitha
  • 243
  • 5
  • 18
-1
votes
2 answers

How to Automate web api testing using Selenium

I want to automate web api testing, but I am a beginner to automation. I have list of REST API's which I want to automate. Can someone please suggest from where should I start? Can I use Selenium to automate?
Saket
  • 11
  • 1
  • 1
-1
votes
1 answer

Use property transfer in the API request of another test step

I am using soapUI open source version to test an API. am using a token to access the test step. I need to send the token with the API request.I have transferred the token value to the test step using property transfer but the transferred value is…
Vittal
  • 79
  • 1
  • 4
  • 10
-2
votes
0 answers

karate-config.js not indentifying karate keyword

I am creating a karate automation framework and have a karate-config.js file in the framework. When I try to declare anything using var or try to use the karate keyword it is showing me warnings: 'var' is used instead of 'let' or 'const' unresolved…
-2
votes
2 answers

Cypress: Is there any way we can substitute fixture fields with data generated in test case in order to generate dynamic payload

I am a newbie in Cypress. I want to know if there is any way to generate a dynamic payload by substituting values of JSON file with the values generated programmatically in cypress test. Something we do in Rest assured by substituting %s of JSON…
nikhil udgirkar
  • 367
  • 1
  • 7
  • 23
1 2 3
52
53