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

API call not working from Azure

I have an test API (get method) which I have deployed on production with test data. This API if I call from anywhere directly from Browser , it works perfectly. I created a web application, just a submit click button, to call that API. I deployed…
Ashay
  • 1
  • 1
0
votes
4 answers

How to load test on an API level?

I like to simulate test-clients on an API level (so I like to skip the UI) that act as if e.g. 1000 clients execute tasks at the same time to see how the server stands. So basically I am looking for a tool which helps me to define / scripts to run…
Michael Hoeller
  • 22,018
  • 10
  • 39
  • 66
0
votes
1 answer

PHPUnit Post Method sending null as parameters

I wanted to test an Api function, but Post method is sending null as arguements. Here is my code public function testPOST() { require 'vendor/autoload.php'; // create our http client (Guzzle) $client = new \GuzzleHttp\Client(); …
0
votes
0 answers

python get request with params with no names

how properly to make a get request with no params names? the api request must be like: url + '/smth/val1/val2' usually do like so payload = {p1:val1, p2:val2} response = requests.get(url + '/smth', params=payload) however, in that case I wrote…
Leo
  • 1,787
  • 5
  • 21
  • 43
0
votes
1 answer

Decorate two functions?

Is it possible to make such test cases shorter by using decorator or whatever else? def test_login_invalid_pwd(self): password = '12345' response = self._login(pwd=password) self.assertEqual(status_code, 200) …
Leo
  • 1,787
  • 5
  • 21
  • 43
0
votes
1 answer

Using the best practice in API test setup - DB communication needed (TDD)

I am going to write a new endpoint to unlock the domain object, something like: ../domainObject/{id}/unlock As I apply TDD, I have started to write an API test first. When the test fails, I am going to start writing Integration and Unit tests and…
skynyrd
  • 942
  • 4
  • 14
  • 34
0
votes
2 answers

Request is not executed during mocha integration test

Before exchanging an API, I want to secure the client (which uses the API) with integration tests to make sure that the new API delivers the same results as the old one and the client still works as expected. Therefor I have written several…
0
votes
1 answer

Python testing .jws endpoint

I have a soapui project that uses a jws endpoint. I want to try to automate and run the api testing outside of soapui. Is there a python module that can test jws endpoint?
0
votes
1 answer

Extracting JSON content from CDATA in SOAP Response

I am working on SoapUI where I have a Soap request which takes input in Json String format and after the processing I get a Soap Response in XML with JSON format enclosed in CDATA. I am trying to extract the data from Soap Response using the below…
SDhwaj
  • 1
  • 1
  • 4
0
votes
1 answer

Can we define generators inside a test body in pyrestest framework

I am trying to define generators inside a test body instead of config section. Those who are familiar with pyresttest framework, generators are a way to dynamically define variables for your test Documentation --- - config: - testset: "Benchmark…
python
  • 4,403
  • 13
  • 56
  • 103
0
votes
1 answer

Need Standalone app to test REST API as Browser plugin installation is restricted

Browser plugins like REST client or Postman is blocked in my organisation.Is there a standalone application which is an alternative for testing REST API?
JavaBee
  • 11
  • 1
0
votes
1 answer

RESTful call testing in Eclipse

In my case, I am running a eclipse project providing the Restful api, and I will call that api like in the following example. I am curious if I should create another project in the eclipse to run the following code to test the api. Jersey…
OPfan
  • 1,625
  • 2
  • 13
  • 18
0
votes
1 answer

Authenticated API request in Jmeter

I am performing API testing using Jmeter, we have a API request which require authentication. When I make a call http://localhost:3001/city/latitude/longitude (GET method) it returns User is not authorized. And to get authorization you require to…
0
votes
1 answer

duplicate records received through API(rest)

I am Tester and i have api to test with rest request,we have validation for api request with duplicate records is not allowed with email id,but some times application accept duplicate records,what is possible reason??
0
votes
1 answer

SocketTimeoutException in SOAPUI but works fine in RestClient

I facing an issue while testing Web Services. Using RestClient tested the Web Service and it is working fine. But when I tried to use SOAPUI 5.1.3 , the same web service is not working i.e it throwing "java.net.SocketTimeoutException: Read timed…
Prabhakar Y
  • 87
  • 2
  • 3
  • 19