In this repository you will find automated steps to test a mock api.
- Sometimes the mock api does not allow more than 30 fast requests, so a test could fail in that scenario.
- You can replace the link of your own mock api in the class baseTest, it has to have the same format though.
- The mock api in this repo can only have up to 100 records.
- Open the project, run the test from the Suite.xml file. This will run all the 4 tests starting with:
- @Test1 checks that the endpoint is empty, if not, it deletes everything from it.
- @Test2 creates 11 fake bank transactions and posts 10 of those (the non duplicated, the one left has a duplicated email) to the api.
- @Test3 makes a get request to the api and checks that there are not duplicated emails in the bank transactions.
- @Test4 creates a new fake account number and updates the first available bank transaction with it.