Showing posts with label Java with Eclipse. Show all posts
Showing posts with label Java with Eclipse. Show all posts

Sunday, August 14, 2022

Environment setup FOR JAVA Automation Testing

Before starting the JAVA basic for automation testing, we need to do first Environment setup for automation testing as below:

  •     JDK (java development kit)
  •     Eclipse IDE
  •     Maven (build/dependency management tool)

follow the instructions as per the environment set up for Java/JDK, Eclipse IDE and Maven

Tools, Versions & URLs:

Java SE Development Kit 8u291

https://www.oracle.com/uk/java/technologies/javase/javase-jdk8-downloads.html 

Eclipse IDE for Java Developers - Version 2020-12 (4.18)

https://www.eclipse.org/downloads/packages/release/2020-12/r 

Apache Maven 3.8.1

https://maven.apache.org/download.cgi

Configure Java:

Environment variable is essentially run third party tool like Maven. 

In order to set the variable, right click on system, go to properties, Advance system settings, Environment variable, New system variable there mention variable name (java_home) and value (jdk path). 

Maven Setup:

Maven is open source tool and developed by Apache. Download the Maven package, extract it. We need to add bin folder with the Maven command and in relation to the path. for that right click on system, go to properties, Advance system settings, Go to environment variable, New variable system, there mention variable name (MVN_Home) and value (apache path) and configure the path. 

Once your Maven setup is done, make sure to close all the open existing command prompt and open the new instance and run the below query in command prompt:

 >mvn -version (provides you the maven and java version version details)

Maven_Project
 >echo %MVN_HOME% (Provides details that it pointing to correct directory)

Eclipse Setup:

Download the eclipse package, extract it and there we are able to see eclipse icon, double click and it will open eclipse.

In Eclipse, in latest version we can see the Maven is inbuild, however if you do not find it then go to google and enter 'maven eclipse plugin' and go to eclipse.org site and there go to download version. Copy the laetst version link and paste it on Eclipse available software pop up screen (include the Maven Integration for Eclipse) and install. In order to check that the Maven installation successful, select New project and there you will see the Maven option.