-->

How to Install and Configure SonarQube for Automation Testing

How to Install and Configure SonarQube for Automation Testing

SonarQube tool is one of the best code coverage analyzer in 2022. But here is the problem how to install and configure it. Sonar Qube installation is not much difficult but you have to take right steps during configuration.

In this article you will learn how to properly install SonarQube and than How to do a testing of a python/java project. So let’s start.

How to Install Sonar Qube

Step 1: Go to Google and search for SonarQube, the first website will be the official website and download SonarQube from there.

Step 2: Now a zip file will start downloading, after that go to Google again and search for ‘Sonar Scanner cli’. Open the first website and click on download. Again a zip file will be downloaded.

Step 3: The next step is go to Downloads and find these 2 folders which have been downloaded. 1) SonarQube and 2) Sonar Scanner. Extract both folders

Step 4: Now open SonarScanner folder and go to bin directory. Copy the full path like: C:\Users\Downloads\sonar-scanner-cli-4.6.2.2472-windows\sonar-scanner-4.6.2.2472-windows\bin

Step 5: The next step is to add this path in Environment Variable. For this purpose, go to your system control panel or search from search box, “Environment Variable”.

Step 6: Click on edit and paste the copied path of SonarScanner. Click on apply and go back.

Step 7: Now we need to install Java in our system, to do that go to Google and search for JDK Kit 11. Download it and install it after downloading.

Read AlsoTop Technology Trands

Step 8: Open Java folder and go to bin directory like: C:\Program Files\Java\jdk-17.0.1\bin

Step 9: Copy the full path and go to Environment variable and add there. Same as SonarScanner.

Step 10: Now Java and SonarScanner both are installed successfully. Open sonarQube folder go to Bin directory like (C:\Users\Downloads\sonarqube-9.1.0.47736\sonarqube-9.1.0.47736\bin\windows-x86-64) and click on Windows and open startsonar.bat file

Step 11: Command prompt will be open and SonarQube server will be start wait for server response and then go to Google and type: localhost:9000 and hit enter

Step 12. Now SonarQube server login page will be open and enter admin as user and admin as password and click on login

Step 13: Finally SonarQube Dashboard will be open for testing.

If you want to learn How to do automation testing using SonarQube than comment below, I will upload another detailed article. And don’t forget to share informative content.

SonarQube


Post a Comment

0 Comments