# 4 || POM Series || E2E Test using GitHub Actions+Parallel Execution using GitHub Actions

Поделиться
HTML-код
  • Опубликовано: 27 окт 2024

Комментарии • 36

  • @ABAutomationHub
    @ABAutomationHub  Год назад +4

    Blogs -
    www.lambdatest.com/blog/cypress-with-github-actions/
    medium.com/tradeling/how-to-achieve-parallel-execution-using-github-actions-d534404702fb
    medium.com/tradeling/github-actions-cfeace7ab0c4
    medium.com/tradeling/how-to-schedule-jobs-using-github-actions-9f32667706ea

  • @madinashaik6143
    @madinashaik6143 10 месяцев назад +2

    Hi,can you please create a vedio on integration cypress tests run on Gitlab cicd implementation using gitlab yaml file.Thanks!

  • @huk104
    @huk104 Год назад +2

    By far one of the project-ready cypress playlist really appreciate it.
    Waiting for integration with Slack video.

  • @chetan8872
    @chetan8872 Год назад +1

    very informative video

  • @KapilLomte-iz1zo
    @KapilLomte-iz1zo Год назад +1

    Good explanation!

  • @brunost-9151
    @brunost-9151 4 месяца назад

    Hi, AB! The content on this channel is very helpful and practical, you are a great teacher!
    Could you please, explain to me: how does this approach to parallelism differ from using parallel:true and Cypress Cloud? In which situation would you use one over the other?

  • @Anitha.D
    @Anitha.D Год назад +1

    You are really awesome thanks a lot 😊

  • @Bala-k6c
    @Bala-k6c Год назад +1

    Really appreciate it

  • @radhika_th
    @radhika_th 6 месяцев назад +1

    well explained!

  • @jubinthankachan7956
    @jubinthankachan7956 10 месяцев назад +1

    Please add BDD framework and its implementation. Your classes are very easy for me to follow. :), Thank you

    • @ABAutomationHub
      @ABAutomationHub  10 месяцев назад

      Thanks! BDD videos would be added soon..

  • @KasiSekhar
    @KasiSekhar 6 месяцев назад +1

    Nice Explanation..! Can you make a video on Bitbucket pipeline for same Cypress

  • @bismalmajeed2167
    @bismalmajeed2167 Год назад +1

    Thanks alot 😊

  • @renuroy2253
    @renuroy2253 7 месяцев назад +1

    great video

  • @patrickudo5791
    @patrickudo5791 Месяц назад

    Thank you for your time and contributions to the testing community. I’m currently using Cypress ("cypress": "^13.14.2"), and I've encountered an issue. When I push to GitHub Actions, a single spec file doesn’t execute, but when running two spec files, they both work without any problems. Could you kindly advise on what might be causing this behavior?

  • @sumanthpai6100
    @sumanthpai6100 5 месяцев назад

    what about using cypress-parallel instead of seperate Jobs in .yml file , would that have the same effect?

  • @abhibhatt5231
    @abhibhatt5231 Год назад +1

    Hello Anshita, Thanks for covering the GitHub actions. 🙂
    Are you going to cover advanced topics like Jenkins and AWS integration?

  • @sudhakarveeraraghavan5832
    @sudhakarveeraraghavan5832 Год назад +1

    Really Wonderful Easy to understand explanation madam.Thanks. One query, I have just started learning Automation testing (basically manual tester till now).while searching in online, some people saying cypress won't last long as they have budget constraints and other tools like playwright will run over cypress next year.Is it true, could you please clarify on future of Cypress like next 2-3 years. Thanks.

    • @ABAutomationHub
      @ABAutomationHub  Год назад +1

      Few days back Cypress released an new feature ‘Test Replay’, which comes with free of cost if you’re using Dashboard.. If Company has any budget issues, why would they release free products and spend so much time and money in enhancing the products.. I don’t see it shutting down anytime soon. . So, don’t worry and if you are planning to learn it,go ahead.

    • @sudhakarveeraraghavan5832
      @sudhakarveeraraghavan5832 Год назад +1

      Thanks a lot madam for clarification

  • @arushikapoor05
    @arushikapoor05 8 месяцев назад +1

    We need cypress cloud for this right? For parallel execution?

    • @ABAutomationHub
      @ABAutomationHub  8 месяцев назад

      No, not with this approach.. This will run based on the scripts you have in package.json..

  • @surensura2488
    @surensura2488 Год назад +1

    Hi Anshita,
    Is it possible to run in order like parallel-build.yml for the first and followed by the other, I guess our code is running in random order.
    can you please clarify me on this.

    • @ABAutomationHub
      @ABAutomationHub  Год назад +2

      @surensura2488 - Yes, we can do it by specifying dependencies between workflows in GitHub Actions. You can use the workflow_run event with the types: completed condition in your workflow configuration to trigger the second workflow when the first one has successfully completed.
      Example - You can pass the below code in your second workflow file.
      on:
      workflow_run:
      workflows: [parallel-build]
      types:
      - completed

    • @surensura2488
      @surensura2488 Год назад

      @@ABAutomationHub thanks 😊

  • @prikshitverma3885
    @prikshitverma3885 9 месяцев назад

    Hi Anshita, Thank you for this video, I tried running my script using the same steps you told. but getting error when I push code ( error: Can't run because no spec files were found.
    We searched for specs matching this glob pattern:) can you please assist. I have my specs in different folder not in e2e by default.

    • @ABAutomationHub
      @ABAutomationHub  9 месяцев назад

      In your case, the first step is to modify the specPattern in the cypress.config.js file (for example, specPattern:"cypress/tests/*.cy.js"). Afterward, you should also update the script specified in the package.json file. For example, under "scripts," pass the script
      "scripts": {
      "test": "npx cypress run --spec cypress/tests/screenshot.cy.js"
      }
      Once these changes are made, you can verify in the terminal whether the command is functioning correctly by using "npm run " (e.g., npm run test). If everything is set up properly, it should work. Please let me know if you face any further issues.

  • @rekhamanappagol1857
    @rekhamanappagol1857 Год назад +1

    Hi Anshita,
    I had created two different jobs one for chrome and other for FF, Both the test cases being executed in electron.
    When I mentioned chrome for both the jobs still test cases being executed in electron.
    Is this right approach, Below is the .yml file. Please let me know.
    name: Parallel Test
    on: [push,pull_request]
    jobs:
    Login-Test:
    timeout-minutes: 120
    runs-on: ubuntu-latest
    steps:
    - name: Checkout
    uses: actions/checkout@v3
    - name: Chrome Browser
    uses: cypress-io/github-action@v5
    with:
    command: npm run test:loginTest
    browser: chrome
    Update-Test:
    timeout-minutes: 120
    runs-on: ubuntu-latest
    steps:
    - name: Checkout
    uses: actions/checkout@v3
    - name: Chrome Browser
    uses: cypress-io/github-action@v5
    with:
    command: npm run test:updateEmailTest
    browser: chrome

    • @ABAutomationHub
      @ABAutomationHub  Год назад

      Hi @rekha, if you provide a "command" parameter, the browser selection is ignored. To address this, you have two options: you can either include the browser name in your package.json as a script, or you can run the test without using the "command" parameter.
      I have created a sample script and executed it using command parameter. You can check this out -
      github.com/Anshita-Bhasin/Cypress-E2E/blob/main/package.json
      github.com/Anshita-Bhasin/Cypress-E2E/actions/runs/5811858646/job/15756015129

    • @rekhamanappagol1857
      @rekhamanappagol1857 Год назад +1

      @@ABAutomationHub Thank you so much for checking :)
      After gitHub actions configuration mocha awesome html report generation is not working for me do we need to configure report generation also in build file.

    • @ABAutomationHub
      @ABAutomationHub  Год назад

      @@rekhamanappagol1857 : I will cover this topic as part of the series.

    • @rekhamanappagol1857
      @rekhamanappagol1857 Год назад +1

      @@ABAutomationHub Thank you ☺️