How to run multiple tests in Parallel using Maven pom.xml|Run testcases/testng method simultaneously

Sdílet
Vložit
  • čas přidán 21. 08. 2024
  • In this video, we will learn "How to run multiple tests in Parallel using Maven pom.xml" "Parallel tests execution in Selenium"
    This will reduce the Execution time.
    ==========================
    ******AJ AUTOMATION*****
    ==========================
    Hi guys, Please share and Like the content whichever you find informative to reach more beginner candidates learning Test Automation. Thanks for your Support !!
    ==:Useful Playlists for learning Test Automation:==
    ✅ Let's Learn the Concept in 5 To 10 Mins :=
    • Test Automation Interv...
    ✅ Selenium series videos Playlist :=
    • Selenium tutorial for ...
    ✅ Maven Tool videos playlist :=
    • Maven Tool - Necessary...
    ✅ Selenium WebDriver Exceptions Playlist :=
    • Selenium WebDriver Exc...
    ✅ Selenium Grid With Docker:==
    • Selenium Grid With Docker
    ✅ Upload and Download Files in Selenium :=
    • Selenium WebDriver - U...
    ✅ Excel and CSV files operations :=
    • Excel and CSV -- Read ...
    ✅ Java Language Concepts :=
    • Java Language Concepts...
    ✅TestNG Framework Videos:=
    • TestNG Introduction an...
    ✅ Become Master in Xpath:=
    • Xpath Introduction
    ✅ Protractor series videos playlist :=
    • Let's Learn Protractor...
    ✅ Recent Uploads :=
    • Recent Uploaded Videos
    ✅ GitHub Repo:= github.com/aja...
    ⚡️ Thanks for your support !! ⚡️
    ======================================
    *************** Thanks for watching !!*************
    ======================================
    ⚡️ Keep Learning...Keep Sharing...Keep Growing. ⚡️

Komentáře • 20

  • @AJAUTOMATION
    @AJAUTOMATION  Před 3 lety +1

    Hi guys, if you like the content of the channel then plz share with your friends learning automation.
    ✅ Recent Uploads :=
    czcams.com/play/PLlc_LrU50tljOnB-LUofJpBkeSMskcQVd.html
    ✅ Selenium series videos Playlist :=
    czcams.com/play/PLlc_LrU50tliMZrnSa0a9geljzCijPDfq.html
    ✅ Maven Tool videos playlist :=
    czcams.com/play/PLlc_LrU50tlgWOrybr-Ppffg6T_1cXeUb.html
    ✅ Java Language Concepts :=
    czcams.com/play/PLlc_LrU50tliq2RV-1Yhr2IjJ5RqXCQjU.html
    ✅TestNG Framework Videos:=
    czcams.com/video/-KEg20O6Mxs/video.html
    ✅ Become Master in Xpath:=
    czcams.com/video/Wv1hHLhtnzw/video.html
    ✅ Protractor series videos playlist :=
    czcams.com/play/PLlc_LrU50tlim53VdVwAmCnBr8M2x38y8.html
    ⚡️ Thanks for your support !! ⚡️

  • @brian_m1892
    @brian_m1892 Před 2 lety +1

    Thank you very much AJ for making this excellent tutorial ! It was 100% very helpful for a beginner like me. I'm now a subscriber to your channel. Thank you again. Namaste

    • @AJAUTOMATION
      @AJAUTOMATION  Před 2 lety

      Namaste Brian 🙏, thanks for your valuable feedback 👍. I am glad to see that video was helpful.
      Plz don't forget to like and share the content whichever you find informative to reach more candidates.

  • @UrosGavric
    @UrosGavric Před rokem +1

    Thank you very much. Made parallel executions from TestNG, but was stuck with parallel execution from Maven.

    • @AJAUTOMATION
      @AJAUTOMATION  Před rokem +1

      Thanks for watching @urosgavric 🙂..
      Plz share the content whichever you find informative to reach more people...

  • @giridharanrangasami2951
    @giridharanrangasami2951 Před 3 lety +1

    All your explanation videos is Excellent

  • @ruchimishra3826
    @ruchimishra3826 Před 3 lety +1

    Thanks for informative video, Please suggest how we can run testng.xml parallelly having multiple suite-files inside it. Example - Here testng.xml has suite-files where each suite-file has again multiple tests. What settings should be done to run testng1.xml and testng2.xml parallelly.

    • @AJAUTOMATION
      @AJAUTOMATION  Před 3 lety

      Hi @Ruchi, Thank you for taking the time to comment, and I'm glad you found my content helpful. Sorry for late reply, I missed ur comment.
      for ur Scenario , There are two ways
      1. do following configuration in sureFire plugin.
      Add under suiteXmlFiles

      TestNG2.xml
      TestNG.xml
      and add under properties:=

      suitethreadpoolsize
      2
      Now run with mvn test, u will see tests both testng XMLs are running in parallel.
      2. Another way is to create a TestngRunner.xml and add :=


      now again go to pom.xml and give TestngRunner.xml in surefire plugin and keep suitethreadpoolsize 2 or more.
      I will create video on this soon.

  • @nawazpasha2505
    @nawazpasha2505 Před rokem +1

    How to control number of instances like how many number of browsers it should launch?

    • @AJAUTOMATION
      @AJAUTOMATION  Před rokem

      On local machine we can use thread count and parallel attribute. While running from Jenkins with docker selenium grid , we can make a use of Jenkins parameter lets say "Thread-count" along with thread count and parallel attribute. With shell script we will replace the thread count number equal to the Jenkins parameter value and accordingly we will create browser nodes containers and tests will run in parallel. So if we set Thread-count=3 then 3 chrome / FF browsers will open.
      Thanks for asking @nawaz

  • @basavakeerthi4107
    @basavakeerthi4107 Před rokem +1

    Hi, how to pass dynamic values from properties file to pom.Xml

    • @AJAUTOMATION
      @AJAUTOMATION  Před rokem

      Try passing parameters at run time - czcams.com/video/MTuvBk3qq94/video.html
      Also if you are using jenkins parameters, their values can be changed in pom or any other files using shellscript...

    • @basavakeerthi4107
      @basavakeerthi4107 Před rokem

      Can i plz contact you in anyway as my need is bit different?

  • @roopadolli1910
    @roopadolli1910 Před 3 lety +1

    Sir please cover CI-CD pipeline concept..

    • @AJAUTOMATION
      @AJAUTOMATION  Před 3 lety +1

      Yes, will try to start Jenkins series soon. We should not start CICD directly. First I will cover Jenkins basics so that understanding CICD would be easy.
      Thanks for asking.

    • @roopadolli1910
      @roopadolli1910 Před 3 lety

      @@AJAUTOMATION Thanks for your response sir... Please cover jenkins tutorial with respect to automation..

    • @AJAUTOMATION
      @AJAUTOMATION  Před 3 lety +1

      Yes sure..

  • @vothaian
    @vothaian Před 3 lety

    Please put source on git !!!

    • @AJAUTOMATION
      @AJAUTOMATION  Před 3 lety

      Thanks for reminding , will push the project..