Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stress / load testing #1510

Open
EirikBirkeland opened this issue Mar 27, 2018 · 10 comments
Open

Stress / load testing #1510

EirikBirkeland opened this issue Mar 27, 2018 · 10 comments
Labels
Cypress Cloud Feature request or issue in Cypress Cloud, not App stage: proposal 💡 No work has been done of this issue type: feature New feature that does not currently exist

Comments

@EirikBirkeland
Copy link
Contributor

EirikBirkeland commented Mar 27, 2018

Desired behavior:

I'd like a --stress-test parameter which lets me re-run tests for a set number of hours, with a final report to indicate which tests are flaky and which are sturdy.

As an alternative, it'd be fine if your dashboard service would aggregate fails over time, allowing me to see which tests need more attention.

This feature is going to grow in importance to me personally as my test suite grows in size.

  • Operating System: Linux Mint 18.3
  • Cypress Version: Cypress 2.1.0
  • Browser Version: Electron

Edit by @jennifer-shehane: Moved Dashboard feedback to https://portal.productboard.com/cypress-io/1-cypress-dashboard

@EirikBirkeland EirikBirkeland changed the title Feature: "stress test" flaky tests Feature: stress-testing Mar 27, 2018
@EirikBirkeland EirikBirkeland changed the title Feature: stress-testing Stress-testing and/or fail # aggregation Mar 27, 2018
@EirikBirkeland EirikBirkeland changed the title Stress-testing and/or fail # aggregation Stress-testing and fail count aggregation Mar 27, 2018
@jennifer-shehane jennifer-shehane added type: feature New feature that does not currently exist cli external: dashboard and removed cli labels Mar 28, 2018
@jianentrinsik
Copy link

I also wish to have this feature included in cypress. Similar features I saw elsewhere is: https://github.com/loadimpact/k6

@cameronc56
Copy link

This is a great idea. +1

@jennifer-shehane jennifer-shehane added the stage: proposal 💡 No work has been done of this issue label Mar 1, 2019
@jennifer-shehane
Copy link
Member

Related to test retries #1313

@jennifer-shehane
Copy link
Member

In terms of the 'Test Count Aggregation' idea for the Dashboard - You can express interest and see progress for this feature on our Roadmap from our Dashboard's product board here: https://portal.productboard.com/cypress-io/1-cypress-dashboard

This issue will now be tracking all work related to 'Load Testing' - as this is a feature that would involve the Cypress Test Runner.

@jennifer-shehane jennifer-shehane changed the title Stress-testing and fail count aggregation Stress-testing Oct 24, 2019
@jennifer-shehane jennifer-shehane changed the title Stress-testing Stress / load testing Oct 24, 2019
@sturlath
Copy link

sturlath commented Dec 6, 2019

@jennifer-shehane what issue on the dashboard would that be? I'm extremely interested knowing how I can use the tests to load test my app. I Would like to know more about what you are thinking

@davidjeddy
Copy link

I would like to also suggest parallel execution during --load-test. Typically I use Gatling for load testing; but Cypress and Gatling do basically the same thing: load the UI, interact, confirm.

Being able to leverage Cypress to execute a series of user actions with (for example) 10 simulated users, would cover the need for Gatling.

Stretch goal: record and display TTFB, average page load time, load bytes, HTTP code responses and counts (200,404,500,etc).

@djangofan
Copy link

djangofan commented Sep 23, 2020

Has anyone tried wiring up a Cypress test with Gatling? I am guessing that when Gatling forks threads, it wont be compatible with the reporting? I am thinking about it. Or did anyone have some other solution to performance test?

@nadia1993
Copy link

Has anyone tried wiring up a Cypress test with Gatling? I am guessing that when Gatling forks threads, it wont be compatible with the reporting? I am thinking about it. Or did anyone have some other solution to performance test?

can someone answer this? it will be very helpful

@sneko
Copy link

sneko commented Dec 14, 2020

I would be also interested to know if it would make sense to use Cypress tests to "load test" "all the infrastructure"?

Meaning:

  • it loads the frontend
  • interacts with the frontend as a real user (it's local, but never mind it respects timing of animations and so on...)
  • requests go through API
  • requests go through backend + DB

Indeed being able to parallelize multiple users would help making this concrete.

Did any of you try that?

@jennifer-shehane jennifer-shehane added Cypress Cloud Feature request or issue in Cypress Cloud, not App and removed external: cloud labels Oct 5, 2023
@gitressa
Copy link

This would, be great. Until it's ready, could https://github.com/trentrand/cypress-utils work as an alternative?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Cypress Cloud Feature request or issue in Cypress Cloud, not App stage: proposal 💡 No work has been done of this issue type: feature New feature that does not currently exist
Projects
None yet
Development

No branches or pull requests

10 participants