Lecture15: Parallel Execution Challenges in Cucumber + Junit || Interview Question

preview_player
Показать описание
🚀 In this tutorial, we'll dive deep in to understanding Parallel execution using Junit4 and associated challenges

🔍 Key Points:

📌 Problem statement: How to run test cases in parallel using Junit4
ac
📌 Solution:
1. Move feature files to be run in parallel under one folder
2. In Runner's Cucumber options feature section, point to above folder
3. convert Driver in to Thread Safe
4. run mvn test to run feature files in parallel

📌 Challenges:

Junit4 can run feature files in parallel not Scenarios in Parallel but in real time we need to run test cases in parallel.
Junit4 does not have capability of parallel execution, it relies on maven surefire plugin to run test cases in parallel

🚀Remediation:
-In next videos, we will discuss about How to integrate TestNG in Cucumber to run test cases in parallel.

🚀Additional Resources:
Link for Surefire:

📌Alternative attribute for multiple feature files:
useUnlimitedThreads

📌 Design Patterns Playlist:

Let us try to understand the same in the video.

If you're interested in improving your BDD testing skills and making your scenarios more organized and efficient, this video is a must-watch. Hit that "Subscribe" button and turn on notifications to stay updated with more BDD Cucumber tutorials and best practices!

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

can we used like below as I haven't implement Factory designed pattern :
public void setDriver(String browser)
{
switch(browser)
{
case "chrome":

driver.set(new ChromeDriver())
break;
default:
throw new IllegalArgumentException(" ");

}

}

public WebDriver getDriver()
{
return driver.get()
}

sushantbhakare
Автор

Do you have public code repo for this tutorial?

gulfamily
Автор

I am not able to achieve parallel testing by these tags..pls help me how to do

saanviworld
Автор

Why you are still using junit4 instead of junit5? 🤔

amapamap