Rayrun
← Back to Discord Forum

Is this possible to set a delay between each test run in CICD by command line or config?

Our team have met an issue about running bulk test and just want to put some delay between each test to make it more stable. Any advices would be helpful

This thread is trying to answer question "Is it possible to set a delay between each test run in CICD by command line or config?"

5 replies
vipinphogat

You can add await page.waitFor() in afterEach hook

bububu8615
bububu8615
@vipinphogat: Thanks for you idea I'll try it

Thanks for you idea I'll try it

await sleep(delay) in test.beforeEach() ?

bububu8615
bububu8615

Thank guys I applied and it worked. One more thing I want to ask, Does the wait for timeout in before or after hook count in total test timeout or not? Thank you guys so much

Would assert this is really the wrong way to go about your testing. Would assert the right way is to identify what you can wait for before continuing. No wasted time... But not my time you're wasting...

TwitterGitHubLinkedIn
AboutQuestionsDiscord ForumBrowser ExtensionTagsQA Jobs

Rayrun is a community for QA engineers. I am constantly looking for new ways to add value to people learning Playwright and other browser automation frameworks. If you have feedback, email [email protected].