I'm working to write a specification with gherkin (for the first time) for a REST API which will return a long list of paged items (1000 items per page). I'm curious if there's a good way in gherkin to write a specification such as this?
Software Quality Assurance & Testing Stack Exchange is a question and answer site for software quality control experts, automation engineers, and software testers. It only takes a minute to sign up.Sign up to join this community
Well, I belive such the verification will contradict the goal of Gherkin to improve readability of your scenarios. However if I would approach such the task, I would keep the item list in a separate source (say, a file). And then the construction like:
Given I am at the page with a long list When Check all the items on a page Then List items correspond to file "C:/MyPath/goldensource.txt"
Then you develop your step definition code to read from specified file and compare the result.