API Automation Testing : Is there any way to automate download scenario with content validation?

2 options. If you are sure the binary contents of the file will never change, do a binary comparison, see this example: upload-image.feature: And match response == read(‘karate-logo.jpg’) You have to write some custom code. There are Java libraries to read Excel. Use one of those, read the data, and then compare with expected results. … Read more

How to read input data from an excel spreadsheet and pass it JSON payload in karate framework?

A few points: I recommend you look at Karate’s built-in data-table capabilities, it is far more readable, integrates into your test-script and you won’t need to depend on other software. Refer these examples: call-table.feature and dynamic-params.feature Next I would recommend using JSON instead of an Excel or CSV file, it is natively supported by Karate: … Read more

Karate: Is there a http-request hook in karate, that gets called automatically after every API call, and whose behaviour I can modify? [duplicate]

First, I personally think that this is a mis-use of Karate, and you seem to be more interested in reports than actually doing testing. Take some time to think about it. Karate has excellent report integration and you are just wasting your time doing this in my very honest, sincere opinion. No one has asked … Read more