How can I pass parameter that would be needed to loop over each data represent by each test case ("it" function)? #28558
Unanswered
andikabhaskara
asked this question in
Questions and Help
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.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi guys,
so I have been thinking to try to create test case to be more dynamic based on the 1st test case of how much data do I have and I tried to validate it in batches by divide it from the total data that I have. the reason behind this is to reduce the memory consumption and to mitigate the Crash error from Chromium. but, so far I have been facing a problem in my code as follow:
The problem that I am facing is that, the loop over test case it does not appears, unless I hard coded the max limit loop. I have tried to follow the instruction in here so far no luck.
I am expecting something like this. Note: I hard coded the loop from
for (let i = 1; i <= Cypress.env("testdata"); i++)
tofor (let i = 1; i <= 2; i++) {
Does anyone know alternative to do this? I have also tried to create another param above for loop to be the maximum limit looping, but it still doesn't works. Thank you guys!
Beta Was this translation helpful? Give feedback.
All reactions