PART 6 - Run All Scenarios in Parallel Mode using Cucumber - TestNG || Generate Extent PDF Report

preview_player
Показать описание
In this video, I have explained how to run all scenarios in parallel mode using Cucumber and TestNG Data Provides.

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/TestNG
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 / TestNG Cucumber Lib
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:

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

Hi Naveen, are you going to post one more video on integrating this Cucumber framework with Jenkins, GIT and docker?
Please answer...

saikiranpalugula
Автор

Thanks for the much awaited series naveen! I tried running the scenarios with TestNG without changing the folder structure (kept as same like we used for junit runner). It runs without any problem...

Small update from my side🙂

Someone_
Автор

I was thinking about the usage of empty class in runner.java. I got the answer in this video. Thank you

sainathvallampatla
Автор

Thanks for this video, however I noticed one thing though, tags mentioned in the parallel runner are irrelevant, irrespective of tags are there or not, all features and scenarios still run parallelly, any thoughts?

mabhijithify
Автор

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

siteshvishwakarma
Автор

No word to say !! You are the boss !! Take a bow . 🙏

shankumondal
Автор

hiii naveen as you told in this video run all scenario parallel but is possible to execute parallel scenario and feature file with thread value 2 in this video all test are executed at same time it consume lot of cpu.

PawanRajbhar-do
Автор

@Naveen, what exactly does the 2d Object array return ? super.scenarios must be returning multiple scenarios but what is the other dimension? because it is a 2D array . Thanks :)

yuvraj
Автор

Great explanation. How to run parallel specific tagged scenarios ( which are located in multiple feature files) using testng

SivaKumar-rgkx
Автор

Hello, do you know how to limit threads ? for example I want to launch 2 scenarios parallel ?
edit: if someone looking for solution just add this to surefire <configuration>
<properties>
<property>

<value>2</value>
</property>
</properties>

piotrk
Автор

Thanks Naveen.., can I run API testing features in parallel or restassured does not support parallel run? Please advise

gawanderohan
Автор

Thanks @Naveen for your video but I'm having an issue, everytime I run the test I got a sequential execution always. I copied your pom and even with that I've got the same execution... in sequence

luisjaviermedinacoca
Автор

Naveen hi. Great video!!!!
I'm building a Cucumber + Maven + Selenoid framework, without parallel enabled. I try now to run it in multiple threads and as can you imagine i have problems.But the debugging is hard, because logs are not produced live. Do you have any idea or solution to have live logs while i run test in parallel? Ty

lewnidasmitrou
Автор

Thanks Naveen.. can we execute same test cases for multiple environments(instances) on pipelines

govindreddy
Автор

Not Sure what wrong I am doing but for me it is saying 'The method scenarios() is undefined for the type AbstractTestNGCucumberTests' for the function written under runner class

public class TestRun extends AbstractTestNGCucumberTests
{

@Override
@DataProvider(parallel = true)
public Object[][] scenarios() {
return super.scenarios();
}
}


It would very helpful if you can put some light.

abhinashagrawal
Автор

Thanks, Naveen. Do you have any plan to make a video on QMETRY BDD

abhijeetgalphat
Автор

This is awesome - thank you so much!!!

MnemonicCarrier
Автор

Hello Naveen, One request.. could you please add the Element Util class with some basic generic functions for web operations .. Thanks in Advance!!

vijaykaushal
Автор

Hi. Is there a way to control the number of thread for parallel execution?

romilpant
Автор

Naveen, Can you pls tell me how to execute the same test cases in different browse at a time in TestNG

sudhakarthangavelu