Search code examples
node.jstestingautomated-testse2e-testingtestcafe

Testcafe - sending false errors/dies after running 100+ tests in a row


I am creating an automation testing platform, and I wrote a code which executes around 300+ tests in a row. I am currently running the tests on my local machine. After around 10-20 tests the testcafe either stops working or giving false error or starts slowing down and not navigating to the right page therefore can't find any of the selectors I tell it to look for.

I know this to be false errors since when I only run these tests on their own testcafe is not doing that anymore and the tests pass successfully with no errors at all.

Any idea whats going on? Is this a problem with my local machine?


Solution

  • OK I found the issue in my code. I took a lot of screenshots per test and didn't clear them after each run which inflated my memory causing node and testcafe to crash. Thanks for all the help