How to Execute the Feature File in Parallel Using Cucumber

  Рет қаралды 24,652

Automation Fraternity - "The DevOpsClub" Entity

Automation Fraternity - "The DevOpsClub" Entity

Күн бұрын

In this video, I explained how to execute the feature file in parallel using JUnit and maven sure fire plugin.
Code is placed here:
www.automationfraternity.com/c...

Пікірлер: 42
@laxmi5639
@laxmi5639 4 жыл бұрын
This really helped me in understanding Parallel Test execution using JUnit. Thanks much Sir, very well explained.
@automationfraternity7332
@automationfraternity7332 4 жыл бұрын
Glad it helped!
@vaishalimishra4713
@vaishalimishra4713 3 жыл бұрын
@@automationfraternity7332 I tried with this approach but still not successful. Could you please help me in resolving my issue
@DeepeshNagpal
@DeepeshNagpal 3 жыл бұрын
@@vaishalimishra4713 I suggest you to run it through maven test not by maven build. it worked for me.
@abhilash6200
@abhilash6200 2 жыл бұрын
@@vaishalimishra4713 hi I am also facing UNABLE TO locate element from the first opened browser window... Did u get any luck on this
@jayabalvelusamy7068
@jayabalvelusamy7068 3 жыл бұрын
Simple explanation
@priyankatripathi877
@priyankatripathi877 3 жыл бұрын
Hi, Thanks for sharing this video, Actually in my project I need to implement parallel execution for cucumber and having no prior exp in same i am facing difficulty, can you please help me with that if possible?
@m8rix99
@m8rix99 3 жыл бұрын
how to use page object model in parallel tests ? The driver can't be a static object ? I just wanted to write a click function to use across the framework . Thank you for this tutorial
@sumanthvas9
@sumanthvas9 4 жыл бұрын
I have a query here .. when you are running the project with maven build, how pom.xml is knowing from where to select RunTest class ?
@tangeokgeok9096
@tangeokgeok9096 4 жыл бұрын
i have a query too, when the maven build is sucessful, it does not load the browser. any idea how to overcome this issue?
@priya23123
@priya23123 9 ай бұрын
I have special task where features will be kept in separate folders and we need to execute that folders parallel but features inside sequential
@happyhuman9625
@happyhuman9625 3 жыл бұрын
Loved the explanation sir, How to proceed if we should do a single login and perform multiple test cases....Suggestions will be very helpful sir..Thanks in advance
@Biswamber_Khandei
@Biswamber_Khandei 2 жыл бұрын
Create a separate method for login and use background keyword l
@user-ef1og4lj2l
@user-ef1og4lj2l 9 ай бұрын
It is not taking p parallel execution with surefire plugin. Can someone tell which version of the plugin does the needful?
@swatishreemohanty7979
@swatishreemohanty7979 3 жыл бұрын
Hi Sir, I have gone through the same step in video but parallel execution is not happening .it is taking sequential
@victorious_2230
@victorious_2230 Жыл бұрын
But at last it launched 4 browsers,how to controll browser launch only two?
@abhilash6200
@abhilash6200 2 жыл бұрын
Hi when I was running parallel execution elements are not being indentified and throws error how to overcome this
@manikantan2457
@manikantan2457 4 жыл бұрын
Hi sir Kindly make a video on Parallel Testing for Feature Files based on Tags for BDD Framework with Appium..
@svenv32
@svenv32 2 жыл бұрын
how do you do this for appium java mobile automation ?
@obuleshqa319
@obuleshqa319 3 жыл бұрын
@automation Fraternity: I have query like, we have feature1, feature2 folders, In two folders we have feature files. So how to execute feature1 files in one browser and feature2 files in another browser parallel.
@VermaAman
@VermaAman 3 жыл бұрын
You need to pass a parameter and in the before function you can implement this functionality
@pravinrasal4431
@pravinrasal4431 2 жыл бұрын
Hello, can you please let me know how I can do it using gradle. Can you send it create other video using gradle.
@shreedeevi2800
@shreedeevi2800 2 жыл бұрын
Hi sir, can you tell how to execute first or last or specific n no. Of feature files. Like if I have 10 feature files and I want to execute 6 out of them. How can I do that
@ssarra99
@ssarra99 Жыл бұрын
Use tags in feature files
@kalpeshahirrao7611
@kalpeshahirrao7611 2 жыл бұрын
hello , I am using the below code under surefire plugin and my CPU is having 4 cores 2 false I have 3 feature files and in total 7 scenarios, when I am running the test it is opening 7 browser instances instead of 2 Can anyone help to understand how this works?
@longnguyenvan1125
@longnguyenvan1125 2 жыл бұрын
threadCount = 2 means it will run all features, in 2 parallel threads. It is not scenario number or file features.
@anjudasvs9329
@anjudasvs9329 Жыл бұрын
Thread control not fixed
@dibakardey6097
@dibakardey6097 4 жыл бұрын
is it possible to execute tags in parallel
@automationfraternity7332
@automationfraternity7332 4 жыл бұрын
Cucumber relies on Maven fail safe/ Sire fire to execute tests in parallel and that to feature file parallel execution is possible. tags can be used to filter out what needs to be executed; irrespective of parallel or sequential.
@user-yb2fc1ur6g
@user-yb2fc1ur6g 3 жыл бұрын
Its not executing in parallel mode when i am running features from command line using mvn test ..its is executing in parallel mode successfully when I am running from RunTest.java class....I have added the surefire plugin as below ....pls let me know is there anything need to be added... org.apache.maven.plugins maven-surefire-plugin 3.0.0-M5 methods true 10 false
@pragyAnsh4ever
@pragyAnsh4ever Жыл бұрын
Can we not do this using testNG? running feature files in parallel?
@automationfraternity7332
@automationfraternity7332 2 ай бұрын
Check the new series here. kzbin.info/aero/PLBiGKr76xSBCM6bZaddB-ieRYQAStN1yM github.com/akashdktyagi/test-automation-project-amazon-10may2024.git
@vasundharaprakashreddy2740
@vasundharaprakashreddy2740 4 жыл бұрын
Hi sir, can u pls provide git link
@VermaAman
@VermaAman 3 жыл бұрын
github.com/akashdktyagi/AutoFratCommonLib
@user-ff3vy3wb5v
@user-ff3vy3wb5v 5 ай бұрын
My build is success but it's not open any browser.. plshelp
@automationfraternity7332
@automationfraternity7332 2 ай бұрын
Check the new series here. kzbin.info/aero/PLBiGKr76xSBCM6bZaddB-ieRYQAStN1yM github.com/akashdktyagi/test-automation-project-amazon-10may2024.git
@varnitachaudhari4144
@varnitachaudhari4144 3 жыл бұрын
Hi Sir, I have gone through the same step in video but parallel execution is not happening .it is taking sequential
@varnitachaudhari4144
@varnitachaudhari4144 3 жыл бұрын
Got a solution Sir thanks.... there were some version
@WarSnipeX
@WarSnipeX 3 жыл бұрын
@@varnitachaudhari4144 what changes you made i am also facing same issue
@martinspies2695
@martinspies2695 3 жыл бұрын
@@varnitachaudhari4144 could you explain which changes you made? I'm facing the same issue
@DeepeshNagpal
@DeepeshNagpal 3 жыл бұрын
@@martinspies2695 I suggest you to run it through maven test. It worked for me.
Parallel testing in Cucumber step by step
26:08
Specialize Automation
Рет қаралды 38 М.
Amazing weight loss transformation !! 😱😱
00:24
Tibo InShape
Рет қаралды 63 МЛН
Задержи дыхание дольше всех!
00:42
Аришнев
Рет қаралды 3,7 МЛН
Selenium Cucumber Java BDD Framework 5 - Parameterization & Data Driven Testing
16:23
You are using useFetch WRONG! (I hope you don't)
11:14
Alexander Lichter
Рет қаралды 23 М.
Rerun Failed Test/Scenario In Cucumber Automatically
7:59
Robotic Pro - Niraj
Рет қаралды 19 М.
Why didn't the Angular team just use RxJS instead of Signals?
8:15
Joshua Morony
Рет қаралды 90 М.
#8 - Hooks in #Cucumber (Before/After Hooks in Cucumber)
19:05
Naveen AutomationLabs
Рет қаралды 58 М.
Selenium Cucumber Java BDD Framework 12 | How To Create HTML Reports
17:39
Automation Step by Step
Рет қаралды 77 М.