Q1) What softwares we need to have for Selenium learning setup?
Selenium can be written in one of the popular langugaes like Java, C#, Python, Js, Ruby ... However, here is the list of the software that you may need to have Selenium-Java learning.
- Base : JDK 1.8 or above
- IDE : Eclipse / IntelliJ / VSCode
- Jar Files : Selenium 4.x, TestNg 7.x, Apache POI 5.x, Cucumber 7.x, Extent 5.x
- Plugins : TestNG, Cucumber
Q2) What is minimum configuration should I have to have best learning?
It is nice to have a laptop or desktop with i5 or above with 8 GB RAM for smoother learning. However, it is okay to have i3 system with the minimum of 4 GB RAM and lesser than would not be the best fit for learning.
Q3) Why Java 8 is mandatory?
Selenium 4.x have features built based on Java 8; hence to use latest Selenium source, we need to have minimum Java 8 or you can have the latest Java versions as well. Please note that you can have multiple JDK in your machine; however, it is important to set path with the Java 8 or latest of your preference.
Q4) Is Eclipse mandatory? What other IDE is good?
Eclipse is preferred and it is the best IDE for Java development and it is the opensource IDE with so many plugins compared to other tools. TestLeaf recommends you to use Eclipse during learning; however, you can use other IDE of your choice.
Q5) What type of project to create and why?
Creating Maven project is preferred than other type of projects. The common reasons :-
- a) It is easy to manage software dependencies with new versions
- b) Most used project type in Java project world
- c) Preferred for interview experience too
Q6) What is Maven?
Maven is a project management tool that is based on POM (project object model). It is used for building
Java development or testing projects with dependencies and documentations.
Major Benefits:
- a) It adds all necessary jars to project as per dependencies mentioned in pom.xml file.
- b) It creates the standard project structure.
- c) It makes automation project easy to build.
Q7) What dependencies mean?
Dependencies are the softwares (Jar files) required for the project for test automation development. Maven
helps us to download dependencies, which refers to the libraries or JAR files. For example, when you like to
change the selenium version from 3.x to 4.x, you can go and change in POM.xml and it gets downloaded
automatically and get added to your project; whereas in Java (only) projects, you need to download manually
and attach them.
Specially in the context where your customers or manual testing team do not know which software versions to
use and where to download from, Maven dependencies can be handy.
Q8) Explain difference between Java and Maven Project?
In Java (only) Project, if you want to work on any software (like Selenium or TestNG) then you have to associate those jar files and associate/configure those jar files to your project manually, whereas in Maven project provide the dependency in POM file and it downloads, add them automatically to your project. It is simple and easy to manage !
Also you can create shippable / executable Selenium Project testing jar files with all your testcases written for your customers or your internal teams.
Q9) Explain about each dependencies?
- Selenium WebDriver - The browser automation framework
- WebdriverManager - The native browser driver management library
- TestNG - The test execution framework
- Cucumber - The Behaviourial driven development framework
- Apache POI - The library for reading MS Office like excel
- Extent Reports - The library for HTML reporting
Q10) Should I use the software only given by you or can I download myself?
It is okay to download yourself but you may have look out for all compatible software based on your OS, architecture and version. It is absolutely easy and one place to download and make it to work from our software repository.
Q11) How to handle Maven errors?
The maven errors can be of different types. Firstly, read the error messages and based on the error, go through our documentation to resolve. However, the most common error message when maven is setup is to due to the incomplete download and that can be resolved by maven force update and that will initiate re-download of the maven project and dependencies. You can see the downloaded files under .m2 folder in your machine.
Q12) I do have only Windows 7 or 2 GB RAM, how do we manage?
Managing to have Java, Eclipse and Selenium in lower capacity machine is very challenging. We recommend you to talk to your mentor and ask for advise / recommendations.
Q13) I hold office laptop and does not support downloads. How can I?
Except JDK, rest of the softwares are just downloaded not to be installed. Most of the office laptops, have java pre installed. So you should be fine in your office machine.
However, if the maven downloads are failing due to firewall settings in your office machine, then you can download the maven dependencies shared from drive and copy to your .m2 folder to make it work.
Q14) If I do not see Java installed, how do I manage?
First, confirm that your java installed in your machine by looking at the directory based on your OS. Please follow this document for more: https://www.baeldung.com/java-check-is-installed
If the java is not installed, go ahead and download JDK 1.8 or above and complete the installation. Even after installation, if java not found in terminal, then follow the instructions to setup the environment variable using this doc: https://www.baeldung.com/java-home-on-windows-7-8-10-mac-os-x-linux
Q15) I have installed Java later versions, is that okay?
It is okay to have any Java version above Java 8 (1.8).
Q16) I have installed Java but not recognized. What should I do?
If java is installed but not found in terminal, then follow the instructions to setup the environment variable for your machine : https://www.baeldung.com/java-home-on-windows-7-8-10-mac-os-x-linux
Q17) I have errors in pom.xml. How should I handle?
The maven errors can be of different types. Firstly, read the error messages and based on the error, go through our documentation to resolve. However, the most common error message when maven is setup is to due to the incomplete download and that can be resolved by maven force update and that will initiate re-download of the maven project and dependencies. You can see the downloaded files under .m2 folder in your machine.
Q18) I use MAC / Linux, how should I setup the software?
Refer the documentation specific to MAC/Linux and it will help you to setup the required software in less than 60 minutes at max.
Q19) There are warnings after downloading the maven dependencies. What should I do?
The warnings are absolutely okay to live with for now. It will be detailed in the live classes.
Q20) How to know that my required software installation is complete?
Do the following check and confirm
1) Eclipse launches fine
2) Maven Project that you created has no errors
3) Maven dependencies are available on eclipse left panel
If all 3 are good, then you are done !