Categories





03-IDE Installation

Now that we have the system environment setup, we need to install an IDE and configure it by adding some libraries that we’ll need.

We will be installing the following in this section:

  • IntelliJ IDEA
  • Maven

Step 1. Although you can use Eclipse as the IDE of choice, I will be using IntelliJ IDEA. You can download and install IntelliJ IDEA from the JetBrains website here.

Step 2. Once you’ve installed and launched the IDE, you will be presented with the following dialog.

Step 3. Click the link “Create New Project” to begin the new project wizard.

Step 4. Once the “New Project” dialog is displayed, click the “Maven” project category.

Step 5. Next, verify that the correct “Project SDK” is selected to the java version of your choosing.

Step 6. Enable the checkbox next to “Create from archetype”.

Step 7. Select the following archetype from the list: org.apache.maven.archetypes:maven-archetype-quickstart

Step 8. Click the “Next” button.

Step 9. Enter a “GroupId” that will identify your project across all other projects. It is the base java class package that will be used for building the framework.

Step 10. Enter an “ArtifactId” that names the project that you’re currently working on.

Step 11. Nothing to enter here. Simply review and accept the settings on how Maven will organize your project. Click next.

Step 12. One last review of the project name. Confirm the name and location of the project by clicking on the finish button.

Step 13. Once your project is created. Maven and IntelliJ will download whatever dependencies the project needs. In addition, Maven creates a file structure that makes it easy to begin your automation. One thing to note, you will want to click on the “Enable Auto-Import” so that IntelliJ and Maven can automatically download any dependencies that have been defined in your project.

Step 14. In the following tutorial, we will begin to look at Maven’s pom.xml file. We will need to alter it a bit so that we can work in TestNG

instead of JUnit.

Next Page: 04-What is the pom.xml?