PART 5 - Run Cucumber Feature Files in Parallel Mode using Maven Fail Safe Plugin & JUNIT

preview_player
Показать описание
#CucumberBDD #CucumberParallelRun #NaveenAutomationLabs

In this video, I have explained how to achieve parallel execution at the feature level using Maven FailSafe Plugin and Junit.

We will also see how to get Cucumber Thread based report.

We will be designing different components in this Framework:
1. Feature Files
2. Step Definition Classes
3. Configuration Files
4. Cucumber Hooks with before and after
5. Element Utilities/Libraries/Generic Functions
6. Cucumber 6 Extent Report Adaptor for Spark HTML / PDF Reports
7. Test Runners in JUnit
8. Page Classes for POM
10. Parallel Execution
11. Cucumber 6 Web HTML Reports
12. Screenshot for Failure scenarios
13. Integration with GIT Repo
14. Running test cases from Jenkins
15. Running test cases on Dockerized Selenium GRID
And much more.....

Technologies Used:
1. Selenium WebDriver with Java Language binding
2. Cucumber 6.x JVM library
3. WebDriverManager
4. JDK 1.8
5. Maven (Build tool)
6. Maven Plugins
7. Cucumber extent report 6 adapter
8. JUnit 4.x library
9. Log4j
10. GIT HUB - Git Repo
11. Docker
12. Jenkins
13. Eclipse (IDE)

~~~Subscribe to this channel, and press bell icon to get some interesting videos on Selenium and Automation:

Follow me on my Facebook Page:

Let's join our Automation community for some amazing knowledge sharing and group discussion on Telegram:

Paid courses (Recorded) videos:

Рекомендации по теме
Комментарии
Автор

Thank you so much Naveen...this series helps me a lot.... because of your videos and am confident enough to crack interviews

bhuvanabaskaran
Автор

Parallel execution is now made much easier. Looking forward to the cross-browser testing using Junit.
I did with Maven sure-fire and fail-safe plugins and both look good.
Thanks a ton, Naveen.

shashibhushanv
Автор

Thanks for this great series, Naveen! You are slowly, but surely converting another manual tester to an automation tester.

I confronted a few issues getting the parallel execution to work using JUnit and here is how I managed to solve them:


1. One of the problems I confronted was that my failsafe plugin would not execute the tests and instead the surefire plugin would execute them using a single thread. One suggestion from one of your viewers, thanks @Anyik Duku, was to remove the testNG dependency. After doing this my failsafe plugin started executing the tests.

2. Here is when my second problem started. For some reason my surefire plugin was still executing the tests using a single thread and after finishing then the failsafe plugin kicked in and performed the tests again using two threads. The problem this time was that I had named my Runner file as "TestRunner.java" instead of "MyTestRunner.java" and the surefire plugin will execute any java filename that starts with the word Test by default. I solved this problem by excluding my runner file in my surefire plugin configuration.

leonardo
Автор

Tons of thanks. I sorted out parallel testing.

gayathrivr
Автор

it's really a perfect illustration for understanding.

saikatdhar
Автор

@Naveen- Appreciated your video on parallel execution... Couple of things observed.

1. driver.quit is called without Null check.
2. Need to implement Exception mechanisms

These should be part of framework designs at the initial stages.

tulasiramsunkara
Автор

As always thanks for video Naveen ☺️ n it's been really helpful that you had covered the limitation for parallel testing while working with Cucumber - JUnit 👍👍

SarangHoley
Автор

Much needed tutorial..kindly cover the execution on different environments..

ankur
Автор

Thanks a ton for this Cucumber series. Many things to learn.

Vinodmhetre
Автор

Hi Sir, Could you please make a video on mobile automation for parallel execution using Appium with cucumber? It will be beneficial.

siteshvishwakarma
Автор

@naveen Thanks for creating this series. I am getting error 'mvn command is not recognized as an internal or external command' while running test suite through command prompt. Could you please share any solution to fix this?

niazmaksud
Автор

Hi Naveen, Awesome as always. Thanks for video. Is this available in GITHUB account of yours ?

sampadachendake
Автор

Hye Naveen,
I saw your video 5 and 6 regarding parallel execution and its awesome.
Can you post video for cross browser testing in parallel mode of feature files.

Thank you

ajitkumarsrivastava
Автор

It has been a great video series.Thank you

busraozdemir
Автор

Thanks Naveen.. it really helps! Can you please post a video for parallel testing - cucumber with testng. Looking forward your upcoming videos!!

subhuvijay
Автор

Thanks Naveen for great video waiting for next

anandsinha
Автор

Hello Naveen,
Thanks a ton for making our life easy with such nice videos.
I couldn't find your GIT hub url to clone the project. Could you please provide it?

ramachandrabalam
Автор

hi @naveen I saw your video just today. Really helpful.
One thing wanted to understand about the plugins used here.
Can you please share the benefits of using these plugins as well.
I tried searching but could not get much clarity in this context.

bhupendrasharma
Автор

This runs the feature files sequentially and not parallely. I have removed the testng dependencies . have tried using surefire and failsafe plugins together and individually . Have tried via IntelliJ console and cmd. Can you please help.

TanzeelKhan-gn
Автор

Everything was done in command prompt it says build sucessful, but the browser is not opening... please someone help me

athiradu