Gear Up for Test automation in Ubuntu

Reading Time: 3 minutes

This blog is all about Gear Up for Test automation in Ubuntu. As this will help you in machine setup for automation.

Prerequisites

  • An Ubuntu 20.04 VPS (we’ll be using our SSD 2 VPS plan)
  • Access to the root user account (or access to an admin account with root privileges)

How to download and install Java/JDK on Ubuntu using the deb package?

  • Scroll down to the page to download JDK package for Ubuntu. Choose the .deb package for Linux x64 and download.

How to configure Java on your system?

  • Check if Java is already installed in command prompt
java -version
  • Go to the location where we have downloaded the java files. Copy the path and paste in the terminal. Now type the command cd JavaFileLocation
  • Type the below command to install the package.
sudo dpkg –i packagename
  • After the installation has been finished. Run the commands given below to configure Java 12.0.1 as the default on Ubuntu. The commands below configure Ubuntu to use Java alternatives.
sudo update-alternatives –config java
  • The below command should get Java installed and configured.
sudo update-alternatives –install /usr/bin/java java /usr/lib/jvm/jdk-14.0.1/bin/java 1
  • Check if Java has been installed or not.
javac –version

How to set Java Environment Variables?

  • We have to set the Java environment variables. We have to find the location where java has been installed. Type the below command in terminal.
sudo update-alternatives –config java
  • Now we have to go to the environment variable path.
sudo gedit /etc/environment
  • Set JAVA_HOME by copying the above path.
  • Check JAVA_HOME is set

Congratulations! You’ve just successfully installed Java/JDK 14.0.1 on Ubuntu 18.04.

How to install Intellij in Ubuntu machine?

  • We have to install Intellij
https://www.jetbrains.com/help/idea/installation-guide.html
  • Download the community version
https://www.jetbrains.com/idea/download/#section=linux
  • In the terminal find Intellij.
snap find “intellij”
  • Install Intellij community version
sudo snap install intellij-idea-community –classic
  • We can check after installation.

IntelliJ IDEA has installed successfully, we can access it from the Application Manager.

Congratulations!! You are ready to start automation testing 

References:

https://ubuntu.com/tutorials/install-jre#1-overview

https://www.jetbrains.com/help/idea/installation-guide.html

Written by 

I work with Knoldus and have experience of 8+ years in quality assurance I have good experience on SeleniumWebdriver(C#), Selenium IDE, Nightwatch,Appium, Jira, TFS, ZAP, Fiddler, Jmeter, Jenkins, Selenium Webdriver. I am also ITIL certified.

Discover more from Knoldus Blogs

Subscribe now to keep reading and get access to the full archive.

Continue reading