Rayrun
← Back to Discord Forum

Problem encountered : My execution never stops

RandomAutomatorposted in #help-playwright
Open in Discord
RandomAutomator

Hi every one I ve changed my computer and I have now a problem when I run my projects. When I run a test, all is ok, I've got a status (passed of failed) but after that I have the green icon or the red one beside the title of my test in the console, the execution seems to continue and if I do Ctrl C, it stops and I have the report. When I had my old computer, it was automatic, the test was executed, the report generated and I could launch another test. Now I must do Ctrl C so as to stop the processus. Do you know where the problem can come from ? Thank you for your anwser

image.png

This thread is trying to answer question "What could be causing the continuous execution of tests on my new computer, and how can I resolve it?"

0 replies

Answer

Troubleshooting Continuous Test Execution in Playwright

If your tests keep running non-stop on your new machine, it could be due to your CI environment settings.

Azure Pipelines

For Azure Pipelines, check your trigger setup. Here's an example configuration for running Playwright tests with different browsers and sharding:

trigger:
  branches:
    include:
    - master
    - releases/*
  paths:
    exclude:
    - README.md

Sharding helps distribute tests across multiple jobs for better parallelization.

GitHub Actions

For GitHub Actions, your workflow file should have the necessary steps. Here's an example:

steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
  with:
    node-version: '18'
- run: npm ci
- run: npx playwright install --with-deps
- run: npm test

This workflow checks out code, sets up Node.js, installs dependencies, and runs tests.

Other Causes

Misconfigured triggers or event handlers in your CI pipeline could also cause continuous test execution. Check for any deployment status events or triggers that might initiate test runs automatically.

To fix this, review and adjust your CI configuration files. Make sure all dependencies are installed correctly and triggers/events are set up properly. If you're still having issues, check out the Playwright documentation or seek help from community forums or support channels.

Related Discord Threads

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 luc@ray.run.