Selenium + Cucumber + Java + Maven in BDD Framework with Page Object Model - Intellij setup

  Рет қаралды 50,513

Ace Automation Academy

Ace Automation Academy

Күн бұрын

Пікірлер: 91
@aceautomationacademy6926
@aceautomationacademy6926 Жыл бұрын
Thanks for watching this: 🚀🚀🚀 ********************************************************************** This course is easy step by step approach to build a practical Java based Cucumber Selenium framework in Intellij. 00:00:00: listing steps 00:02:22: Installation of Intellij Idea in local machine 00:05:58: Verify java in local machine ( If not there then installation steps) & setting up of system & environment variables 00:15:53: Verify Maven in local machine ( If not there then installation steps) & setting up of system & environment variables 00:25:49: Create a Maven Project and add cucumber dependency 00:33:01: Installation of Cucumber dependency 00:33:22: Add Selenium Web driver dependency 00:37:30: Creating different folders for features, pages, runner, stepdefinition, utility 00:38:55: Create a resource folder for drivers 00:40:07: Adding Chrome web driver in the project 00:47:30: Specifying the location of Chromedriver in the code inside utility 00:49:15: Setting up runner file of cucumber tests 00:55:45: Look at the Sample Application under Test and Test scenarios. 01:00:26: Creating the feature files inside our project 01:06:50: Introduction to BDD (Behaviour Driven) framework 01:09:34: Page Object model concept 01:13:25: Create pages in the project based on page object model 01:27:23: Create Step definitions in the project 01:32:59: Adding asserts to our test 01:36:36: Revisiting our utility folder of browser driver and hooks 01:37:16: Introducing Hooks in cucumber framework and why is it important 01:40:14: Revisiting and updating the Browser driver method 01:44:08: Edit configuration for running the tests under Test Runner 01:45:16: Running the Tests using the Test Runner 01:46:30: Verifying the Automated Cucumber html report 01:47:23: Git hub url where the code repository is hosted Buy me a coffee: www.buymeacoffee.com/aceauto
@khanhsabu9917
@khanhsabu9917 Жыл бұрын
This video helps me a lot. Thank you sir, keep up your good work!
@innaInIT
@innaInIT Жыл бұрын
thank you so much ! its exactly what I need now.
@aceautomationacademy6926
@aceautomationacademy6926 Жыл бұрын
You are welcome!
@innaInIT
@innaInIT Жыл бұрын
@@aceautomationacademy6926 12 tests was Ignored from 18 . where can be mistake?
@aceautomationacademy6926
@aceautomationacademy6926 Жыл бұрын
There could be 2-3 reasons why the tests are getting ingored: one is that the feature statements are not matching with the step definition methods( there could be a typo while entering the details : please find a useful link : stackoverflow.com/questions/58623088/cucumber-test-ignored-error-while-running-runner-in-intellij -@@innaInIT
@aceautomationacademy6926
@aceautomationacademy6926 9 ай бұрын
Hi kindly checkout the latest video on cucumber selenium topic - i am sure it would help you there : kzbin.info/www/bejne/oYHLoX2wodOIitU
@FeelTheNature00
@FeelTheNature00 7 ай бұрын
explained very well and easy to understand thnkyou
@aceautomationacademy6926
@aceautomationacademy6926 7 ай бұрын
Thanks - glad it was helpful !!
@fahadkhan-islamicspiritual7872
@fahadkhan-islamicspiritual7872 Жыл бұрын
Awesome video.
@pushpyadav4726
@pushpyadav4726 10 ай бұрын
Explained very well... 🫡👏👍🙏
@aceautomationacademy6926
@aceautomationacademy6926 9 ай бұрын
Thank you so much 🙂
@sasi11889
@sasi11889 10 ай бұрын
Bro please put one video for specifically for calender or date picker or pass todays date or pass date before /after 15days in diff ways
@Anitha.D
@Anitha.D Жыл бұрын
Thanks a lot for the great explanation 😊
@Npte
@Npte 10 ай бұрын
Please create one for appium too
@aceautomationacademy6926
@aceautomationacademy6926 9 ай бұрын
sure noted - one tutorial on appium coming soon
@vinodkumarai
@vinodkumarai 10 ай бұрын
After selenium 4 we no need to write system .set property for setting up driver path if I'm not wrong
@sandhyareddy1298
@sandhyareddy1298 10 ай бұрын
yes
@aceautomationacademy6926
@aceautomationacademy6926 9 ай бұрын
new video based on selenium 4 is uploaded now: kzbin.info/www/bejne/oYHLoX2wodOIitU
@FeelTheNature00
@FeelTheNature00 7 ай бұрын
as you mention in videos "my students" do you teach ??? I wanna learn
@aceautomationacademy6926
@aceautomationacademy6926 7 ай бұрын
Yes : there are videos on other topics on automation testing in this channel
@sriharim1596
@sriharim1596 10 ай бұрын
Its a great video. I'm very new to Automation; this session really helped me a lot; I followed and did everrything as per the video but used Edge broweser instead of Google Chrome. Once I have run the code the website is not opened due to that I didn't see any action performed by Automation script. But the end I have seen report under Target folder. Please help me to address
@aceautomationacademy6926
@aceautomationacademy6926 9 ай бұрын
Hi Sriharim: kindly checkout the latest video on cucumber selenium topic - i am sure it would help you on the cucumber.class there : kzbin.info/www/bejne/oYHLoX2wodOIitU
@fahadkhan-islamicspiritual7872
@fahadkhan-islamicspiritual7872 Жыл бұрын
Do we need to create given , when, then for all the stepdefinition? I mean let's say login feature have three scenarios Given,-User navigates to the login page catered by basePage @when- user successfully enters the login details catered by SignInpage Then - user should be able to view the product category page catered by product category page.
@aceautomationacademy6926
@aceautomationacademy6926 Жыл бұрын
Hi fahad Yes each feature steps needs a matching step definitions, But idea should be to reuse the step definitions: For e.g there could be 2 scenarios and 6 steps - then common step definitions can be reused, Given: user navigates to login When: enters login details Then: correct product category should be displayed These might require 3 step definitions created. Next scenario Given: User navigates to login When: enters the login details Then: the product title should match expected So this needs to reuse the first two step definitions which was already created in first scenario and create the fourth step definition. Reusability is the key
@fahadkhan-islamicspiritual7872
@fahadkhan-islamicspiritual7872 Жыл бұрын
@@aceautomationacademy6926 that is extremely helpful . Awesome man. Thank you
@aceautomationacademy6926
@aceautomationacademy6926 9 ай бұрын
thanks fahad !!
@4guys4fun
@4guys4fun Жыл бұрын
Thanks for the detailed video. What is the reason you use Cucumber version 7.0.0 instead of the latest version please?
@aceautomationacademy6926
@aceautomationacademy6926 Жыл бұрын
Hi Charu: no there is no specific reason for selection of 7.0.0 ( just that it appeared to be a stable version and not a beta version )
@roshanmaskey3909
@roshanmaskey3909 2 ай бұрын
Problem: I need to run my cucumber .feature file to execute in an order defined by me i.e Login, CustomerCreation and CustomerAuthorization because after creating the customer application generates a Txnid no. and taking as a referene of customer id i have to pass the genearated no. in customer id text field CustomerAuthorization step definition and rather not to run in the default order as alphabetical order which is the folder structure. i tried like @order, @priority and suite level it didnt work none of them .can someone help me ?
@md.yeasin5214
@md.yeasin5214 Жыл бұрын
How can i implement allure report in this project
@aceautomationacademy6926
@aceautomationacademy6926 Жыл бұрын
point noted: md yeasin - sure will come with that request soon
@aceautomationacademy6926
@aceautomationacademy6926 9 ай бұрын
new video based on allure report in BDD framework is uploaded now: kzbin.info/www/bejne/oYHLoX2wodOIitU
@johncanedy8630
@johncanedy8630 11 ай бұрын
Hi Sir, I am getting the error as "Test Ignored" and it is unable to find my step definitions while running the runner file. Can you please help me with this?
@juberkhan786
@juberkhan786 10 ай бұрын
Same here, I have done all the steps as per your video tutorials but still I get error of Test ignored and undefined Scenario and Steps
@aceautomationacademy6926
@aceautomationacademy6926 9 ай бұрын
new video is uploaded which shows regarding the runner file setup and the glue file setup: kzbin.info/www/bejne/oYHLoX2wodOIitU
@ศุภกรรัศมี
@ศุภกรรัศมี 6 ай бұрын
where is the features path are you geting ?
@aceautomationacademy6926
@aceautomationacademy6926 6 ай бұрын
the features path is coming for the gluepath
@gilsonsouza8159
@gilsonsouza8159 Жыл бұрын
I am getting error in 01:30:00 the @Given exact same code: public class BasePage { @Given("^the user is in the home page$"){ public void the_user_is_in_the_home_page() throw Throwable{ } } } error message: annotations are not allowed here Do you know what do I need to do?
@aceautomationacademy6926
@aceautomationacademy6926 Жыл бұрын
Hi Gilson, The provided syntax looks incorrect - there shouldnt be a curly bracket next to annotation. could you change it to the below and the error should go way - try and let me know public class BasePage { @Given("^the user is in the home page$") public void the_user_is_in_the_home_page() throw Throwable{ } }
@aceautomationacademy6926
@aceautomationacademy6926 9 ай бұрын
Hi Gilson: kindly checkout the latest video on cucumber selenium topic - i am sure it would help you there : kzbin.info/www/bejne/oYHLoX2wodOIitU
@DadaKhadarbasha
@DadaKhadarbasha Жыл бұрын
Do you have secession for the extend report and Jenkins?
@aceautomationacademy6926
@aceautomationacademy6926 Жыл бұрын
Hi Dada I will create and share on this soon
@aceautomationacademy6926
@aceautomationacademy6926 Жыл бұрын
Hi Please find the new course based on your request :) kzbin.info/www/bejne/nIi4cnRsjKlqm6Msi=JruaGZ6ABnIYuzGs
@DadaKhadarbasha
@DadaKhadarbasha Жыл бұрын
Thank you
@TheSrirag
@TheSrirag Жыл бұрын
Bro please show the part related to hooks (utility)
@aceautomationacademy6926
@aceautomationacademy6926 Жыл бұрын
Hi Srirag: please proceed to this step: 1:37:44 - hooks part is explained there
@vipintekade6400
@vipintekade6400 8 ай бұрын
Hi i am getting this error do you know how to resolve it java.lang.NoClassDefFoundError: io/cucumber/core/runtime/TypeRegistryConfigurerSupplier ? I tried all possible way but unable ro resolve ?
@jiimrood
@jiimrood Жыл бұрын
Where does the cucumber.api come from?
@jiimrood
@jiimrood Жыл бұрын
Don't bother It is working well with the intellij ultimate!!
@aceautomationacademy6926
@aceautomationacademy6926 Жыл бұрын
Thanks for confirming
@fahadkhan-islamicspiritual7872
@fahadkhan-islamicspiritual7872 Жыл бұрын
Sir I am encountering issues while running the program. Plz help. First of all I want to check that my driver is working fine or not and my code is reaching the correct folders in test runner file? Another issue that i am getting errors that Scenario: Validate user is able to view after login Given user navigates to the login page Java Lang.NullException At pages.HomePage.click_hamburger_menu(HomePage.java:13) At stepdefinition.Basepage.user_navigates_to_login_page(BasePage.java:10) And the error is further down.
@aceautomationacademy6926
@aceautomationacademy6926 9 ай бұрын
Hi Fahad : kindly checkout the latest video on cucumber selenium topic - i am sure it would help you on the cucumber.class there : kzbin.info/www/bejne/oYHLoX2wodOIitU
@fahadkhan-islamicspiritual7872
@fahadkhan-islamicspiritual7872 9 ай бұрын
@@aceautomationacademy6926 thank you so so much. Appreciated
@DeepakHire-d7k
@DeepakHire-d7k Жыл бұрын
How can I add cucumber.json and which data need to enter in this json file
@lalitugale6199
@lalitugale6199 11 ай бұрын
The current glue path points to a source directory in your project. However cucumber looks for glue (i.e. step definitions) on the classpath. By using a package name you can avoid this ambiguity. how to resolve this ??
@aceautomationacademy6926
@aceautomationacademy6926 9 ай бұрын
hi Lalit: glue path has to match the step defnitions and the features including: could check the glue path in this repo: hope it helps. it is based on the latest tutorial: github.com/aceautomationacademy/SeleniumCucumberWebDriverManager
@AaryanRajesh
@AaryanRajesh Жыл бұрын
Hi, i think we don't need to add the drivers. It's taken care of selenium-manager in built.
@aceautomationacademy6926
@aceautomationacademy6926 Жыл бұрын
hi Aaryan - you are right, the selenium web manager driver takes care of the latest driver versions - yes we can take that advisable approach as well.
@aceautomationacademy6926
@aceautomationacademy6926 9 ай бұрын
hi @AaryanRajesh: a new video is uploaded on the web driver manager: kzbin.info/www/bejne/oYHLoX2wodOIitU
@zahidshaik4917
@zahidshaik4917 Жыл бұрын
Can you use Vs code as an IDE??
@aceautomationacademy6926
@aceautomationacademy6926 Жыл бұрын
Hi Zahid, Yes you can you VS code as IDE as well, but VS code is a microsoft IDE and easier to use in the stack where its a .net project or a javascript project. Intellij is used in this example as its a java project and pretty easy to setup. It really depends on the easy of use for an Automation tester.
@dibendumahanty7021
@dibendumahanty7021 Жыл бұрын
Hi, I am using the same version of cucumber java plugin as you but I am getting error while running the case.
@dibendumahanty7021
@dibendumahanty7021 Жыл бұрын
which Intellij community version you are using? mine is 223.8617.56 and cucumber-java plugin version I have installed : 223.7571.123
@aceautomationacademy6926
@aceautomationacademy6926 Жыл бұрын
Hi Diben, what error are you getting, kindly share that as well
@dibendumahanty7021
@dibendumahanty7021 Жыл бұрын
@@aceautomationacademy6926 Hi, I am getting the this error: org.jetbrains.plugins.cucumber.java.run.CucmberTestTreeNodeManager issue
@aceautomationacademy6926
@aceautomationacademy6926 Жыл бұрын
Hi Diben: yes it looks like the issue is related to intellij, generally the version of intellij will be starting with an year: like 2022, thats what is used in this video as well, kindly use that and recheck
@eldrinweb
@eldrinweb Жыл бұрын
Sir The git repo is not available
@aceautomationacademy6926
@aceautomationacademy6926 Жыл бұрын
Hi, the code hosted and shown the video and the link given in the video 01:47:38 is public github repo - I have rechecked. kindly let me know what error are you getting.
@diegoyuri5678
@diegoyuri5678 Жыл бұрын
Speak mate, The code made in the video is not available on github, it must be private, is it possible to make it available?
@aceautomationacademy6926
@aceautomationacademy6926 Жыл бұрын
Hi, the code hosted and shown the video and the link given in the video 01:47:38 is public github repo - I have rechecked. kindly let me know what error are you getting.
@williamdarma
@williamdarma 6 ай бұрын
not sure why, but the hooks not called in my case
@williamdarma
@williamdarma 6 ай бұрын
Nevermind, it's because my hook get the After and Before from junit
@aceautomationacademy6926
@aceautomationacademy6926 5 ай бұрын
cool - thanks
@theknowledgekhabar8127
@theknowledgekhabar8127 9 ай бұрын
hi sir: duration: at 56.16 min : when you run test runner my side shows this "C:\Users\apgchd27.ASIAPACIFIC\IdeaProjects\SeleniumCucumberTest\src\test\java unner\TestRunner.java:3:20 java: package cucumber.api does not exist"
@aceautomationacademy6926
@aceautomationacademy6926 9 ай бұрын
Hi kindly checkout the latest video on cucumber selenium topic - i am sure it would help you on the Test Runner file there : kzbin.info/www/bejne/oYHLoX2wodOIitU
@vipintekade6400
@vipintekade6400 9 ай бұрын
Can you please share github url for this project ?
@aceautomationacademy6926
@aceautomationacademy6926 9 ай бұрын
Hi, the code hosted and shown the video and the link given in the video 01:47:38 is public github repo - I have rechecked. kindly let me know what error are you getting.
@vipintekade6400
@vipintekade6400 9 ай бұрын
@@aceautomationacademy6926 but please copy+paste that link by watching video it's very difficult to type that much url.
@vamsiallagadda6329
@vamsiallagadda6329 7 ай бұрын
Hi Sir Facing Lot of issue with dependency and Getting these error "unable to make field private final java.util.comparator" please Pin the Dependecy
@aceautomationacademy6926
@aceautomationacademy6926 7 ай бұрын
Hi Vamsi: its probably due to: error Your version of Cucumber is not compatible with your version of Java. Either upgrade Cucumber or downgrade Java. cucumber.io/docs/guides/10-minute-tutorial/
@roma1443
@roma1443 9 ай бұрын
Terrible explanation like really 3-4 point from 10
@aceautomationacademy6926
@aceautomationacademy6926 9 ай бұрын
hi Roma: please find the latest vide on this topic: kzbin.info/www/bejne/oYHLoX2wodOIitU
@Bhosriji
@Bhosriji 9 ай бұрын
Unresolved plugin: 'org.apache.maven.plugins:maven-jar-plugin:3.3.0' cucumber project bante hi ye error aya mai phly b try kia then i reinstalled intellij now facing this problem can u help sir
@Alex-sn8gx
@Alex-sn8gx 9 ай бұрын
Bro, @RunWith(Cucumber.class) doesnt work for me
@aceautomationacademy6926
@aceautomationacademy6926 9 ай бұрын
Hi Alex: kindly checkout the latest video on cucumber selenium topic - i am sure it would help you on the cucumber.class there : kzbin.info/www/bejne/oYHLoX2wodOIitU
Java + Cucumber + TestNG +IntelliJ
22:12
Omega Automation Testing
Рет қаралды 46 М.
VIP ACCESS
00:47
Natan por Aí
Рет қаралды 30 МЛН
Mom Hack for Cooking Solo with a Little One! 🍳👶
00:15
5-Minute Crafts HOUSE
Рет қаралды 23 МЛН
How to create selenium, cucumber with Java project in IntelliJ IDEA || Ganesh Jadhav
26:20
Ganesh Jadhav AutomationStudio
Рет қаралды 13 М.
Selenium Cucumber BDD Framework with Java and TestNG - Login Test
33:42
SDET Adda For QA Automation
Рет қаралды 49 М.
Selenium Cucumber Java BDD Framework 6 - Page Object Model | Step by Step
26:34
Automation Step by Step
Рет қаралды 141 М.
Event-Driven Architecture (EDA) vs Request/Response (RR)
12:00
Confluent
Рет қаралды 179 М.
DHH discusses SQLite (and Stoicism)
54:00
Aaron Francis
Рет қаралды 104 М.
Selenium with Cucumber 7.x - Java BDD Framework - Mini Project | Crash Course
46:56
VIP ACCESS
00:47
Natan por Aí
Рет қаралды 30 МЛН