Eclipse set-up for Automation

Ravi Prakash
3 min readJun 17, 2022

Steps to set-up Automation-framework

1. Download eclipse and Java.

Eclipse : https://www.eclipse.org/downloads/

Java : https://www.oracle.com/java/technologies/downloads/

2. Install eclipse and java in your PC

3. To verify Java is install or not :

3.1. Open command prompt and type ‘java -version’ and then press ‘Enter’

4. To verify eclipse is install and ready to run java file or not

4.1. Open Eclipse. Welcome screen should display.

Eclipse welcome screen.

4.2. Close ‘Welcome’ tab in eclipse landed on this screen. This is How Eclipse look like.

4.3. To create a new Java project : Tap on ‘Create a Java project’ link on eclipse. Then, the pop up will display. Enter the project name. (For Example Demo ). Before tap on finish button make sure Module ‘Create module-info.java file’ checkboxes are unchecked.

4.4. To Create a java class in the Demo project : Tap on Demo repo (perform left click operation on mouse) , Tap on ‘New’ button, Tap on ‘Class’ button.

4.5. Here Java class name is given as ‘Test’. and, Tap on ‘Finish’ button.

4.6. This is How the Java class look like in the Eclipse

4.7. We’re going to write main() in the Test.java file in Demo Java project. Then, print for ‘Hello’. Save the file and run the project.

5. Way to switch workspace in eclipse.

5.1. Tap on ‘File’ at top left corner of the screen. Scroll down till ‘Switch Workspace’. Tap on ‘Switch Workspace’. For new : Tap on ‘others’.

5.2. Write any name for your workspace then Tap on Launch button

5.3. To Import a project : Tap on import project and choose the following option in our case it’s Maven

5.4. Select the ‘Existing Maven Projects’ from the Maven drop down and then Tap on next.

5.5. Here, We have to browse the repo where our framework is there.

5.6. For example, I’ve browse the existing repo. Once, you browse the repo cross-check the /pom.xml file is shown like below or not. Then, Tap on finish. Here, we can add project(S) to working set also but it’s not a mandatory

5.7. This is how it’ll look like.

“Thanks for reading this article! Leave a comment below if you have any questions.”

— Ravi Prakash

--

--