How to run multiple tests in Parallel using Maven pom.xml|Run testcases/testng method simultaneously
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. ⚡️
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 !! ⚡️
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
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.
Thank you very much. Made parallel executions from TestNG, but was stuck with parallel execution from Maven.
Thanks for watching @urosgavric 🙂..
Plz share the content whichever you find informative to reach more people...
All your explanation videos is Excellent
Thanks for the feedback..
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.
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.
How to control number of instances like how many number of browsers it should launch?
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
Hi, how to pass dynamic values from properties file to pom.Xml
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...
Can i plz contact you in anyway as my need is bit different?
Sir please cover CI-CD pipeline concept..
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.
@@AJAUTOMATION Thanks for your response sir... Please cover jenkins tutorial with respect to automation..
Yes sure..
Please put source on git !!!
Thanks for reminding , will push the project..