Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options answers only not deleted user 8992

API testing is a type of software testing that involves testing APIs directly and as part of integration testing to determine if they meet expectations for functionality, reliability, performance, and security.

0 votes

API call returns 400 bad request even when the request is correct?

Work with the maintainer of the API and explain the issues and ask them to adjust the code on their end so that the error generates a 404 return code ('resource not found', applies to any entity for w …
Michael Durrant's user avatar
0 votes

Which tool to use for testing REST API?

First list out the rest actions you are supporting and the actual URL's in your application. These are also called endpoints of course. Then create test skeletons and templates that can be used and …
Michael Durrant's user avatar
2 votes
Accepted

Can I use Cypress for API Testing?

If you want to test components (some consider framework components as units) at the framework level such as React or Angular you can use https://docs.cypress.io/guides/component-testing/overview For n …
Michael Durrant's user avatar
1 vote

Credit Card Testing (Paypal Payflow API)

I would divide the testing into two parts: The forms processing on your site This is where you should write UI test cases Production Monitoring. Separate from testing you should consider having a sy …
Michael Durrant's user avatar
1 vote

Why use an API test if I can get the same information from the website?

Speed and Stability Relying on UI tests to test APIs will quickly lead to a lot of problems. It's ok for 1 test perhaps, but once you start to add more, a lot of problems arise. Here's why you should …
Michael Durrant's user avatar
5 votes

How to avoid API tests duplicating Unit tests

The tests serve different purposes. Overlap is good. The 'overlap' of higher order tests (such as API) and Unit tests should be high. In fact 100% would be good. Unit tests mock and stub all dependen …
Michael Durrant's user avatar
6 votes

Is it a best practice to use loops for a test case to run it multiple times?

Generally speaking I consider it a bad practice if you are using different data combinations to run UI tests. I refer to this as data combinatorial testing. Generally speaking I look to be sure that t …
Michael Durrant's user avatar
1 vote
Accepted

Cypress API testing : How to login and then use the auth token in another test?

Move the login outside the test, for example, to a before. You may need to add a condition where it checks if token exists already. You may also be able to use a before all depending on language and f …
Michael Durrant's user avatar
4 votes
Accepted

Choosing Testing tools against multiple programming languages

I would approach it from these perspectives: 1. What kind of testing are you doing ? Is it at the unit, integrated or end-to-end level? Is it white, black or grey box?. If it is at the unit or integr …
Michael Durrant's user avatar
6 votes

Tests in CI: Are API + Integration Tests the most suitable?

Use the test pyramid as mentioned by Peter Masiar. My contribution here is help answer the question of exactly how to decide the 20% and 80% figures that Peter mentions. My approach to this is to …
Michael Durrant's user avatar
0 votes

I want to practice testing API but can't find anything interesting

Postman If you install and use Postman ( a leading API tool with a free version) there is training and examples on their site and within the tool. As postman is a leading tool this is a good one to l …
Michael Durrant's user avatar
0 votes

API Management Tool Recommendation

API Gateway from Amazon might be worth exploring given all the supporting infrastructure that comes with it. https://aws.amazon.com/api-gateway/
Michael Durrant's user avatar
5 votes
Accepted

How to utilize Chrome Dev tools for QA(manual or automation)?

Chrome Dev Tools - Aug 2018 (they will keep changing) Customize the tools themselves - "dots" menu on the right Most common use is to change where the tools are "docked" (right, below, etc). The To …
Michael Durrant's user avatar
13 votes
Accepted

Test strategy to bring automated tests from UI to lower(API/Unit) layers?

A key strategy for me is to convince the business of what needs to be tested where, otherwise... they'll end up directing testing everything through the UI... So the two key main points I am making t …
Michael Durrant's user avatar