Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

How to repeat a scenario N times on data fetched from API? #4428

Unanswered
praveen-nj asked this question in Q&A
Discussion options

Hello, in my project, we need to test a UI feature for all returned data from the API, and the API authentication can only be done using the browser session since our application needs to be highly secure.

Currently, the only way possible is to loop through the response within the scenario block which is not ideal for execution times.

I have tried storing the response in a runtime-generated file, generators inside Data(), global variables initialized with an empty array, etc.

If anybody has a solution, please let me know. Thanks.

You must be logged in to vote

Replies: 0 comments

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant

AltStyle によって変換されたページ (->オリジナル) /