Selenium Framework Tutorial #5 - Move Common Details to Base Class

แชร์
ฝัง
  • เผยแพร่เมื่อ 16 ม.ค. 2022
  • Get all my courses for USD 5.99/Month - bit.ly/all-courses-subscription
    In this Selenium Framework Tutorial, we will learn how can we move common details to base class of test automation framework.
    👉 FULL PLAYLIST - Selenium with Java: bit.ly/selenium-webdriver-tut...
    👉 More Training's at: training.rcvacademy.com
    🌟 Please hit LIKE ❤️, SHARE, and SUBSCRIBE for more AMAZING courses:
    🔔 SUBSCRIBE to CHANNEL | Click the link to Subscribe: bit.ly/2YGU6JM
    🌟 TEST AUTOMATION COURSES 🌟
    👉 Selenium with Java: bit.ly/selenium-webdriver-tut...
    👉 Selenium with Python: bit.ly/SeleniumPythonTutorial
    👉 Robot Framework Automation: bit.ly/robot-framework-tutorial
    👉 TestNG Tutorial: bit.ly/testng-tutorial
    👉 PyTest Tutorial: bit.ly/PyTest-Tutorial
    👉 Jenkins Tutorial: bit.ly/jenkins-tutorials
    👉 Git and GitHub Tutorial: bit.ly/git-and-github-tutorial
    👉 Python Logging Tutorial: bit.ly/python-logging-tutorial
    👉 Selenium XPATH Tutorial: bit.ly/selenium-xpath-tutorial
    👉 CSS Selectors Tutorial: bit.ly/css-selectors-tutorial
    👉 JSONPath Tutorial: bit.ly/2sIZIFG
    👉 Python Behave Tutorial: bit.ly/python-behave-tutorial
    👉 Cucumber Selenium Tutorial: bit.ly/cucumber-selenium-tutorial
    🌟 MANUAL TESTING AND ISTQB COURSES 🌟
    👉 Manual Testing Full Course: bit.ly/SoftwareTestingTutorial
    👉 ISTQB Agile Tester Course: bit.ly/istqb-agile-tester-cert...
    👉 ISTQB Foundation Level Course: bit.ly/istqb-foundation-level-...
    🌟 SOFTWARE TESTING MOCK INTERVIEWS 🌟
    👉 bit.ly/software-testing-mock-...
    🌟 SOFTWARE TESTING INTERVIEW QUESTIONS AND ANSWERS 🌟
    👉 bit.ly/software-testing-inter...
    🌟 RESUME AND CAREER TIPS 🌟
    👉 Interview Prep Tips: bit.ly/interview-and-resume-tips
    👉 Career Tips: bit.ly/software-testing-caree...
    🌟 API TESTING COURSES 🌟
    👉 SoapUI Tutorial: bit.ly/Sopui-tutorial
    👉 Postman Tutorial: bit.ly/2PBbhI7
    👉 Katalon API Testing: bit.ly/Katalon-API-Testing-Tu...
    🌟 PROGRAMMING COURSES 🌟
    👉 Java for Testers: bit.ly/2F1iL1B
    👉 Python for testers: bit.ly/python-for-testers
    👉 Python Basics: bit.ly/python-programming-tuto...
    🌟 TEST MANAGEMENT TOOLS 🌟
    👉 TestLink Tutorial: bit.ly/TestLink-Tutorial
    👉 TestRail Tutorial: bit.ly/testrail-tutorial
    👉 PractiTest Tutorial: bit.ly/practitest-tutorial
    👉 TestLodge Tutorial: bit.ly/testlodge-tutorial
    🌟 AGILE TESTING TOOLS 🌟
    👉 Zephyr for Jira: bit.ly/zephyr-for-jira-tutorials
    👉 Zephyr for Jira: bit.ly/learn-zephyr-for-jira
    🌟 ATLASSIAN JIRA COURSES 🌟
    👉 Jira Beginner Tutorial: bit.ly/jira-beginner-tutorial
    👉 Jira Workflow Tutorial: bit.ly/2EzKOEB
    👉 Jira Cloud Tutorial: bit.ly/Jira-Cloud-Tutorial-fo...
    👉 Jira Administration Tutorial: bit.ly/36MPPFR
    👉 Jira Intermediate Tutorial: bit.ly/Atlassian-JIRA-tutorials
    👉 Jira Essentials Training: bit.ly/jira-tutorials
    🌟 AGILE PROJECT MANAGEMENT COURSES 🌟
    👉 Confluence Tutorial: bit.ly/Confluence-Tutorial
    👉 Jira Work Management: bit.ly/jira-work-management
    👉 Jira Roadmap Tutorial: bit.ly/jira-roadmaps-tutorial
    🌟 AGILE BASICS COURSE 🌟
    👉 Agile Tutorials: bit.ly/agile-tutorials
    👉 All Playlists of SoftwareTestingMentor Channel: / softwaretestingmentor
    👉 All Playlists of RCV Academy Channel: / @rcvacademy
    🌟 FOLLOW US ON TWITTER 🌟
    / rcvacademy
    / swtmentor
    / mrmverma
    🌟 LIKE US ON FACEBOOK 🌟
    / softwaretestingmentor
    / rcvacademy47
    🌟 OUR TUTORIAL WEBSITES 🌟
    www.softwaretestingmentor.com
    www.rcvacademy.com
    🌟 GET MY TRAININGS ON UDEMY 🌟
    www.udemy.com/user/manish68/
    ✨ Tags ✨
    selenium framework,selenium webdriver,selenium webdriver tutorial,selenium framework from scratch,selenium framework tutorial,selenium framework tutorial for beginners,selenium framework using java,selenium framework for beginners,test automation selenium,selenium base class example,selenium base class,selenium base class java,selenium base test class,base class selenium java,base class selenium,base class creation in selenium
    ✨ Hashtags ✨
    #SeleniumTutorial #SeleniumJavaFramework #SeleniumFramework #Framework #SeleniumWebDriverJava #RcvAcademy #SoftwareTestingMentor
    🌟 Join this channel to support my work 🌟
    / @softwaretestingmentor

ความคิดเห็น • 78

  • @559gajananbavadekar2
    @559gajananbavadekar2 15 วันที่ผ่านมา

    One of the best and relevant content with short duration❤❤.

  • @maheshburud3418
    @maheshburud3418 2 ปีที่แล้ว +1

    This is the way to create great content...!
    Love it 🙏🙏

  • @harichandra1131
    @harichandra1131 2 ปีที่แล้ว +1

    Please continue this series it is very helpful Thank you 😊

  • @rmahideep
    @rmahideep 2 ปีที่แล้ว +1

    Sir waiting for new videos.. Your way of making us learn is so easier to grab. Wonderful.

  • @flowrinnoronha4286
    @flowrinnoronha4286 2 ปีที่แล้ว +1

    Wonderful series. Great work m Loving it

  • @VloggerBubu
    @VloggerBubu ปีที่แล้ว

    i saw a person who was writing framework in selenium in intellij and before he write a code there was cursor writing itself in gray color and this person just was choosing the options. it was amazing

  • @kannanmanoharan6142
    @kannanmanoharan6142 2 ปีที่แล้ว +2

    My framework setup search ends here. Keep posting framework setup related videos. Thank you.

    • @VloggerBubu
      @VloggerBubu ปีที่แล้ว

      i saw a person who was writing framework in selenium in intellij and before he write a code there was cursor writing itself in gray color and this person just was choosing the options. it was amazing

  • @prasadreddy443
    @prasadreddy443 2 ปีที่แล้ว

    Thank you somuch. Very clear and precise content.

  • @saravananmohan4213
    @saravananmohan4213 2 ปีที่แล้ว +1

    Great sir 🤩 looking forward for the next videos

  • @sachinbs2031
    @sachinbs2031 2 ปีที่แล้ว +2

    Initially I was feeling difficulties in frameworks now by seeing your videos I have improved a lot, Thank you for your wonderful teaching sir 😇

    • @softwaretestingmentor
      @softwaretestingmentor  2 ปีที่แล้ว +1

      Glad it was helpful!
      Keep watching for more videos.

    • @VloggerBubu
      @VloggerBubu ปีที่แล้ว

      i saw a person who was writing framework in selenium in intellij and before he write a code there was cursor writing itself in gray color and this person just was choosing the options. it was amazing

  • @kiransingh8239
    @kiransingh8239 2 ปีที่แล้ว

    wonderfull explanantion ,gratitude....

  • @snehaingalkar491
    @snehaingalkar491 2 ปีที่แล้ว

    full series is very helpful. 👍Request you to add some more videos in the series.

  • @user-jz9xe7rt9l
    @user-jz9xe7rt9l ปีที่แล้ว

    Really helpful, everything was explained in very details.

    • @softwaretestingmentor
      @softwaretestingmentor  ปีที่แล้ว +1

      Glad it was helpful!
      Keep watching for more videos and tutorials.

  • @kaleemaftab4971
    @kaleemaftab4971 2 ปีที่แล้ว +1

    Great Work! Keep doing

  • @aakanksha9050
    @aakanksha9050 ปีที่แล้ว +1

    You are Amazing Sir. I am following you since couple of days and this is THE BEST Testing channel I have come across. I salute your hard work and your knowledge!!!! I will definitely join your channel. Just one question , Do you have selenium full course on Udemy , I found 2 course over there but those are different. or Do you provide online classes on any other platform?

  • @shalinirajasekar6478
    @shalinirajasekar6478 7 หลายเดือนก่อน

    Thanks sir it's very easy and useful

  • @MamunRashid-er8yz
    @MamunRashid-er8yz 11 หลายเดือนก่อน

    Super Tutorials 👍 much appreciated

    • @softwaretestingmentor
      @softwaretestingmentor  11 หลายเดือนก่อน

      My pleasure!
      Keep watching and subscribe for more videos and tutorials.

  • @GauravGupta-vo4ii
    @GauravGupta-vo4ii 9 หลายเดือนก่อน

    Awesome so much helpful Thanks.

  • @rkmehta4597
    @rkmehta4597 2 ปีที่แล้ว +2

    Thank you sir it is very helpful for me You can add one thing while writing scripts please just tell which java concept we are using here like hashmap so we can relate script with java

    • @VloggerBubu
      @VloggerBubu ปีที่แล้ว

      i saw a person who was writing framework in selenium in intellij and before he write a code there was cursor writing itself in gray color and this person just was choosing the options. it was amazing

  • @TireshaPiyanandaTipi
    @TireshaPiyanandaTipi ปีที่แล้ว +2

    Hi,
    some are getting null pointer exception when running this code and would you be able to resolve it?

  • @unnatjain4408
    @unnatjain4408 2 ปีที่แล้ว +1

    Hi, can you please give 5 examples of "EACH" of the following (Bug/Defect Severity and Priority):-
    1) High Severity and High Priority
    2) Low Severity and Low Priority
    3) Medium Severity and Medium Priority
    4) Low Severity and High Priority
    5) High Severity and Low Priority ?
    Thank you 😊👍🙏

  • @unnatjain4408
    @unnatjain4408 2 ปีที่แล้ว

    Hi, What could be a good answer to the interview question - What should be done after a Bug is found?
    Can you please make a video on it
    Thank you 😊👍

  • @HOPE98901
    @HOPE98901 ปีที่แล้ว

    Getting null pointer exception, driver is static only as you have, done the same way you have done

  • @MrBikash69
    @MrBikash69 2 ปีที่แล้ว +1

    Sir, This is great session indeed. But. Why I am unable to find TestNG as Run option? It is showing 'Run Configuration' I have TestNG dependency and plug in also, hence i am stuck here. Followed all your steps through the session.

    • @shubhampaliwal9721
      @shubhampaliwal9721 2 ปีที่แล้ว

      Same issue encountered.. Any suggestion to resolve it..?

  • @bhagyalakshmibhagya8212
    @bhagyalakshmibhagya8212 2 ปีที่แล้ว

    Sir in selenium playlist the last vedio for java that is hash tag is that the last lecture for automation tester?or you will post the another topic.please do reply sir

  • @user-fi1xo1ht2j
    @user-fi1xo1ht2j 10 หลายเดือนก่อน

    can you please provide one session for utilities class and also cucumber sample session

  • @rutujaadhav2916
    @rutujaadhav2916 7 หลายเดือนก่อน

    Hello I want to know how to run tests on multiple browsers parallelly for cross browser testing
    Could you please share link if video already exist?

  • @ashishkumarmishra2346
    @ashishkumarmishra2346 2 ปีที่แล้ว

    Can we put this sign code before the test because sign code is required before each test case I guess? What would be the best way?

  • @yogeshganpule2695
    @yogeshganpule2695 ปีที่แล้ว

    Why are wedriver driver , properties are made static in base test .
    Static cannot be called in another package and class right ?
    I need to know why they were made static

  • @Bug_Hunt
    @Bug_Hunt 9 หลายเดือนก่อน

    Can someone help me understand the significance of the statement if(driver==null) ? Because I think at the start of the execution the driver is going to be null anyway?

  • @anishsingh6877
    @anishsingh6877 2 ปีที่แล้ว

    hi sir, i follow all the steps as you shown in the videos but while running he script i am getting error of element is not interactable. please help sir

  • @ravindrasingh8289
    @ravindrasingh8289 8 หลายเดือนก่อน

    Sir, you have created Utility class and again you are doing the same things in base class. why it so ? Can't we call the utility class method in base class ?

  • @pgandrew2410
    @pgandrew2410 7 หลายเดือนก่อน +1

    Hi sir , i have added testng dependencies in pom.xlm . But when try to execute @Test testng anotation Runas testng is showing !!!! What to do...?
    Shows only " Run Configurations..'
    Please help ?

  • @radhasubbu7476
    @radhasubbu7476 2 ปีที่แล้ว

    @Software Testing Mentor
    Why we created ReadPropertyFile.java and load the property file. in previous video?
    In this video we directly loaded the property file into BaseTest.java itself?

    • @user-rq3by4hc2o
      @user-rq3by4hc2o 8 หลายเดือนก่อน

      We do that because we're taking inputs from property file and when we want to use it somewhere we prop.getproperty("name of the key in properties file here")

  • @AbhishekVerma-qf7ll
    @AbhishekVerma-qf7ll 7 หลายเดือนก่อน

    public static WebDriver driver;
    Can anyone explain the code?? Which java concepts are in above line?

  • @Budu_k_Shorts
    @Budu_k_Shorts 2 ปีที่แล้ว

    Sir i am getting null pointer exception..i have written code parallelly with you.. exactly the same thing

    • @brokenheart975
      @brokenheart975 ปีที่แล้ว +1

      the execption error can be solved by eliminating first if statement which has driver==null value in base test class-setup method, and just keep these 2 lines in it
      FileReader fr = new FileReader("C:\\New folder\\eclipse\\framework\\testautomationframework\\src\\test\
      esources\\configfiles\\config.properties");
      prop.load(fr);
      and thn continue with driver==chrome if statement
      It got executed for me, after doing so.

    • @user-xm5zw8rn2g
      @user-xm5zw8rn2g 7 หลายเดือนก่อน

      @@brokenheart975 not working. by eliminating first statement.
      is there any version issue?
      i installed java 20

    • @dhruveshkumarpatel9741
      @dhruveshkumarpatel9741 4 หลายเดือนก่อน

      Change the code as below in Base class, prop = new Properties() is missing in first if block
      if(driver==null)
      {
      fr = new FileReader("C:\\Users\\Dhruv\\IdeaProjects\\AutomationHybrid\\src\\main\
      esources\\configfiles\\config.properties");
      prop = new Properties();
      prop.load(fr);
      }

  • @vinayakgarag5504
    @vinayakgarag5504 2 ปีที่แล้ว +1

    Hai sir I completed all selenium series and testng with help of ur tutorial..but I facing issu when I create the base class as it's urs I try Many time it's showing (Java.lang.nullPointerEcpacation)..how to resolve this on please help me .. others wise it's deficult me move on this serious..plz help me sir

    • @simtarana9988
      @simtarana9988 2 ปีที่แล้ว

      Received the same error, my file reader path was incorrect. Once I had fixed the path, the program executed without any error. e.g. ("C:\\Users\\..\\Documents\\..\\..\\src\\..\\..\\configfiles\\config.properties");

  • @user-kv5gt4rj6r
    @user-kv5gt4rj6r 6 หลายเดือนก่อน

    Hi Sir,
    I am facing the below issue can you please help me to resolve .
    java.lang.NullPointerException: Cannot invoke "org.openqa.selenium.WebDriver.manage()" because "Announcments.BanerCase1.driver" is null
    at Announcments.BanerCase1.LoginTest(BanerCase1.java:14)

  • @user-hq5jb5sw4w
    @user-hq5jb5sw4w 4 หลายเดือนก่อน

    sir fremwork ka or layer base class ka

  • @nagendranfriends3153
    @nagendranfriends3153 2 ปีที่แล้ว

    Please give python testing framework sir please

  • @user-xm5zw8rn2g
    @user-xm5zw8rn2g 7 หลายเดือนก่อน

    getting error - java.lang.NullPointerException: "base.BaseTest.driver" is null

  • @user-wf6lo8yx3u
    @user-wf6lo8yx3u 8 หลายเดือนก่อน

    Sir I am getting NullPointerException pls help

  • @shahzebkhan-lh6yj
    @shahzebkhan-lh6yj 6 หลายเดือนก่อน

    You forgot to mention installing TestNG.

  • @adhinathkudikyal9922
    @adhinathkudikyal9922 ปีที่แล้ว

    Cannot invoke "String.equalsIgnoreCase(String)" because the return value of "java.util.Properties.getProperty(String)" is null
    at base.BaseTest.setUp(BaseTest.java:31) - Getting this issue, How to resolve

  • @testinghub1169
    @testinghub1169 ปีที่แล้ว

    Hi Sir,
    When I am extending the class it is not readings the testcase driver
    Getting testcase.test.driver is null.
    What to do

    • @user-rq3by4hc2o
      @user-rq3by4hc2o 8 หลายเดือนก่อน

      make webdriver as public static

  • @suganthym1438
    @suganthym1438 ปีที่แล้ว

    Hi. why is the driver declared as static?

    • @user-rq3by4hc2o
      @user-rq3by4hc2o 8 หลายเดือนก่อน

      He made driver as static because driver is common for everything and if me makes new class and uses drivers method then it would give error saying that i can't find driver instance..so for that we would have to make webdriver as global in the same class and even if there are multiple classes then we have to do the same thing..instead of deaclaring again and again he made it as public static which would make webdriver as accessible to every using public and static because they would use same Webdriver everywhere...for more information go through "static" keyword explanation..Hope that helps

  • @flowrinnoronha4286
    @flowrinnoronha4286 2 ปีที่แล้ว +1

    I am getting a null pointer exception here

    • @Budu_k_Shorts
      @Budu_k_Shorts 2 ปีที่แล้ว

      Hi I am also getting error , why is this happening ??
      Cannot invoke "org.openqa.selenium.WebDriver.manage()" because "Testcase.MyFirstTest.driver" is null
      at Testcase.MyFirstTest.loginTest(MyFirstTest.java:17)
      this is my error can you help?

    • @TireshaPiyanandaTipi
      @TireshaPiyanandaTipi ปีที่แล้ว

      Same here,,,,

    • @brokenheart975
      @brokenheart975 ปีที่แล้ว +1

      the execption error can be solved by eliminating first if statement which has driver==null value in base test class-setup method, and just keep these 2 lines in it
      FileReader fr = new FileReader("C:\\New folder\\eclipse\\framework\\testautomationframework\\src\\test\
      esources\\configfiles\\config.properties");
      prop.load(fr);
      and thn continue with driver==chrome if statement
      It got executed for me, after doing so.

    • @user-xm5zw8rn2g
      @user-xm5zw8rn2g 7 หลายเดือนก่อน

      yes getting same error.
      Cannot invoke "org.openqa.selenium.WebDriver.findElement(org.openqa.selenium.By)" because "testcase.MyFirstTCFW.driver" is null

  • @praveenraghu3311
    @praveenraghu3311 หลายเดือนก่อน

    Hi i'm getting the below error - Can you please help?
    Exception in thread "main" java.lang.NoSuchFieldError: Class org.testng.CommandLineArgs does not have member field 'java.lang.Integer port'
    at org.testng.remote.RemoteTestNG.main(RemoteTestNG.java:69)

  • @indiatest3155
    @indiatest3155 20 วันที่ผ่านมา

    "Sir, I have implemented the code as per your guidance, but I am still encountering a NullPointerException."
    FAILED CONFIGURATION: @BeforeTest setup
    java.lang.NullPointerException: Cannot invoke "org.openqa.selenium.WebDriver.get(String)" because "base.baseTest.driver" is null

  • @ConociendoDesdeElAire
    @ConociendoDesdeElAire 10 หลายเดือนก่อน

    Does anyone know why it keeps asking for main if I extended from BaseClass?
    "Error: Main method not found in class testcase.TestCase3, please define the main method as:public static void main(String[] args)or a JavaFX application class must extend javafx.application.Application".
    package testcase;
    import org.openqa.selenium.By;
    import org.testng.annotations.Test;
    import base.BaseClass;
    public class TestCase3 extends BaseClass {
    @Test
    public static void LoginTest() {
    driver.findElement(By.cssSelector("#identifierId")).sendKeys("testuser@test.com");
    driver.findElement(By.xpath("//*[@id=\"identifierNext\"]/div/button")).click();
    driver.close();
    }
    }

  • @jayasuryaravichandren2977
    @jayasuryaravichandren2977 ปีที่แล้ว

    Exception in thread "main" java.lang.NullPointerException
    at javamavenframework.Myfirsttest.main(Myfirsttest.java:16)
    this error come what to do//

    • @brokenheart975
      @brokenheart975 ปีที่แล้ว

      the execption error can be solved by eliminating first if statement which has driver==null value in base test class-setup method, and just keep these 2 lines in it
      FileReader fr = new FileReader("C:\\New folder\\eclipse\\framework\\testautomationframework\\src\\test\
      esources\\configfiles\\config.properties");
      prop.load(fr);
      and thn continue with driver==chrome if statement
      It got executed for me, after doing so.