nightwatch icon indicating copy to clipboard operation
nightwatch copied to clipboard

Add `--reuse-browser` flag for component testing

Open AutomatedTester opened this issue 3 years ago • 2 comments

When a test is doing a component test we should have a reuse-browser flag that is defaulted on to help speed up tests.

  • [ ] Nightwatch can differentiate test types and run the test accordingly
  • [ ] Add flag when we see a component test
  • [ ] Add relevant documentation

AutomatedTester avatar Aug 22 '22 10:08 AutomatedTester

Thank you for setting this as an enhancement. One of the product folk will triage this again to help see when we can fit this in an upcoming sprint.

github-actions[bot] avatar Aug 22 '22 13:08 github-actions[bot]

Added reuse-browser flag to reuse session in Nightwatch which will be used in component testing. Raised a PR #3398 for reusing browser sessions for different test modules. Reusing browser sessions with parallel thread needs to handled differently. For the parallel case we need to spawn threads as per machine and reuse those for rest of the test runs. For example for 8 tests and 4 thread workers we need to spawn 4 threads and use those same threads for remaining test run.

gravityvi avatar Sep 21 '22 15:09 gravityvi

Created another issue to track parallelism case #3403

gravityvi avatar Sep 22 '22 14:09 gravityvi