Downloading and Configuring Selenium Webdriver in Eclipse with TestNG plugin installation

Downloading and Configuring Selenium WebDriver in Eclipse

Steps:

    1. To Download Selenium WebDriver jar file  Go to https://www.selenium.dev/downloads/
    2. Now Click on 3.141.59 under the label shown in ImageSelenium Standalone Jar
    3. Now Open Eclipse and Create one Java project
    • Right Click on Left-hand side in Eclipse under Package Explorer like in Imagenew-eclipse-java-project
    • Select NEW|JAVA PROJECT as marked in Imagenew-java-project-in-eclipse
    • Enter the name of Project Here I have mentioned New Project and Click on Finish button project-created-in-eclipse
    • Go to Project Explorer Label and See new project has been created as in Image
    • Now Select your project and Select  NEW|Folder as in Imagecreating-new-foldernew-folder-created
    • Another Window Open Enter the name of Folder and Click on Finish as in Image java-client-location

    • Now go to Location where Java Client  has been downloaded  and Copy the Selenium Server
    • Copy Selenium Server Standalone jar in Lib folder created under the new projectadding-jar-file-to-path
    • Now add this standalone jar file into the path by doing Right Click on selenium-server-standalone-3.141.59.jar – Go to Build path|Add to Build Path as in the image
    • Now you would see a new Label named as Reference Library as in Imageadded-jar-in-build-path
    • By adding selenium-server-standalone-3.141.59.jar, we have configured Webdriver in Eclipse

    Configuring TestNG in Eclipseconfiguring-testng

    1. In Eclipse go to Help|Install New Software 
    2. Enter  http://beust.com/eclipse in the field as displayed in the image below and click on Add Button on the right side of this text field, A pop up will appear, Enter the name TestNG and click on ok button and wait for few second. After this wait, you See TestNg and Select checkbox of  TestNg and then click on Next and Follow the Instruction and finally click on Finish and Refresh Eclipse.beust
    3. Note: In between installation one pop alert will appear before you that will ask your permission to install TestNG since it is not trusted, In this click on the Ok button..wait for the installation of TestNg
    4. The question arises how we know that TestNg has been configured in Eclipse
      Stepstestng-config-test
    • Go to Window | Show View | Other as in Image testngconfig
    • Now Select Java|TestNG|GO testng
    • Finally to see whether Eclipse is configured or not do a final touch Right Click on you Peoject|Run As|TestNg Test as in Image

    Finally, we are done with the configuration of Selenium WebDriver and TestNG In Eclipse.

    Dwarika Dhish Mishra

    My name is Dwarika Dhish Mishra, its just my name and I am trying to bring the worth of my name in to actions and wants to be the solution not the problem. I believe in spreading knowledge and happiness. More over I am fun loving person and like travelling a lot. By nature I am a tester and a solution maker. I believe in the tag line of http://ted.org “Idea worth spreading” . For the same, I have created this blog to bring more and more learning to tester fraternity through day to day learning in professional and personal life. All contents are the part of my learning and so are available for all..So please spread the contents as much as you can at your end so that it could reach to every needful people in testing fraternity. I am pretty happy that more and more people are showing interest to become the part your Abode QA blog and I think this is good sign for us all because more and more content would be before you to read and to cherish. You may write or call me at my Email id: dwarika1987@gmail.com Cell: 9999978609

    You may also like...

    23 Responses

    1. FergatROn says:

      Thank you for posting this step-by-step. I surely needed it. I’m new to Selenium and I was already confused with server vs. RC and through in IntelliJ and Maven and my head spun. I’m back to using a familiar IDE.

      • Most Welcome,
        I am very pleased after hearing your words that This blog has brought some happiness on your face.

        Keep watching and reading the post for new posts.

        • Sagar says:

          Hi Dwarika,
          Thank you very much for such a nice article. It has helped many of us for sure. Please can you now show us how to start structuring Project. I mean
          evn file and how to start writing test cases and how to keep them versatile.

          It would be great help.

          Thanks,
          Sagar

    2. smruthika says:

      Thank you very much for sharing this information

    3. Shekahr says:

      Grate job Dwarika

    4. KishoreKumar Raghavan says:

      Hi iam getting the below error message when i followed the steps
      Network connection problems encountered during search.
      Unable to access “http://beust.com/eclipse”.
      Error parsing site stream. [Premature end of file.]
      Premature end of file.
      Error parsing site stream. [Premature end of file.]
      Premature end of file.

      Please do the needful. Thanks in advance

    5. munni says:

      By adding maven plugin to eclipse nd by mentioning it in pom.xml.It automatically resolves all dependencies

    6. Ash says:

      I am unable to download TestNG can some help me how to download it…i try with the install new software but it does work for me..

    7. renish says:

      which is better testng or junit can u give me some suggestion about both

    8. iamsoftanalyst@yahoo.com says:

      TestNg taking too much time to install…its not getting progress after 37%

    9. Vaibhav S says:

      Hello Dwarika,

      Thanks for the tutorial.
      I am here to ask that how can I put the TestNG plugin manually inside the Eclipse and how can I create an XML file for the TestNG manually as while installing the process, it stuck after 43% and giving me a lot of error messages on console. Need your words for the same.

      Thanks & Cheers,
      Vaibhav S

    10. Vaibhav S says:

      Hello once again,

      Dwarika, I am facing this issue while downloading the plugin.

      ‘File Transport Reader’ has encountered a problem.
      Transfer Exception.

      In an error when I clicked on Details button then I got these things inside it
      Transfer Exception
      Read Time out

    11. Dastagiri says:

      Hi
      I am dastagiri
      can you tel me which jar file i want add it.
      when i wrote this code Workbook w = Workbook.getWorkbook(fi);
      it is chowing getWorkbook(fi) in that part fileinputstream is not identifying
      showing this message.
      can u help me.

    Leave a Reply

    This site uses Akismet to reduce spam. Learn how your comment data is processed.