Environment Setup
Setting up the development environment correctly is the first step to unlocking the full potential of Probato, a powerful framework for test automation. This guide details the steps required to configure essential tools like JDK, Maven, and an IDE, ensuring an environment ready for creating and running automated tests.
Install JDK
The Java Development Kit (JDK) is required to compile and run Java code used by Probato. Make sure to install version 11 or higher.
Download JDK
- Access one of the following links to download the JDK:
Warning
Download and install version 11 or higher.
Configure Environment Variables
-
On Windows:
- Open "Edit system environment variables."
- Under System Variables, click New:
- Name:
JAVA_HOME
- Value:
C:\dev\java\jdk-11
- Name:
- Edit the
Path
variable and add:%JAVA_HOME%\bin
-
On Mac/Linux:
- Add the following lines to the
~/.bash_profile
or~/.zshrc
file:
- Add the following lines to the
-
Validate the installation:
Expected output: ๐ JDK installed successfully!
Install Maven
Maven is used to manage project dependencies and automate build processes.
Download and Install
- Visit the official Apache Maven website.
- Download the ZIP file and extract it to
C:\dev\maven
(Windows) or/usr/local/maven
(Mac/Linux).
Configure Environment Variables
-
On Windows:
- Add a new variable:
- Name:
MAVEN_HOME
- Value:
C:\dev\maven
- Name:
- Include
%MAVEN_HOME%\bin
in thePath
variable.
- Add a new variable:
-
On Mac/Linux:
- Add the following lines to the
~/.bash_profile
or~/.zshrc
file:
- Add the following lines to the
-
Validate the installation:
Expected output: ๐ Maven installed successfully!
Choose an IDE
An Integrated Development Environment (IDE) simplifies writing, running, and debugging Java code. Here are some popular options:
IDE | Main Advantage | Recommended For |
---|---|---|
Eclipse | Lightweight and free | Beginners |
IntelliJ | Advanced features and rich plugins | Advanced developers |
VS Code | Modern and extensible | Simple Java projects |
Note
Choose the IDE that best suits your needs. Ensure you install the necessary plugins for Java support.
Final Checklist
Before proceeding to project creation, verify that:
- โ
JDK is installed and configured (
java --version
works). - โ
Maven is installed and configured (
mvn -version
works). - โ IDE is installed and ready to use.
๐ Your environment is set up! You're now ready to create projects with Probato.
Ready to continue?
Head to the next chapter: Project Creation and Configuration.