'How to wait till the rest assured response to load completely without Thread.sleep()

We started fixing rest assured regression testcases. Seems like XML responses are taking more time then expected, so we started adding delays using Thread.sleep(). Now few of the scripts were passing. Is there any way to explicitly wait for the whole response to receive without using hard code waits. We are executing test scripts on grid.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source