Question:
In a java-project, I can write an integration test involving a database:
- Clean up all the data in the table that is currently available.
- Upload new test data. Do a test on them.
- Make a rollback. All this with Java @Transactional.
Can I do something (Transactional) similar in karate?
Now my algorithm in karate is:
- Insert test data into the database from karate.
- Call api java method that works with data. Problem: The tables already have data that interferes with the test. And you can’t delete them forever for the test.