How to repeat a scenario N times on data fetched from API? #4428
              
                Unanswered
              
          
                  
                    
                      praveen-nj
                    
                  
                
                  asked this question in
                Q&A
              
            Replies: 0 comments
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment
  
        
    
Uh oh!
There was an error while loading. Please reload this page.
-
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.
Beta Was this translation helpful? Give feedback.
All reactions