Karate : Is it feasible to iterate Url to support pagination

后端 未结 1 1557
我在风中等你
我在风中等你 2021-01-26 22:58

I have a rest endpoint with pagination, I want to verify expected parameter exists by traversing through all pages. One option I could think of is to have an array defined with

相关标签:
1条回答
  • 2021-01-26 23:26

    You should be able to figure this out with conditional logic: https://github.com/intuit/karate#conditional-logic

    There should be some part of your response that tells you whether there is a "next" page or not. There are ways you can "loop" manually, refer this part of the docs: https://github.com/intuit/karate#polling

    0 讨论(0)
提交回复
热议问题