How to install Java and configure the path in System Variables – Selenium

 

How to install Java and configure the path in System Variables – Selenium

 

Selenium web driver :

  • Part of selenium syllabus.
  • To automate functional testing on websites , which pages  are  developed in HTML.
  • Developed by Simon Stewart (SS).
  • Selenium web driver is available in different flavors like java, c#, .net, PHP, Perl, Python, Ruby and java script.
  • Selenium web driver java client is famous because java is platform independent ( Tester can use windows / Linux / Mac computer during testing).
  • Tester can write test scripts ( programs) using selenium web driver  java client in eclipse IDE instead of notepad. ( IDE –> Integrated development environment IDEs are better than editors).

 

Download and launch eclipse IDE :

Manual testing vs Test Automation - Selenium training, Automation, Selenium testing, tutorialskey.com, Automation, Selenium - types of softwares, types of softwares,Eclipse,

From the above diagram we need to install JDK ( java developer kit) first.

Navigation :

Installation:

  • Go to google.com site
  • Enter JDK 8 free download.
  • Click search.
  • Click the first one/ site ( oracle site).
  • Click JDK link w.r.t  OS
  • Select license agreement .
  • Wait until complete download.
  • Copy download and paste in a personal folder.
  • Double click on that download to start installation.
  • Click next until finish .

 

Configuration:

  • IF windows OS ,
  • Click start.
  • Right click on computer .
  • Properties.
  • Advanced system settings.
  • Advanced.
  • Environment variables.
  • Click new in system variables.
  • Enter variable name as “JAVA_HOME.
  • Enter path of JDK as value.
  • Example : c:\program files\ java\ jdk1.8.0_65 .
  • Click ok.
  • Select path variable.
  • Click edit.
  • Add path of JDK +/ bin; at end of existing path value.

Manual testing vs Test Automation - Selenium training, Automation, Selenium testing, tutorialskey.com, Automation, Selenium - types of softwares, types of softwares,Eclipse,JDK path,

  • Close properties window.

After completion of JDK installation and configuration, test automaters can verify java installation completeness.

  • Go to command  prompt (cmd)
  • Change to any directory .
  • In any drive.
  • Enter javac and observe command execution to confirm correctness of JDK installation.

 

In this article we have seen How to install Java and configure the path in System Variables – Selenium . In the next article will see Eclipse download and installation.

 

 

 

 

Leave a Reply

Your email address will not be published. Required fields are marked *