Software Quality is one of the major factor for Software Delivery

Delivering great software depends on many factors, quality surely being one of the most important ones. Software quality management is key in making sure that the final product meets all requirements and works as expected.

Therefore quality management should start the same day a new project is laid out. Just as important as the development plan, the software quality plan lists quality goals, resources, and the time line for making sure that quality standards are met.

One critical part of the quality plan is defining the set of test cases to measure quality and confirm that all requirements are covered. Depending on the size of the project this can range from a few dozen to hundreds if not thousands of test cases.

Sonar is one of the good Software Code Quality management tool to help developer to identify the Root causes and loop holes in the software code

How to Install and Configure Sonar Software Quality Control Tool:

Prerequisite :

1] Java JDK 8 and Above

2] Sonar Package

3] Apache Maven

Database :

CREATE DATABASE sonar CHARACTER SET utf8 COLLATE utf8_general_ci;
CREATE USER ‘sonar’ IDENTIFIED BY ‘sonar’;
GRANT ALL ON sonar.* TO ‘sonar’@’%’ IDENTIFIED BY ‘sonar’;
GRANT ALL ON sonar.* TO ‘sonar’@’localhost’ IDENTIFIED BY ‘sonar’;
FLUSH PRIVILEGES;

Here i am using the MySQL Database,But you can choose any Database,Oracle,H2 DB or Any other databases

Set Java 8 – Java Home Environment Variable :

C:\Program Files\Java\jdk1.7.0_79\bin;

Deploy and Start Sonar Package :

1] C:\Users\eashmru\Documents\Softwares\SonarQube\sonarqube-7.0\bin

2] Execute StartSonar.bat

Open Browser and Enter URL:

http://127.0.0.1:9000/sonar/

OR

http://localhost:9000/sonar/

Login Sonar User Interface:

1] Enter Username : admin

2] Enter Password : admin

3] Generate Unique ID with your credentials

Open Project Directory in Command Prompt where your Project POM.xml file located :

1] Execute this Command

mvn sonar:sonar -Dsonar.host.url=http://127.0.0.1:9000

-Dsonar.login=662bb2c970e63b13a08f2386349876eae8688acf

2] Else Execute this Command as Default

mvn clean install sonar:sonar

View Project Code Quality:

Now you can view all Quality gateway of code managements

 

 

 

 

 

About ashokabhat

I am a C,C ,JAVA,Adobe Flex,.NET Programmer Currently working as a Software Developer
This entry was posted in Uncategorized. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s