I'm using karate tool for api automation testing. Is there a way to do comparison or A/B testing using karate - That's testing with 2 urls and making sure both return the same response..please help ..
Yes, this should be very easy with Karate. I suggest you don't over-engineer tests and make 2 requests in your test. Save the response of the first request.
Now all you need to do is perform a
match of the first response - that it is equal to the second response.
And because Karate allows you to set some fields of the "expected" JSON as
#notnull etc, you can easily handle cases where ID-s and time-stamps will be different.
Also suggest you use StackOverflow for Karate questions: https://stackoverflow.com/questions/tagged/karate