trentrand / cypress-utils

⚙ Easily parallelize and stress-test your Cypress tests
MIT License
25 stars 6 forks source link

Stress-test and variables #21

Open Cedric-Brunel opened 2 years ago

Cedric-Brunel commented 2 years ago

Hello,

Sorry for my bad english, i hope you understand my question.

I used few days agos cypress-utils stress-test. But i can't find any solution for use variable. For exemple i want to call one test X times but for X differents customers and X differents users.

It's not possible. I would like to be able to pass some kind of array with environment variables URL, User, PWD for example

thank's

trentrand commented 2 years ago

Hey @Cedric-Brunel 👋🏻

I understand your request. I think it's a great idea. Perhaps cypress-utils can pass the run index as an environment variable. In your Cypress spec you could use this value to index the mock data corresponding with each run.

I'm not sure this is something I can take the time to implement, but I'd be happy to help get a PR merged if someone wants to contribute this feature.