How to Configure and Download SonarQube static Code Analysis Report | Download Sonar Report |

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
so hey guys welcome back so in this lecture I will discuss how you can download your sonar scanner or the sonar execution report on your local system now what do you mean by the sonar scanner report you have scanned your project and you got some errors box on the sonar Cube and that you are seeing on your uh sonar server UI but you want to share the report to your managers your stakeholders and your team that you have done the scanning of this project and you have done the code quality check-in for your project but if you don't have the report then you cannot send the report to your managers as a scanning evidence in your project if you have the report then you can send it to the your managers and you can provide the sonar scanning evidence now how to download and how to set up the reporting part for this on R Cube server so in this video I am going to discuss how you can download this on our Cube report on the Windows machine and after that you can send this report this report I will create in the docs formats and it will have everything whatever you are seeing on your version UI it have the graphs it have everythings how many bugs it is gained all the informations you will have in a very well defined report and that report you can use any scanning evidence for your testing now you have downloaded the sonar Cube Community editions and the developer editions but still you are not able to download the report because the sonar Cube server is not providing the inbuild like you know inbuilt to to generate and download the report on your local system that sonar cube is not taking the headache of this one so what the sonar cube is saying it is saying if you want to download and if you want to add some plugins you do your own from externally so for that we will use the one report plugin that we call as the CNS plugin now what is the CNS report plugin the DNS report plugin will help us to download the report that we created after the scanning of the code using the sonar Cube it will provide the report in a well structured way in the docs formats okay you will see the report and how to download and the use this CNS plugin it is on our server then from where you can download and how you can use with yours on R Cube server as a plugin for the reporting purpose then I will explain the sonar scanner report also how you can explain to your teams your managers the what is the report saying once you have done your code quality checking and your reporting part okay so this is the agenda for this video session and now let me switch to the sonar Cube server so I am using the sonar Cube 9.7 version and I started the sonar Cube server by clicking on the starts on our DOT bet and this is the process is up and running so if I go to the browser you can see I can access the sonar Cube server web UI under my local system and now you can see I have scanned the one project in my last videos I hope you have also done the scanning of your project like this and you can see the report on your sonar Cube web UI like this the box is one vulnerabilities is zero hotspot review code smells is one and coverage duplication and the lines and if you click on this your project and you can relate this in this with your project also so unlike that you will have your project scanning report on your on our Cube UI but I want to download this report I want to send all these informations to my manager or my teams as a scanning evidence but I'm not seeing any plugins and any way by which I can download this report and send it over to them the teams and how we can do that this is all the project information is there and this is the one sample project which I scan in my previous videos okay now for that you can go to the Google okay once you are on the Google so you can type here see NS report plugin okay this is the sonar Cube CNS report plugin you can type this one so an archive CNS report plugin and after that you will see the GitHub is there the CNS report live so now CNS report generate analysis so you can click on the first link this is from the GitHub and on our CNS report under you can see this one as CNS report is there and if you can scroll down you can see all the informations are there in the features which one is reported on R Cube this supported this latest version so it is having the 8.9 X LTS version okay and this is Standalone plugin which is supported only in the 4.0 Standalone plugin and now this is the informations about the CNS report then again you can go back and here you can see ens are it's on R Cube CNS jar report plugin so here you can see the releases are there you use you can see this releases are there you click on this link so I will provide both of the link for your reference in the description so you can download the report over there now here the sonar CNS report 4.1.3 this is the sonar report and this is a 4.1.2 and this is 4.1.1 so you need to download the latest one so here we have the sonar CNS report 4.1.3 dot jar is there so you can download this jar file as a reference okay once you have the jar in your systems you can see I have already downloaded this jar files known as CNS report so you copy this jar file then go to your sonar Cube folder and inside the sonarq folder you have the extensions folder is there go to extensions folder then you have the plugin folder is there now here you can paste this jar file right now come back to your sonar Cube web server so this is also an RQ web server if you refresh this one you cannot have the report options here now how I can get the CNS report Azure options to download this report so for that first you refresh the page and after that you can go to the administrator go to the system and under the systems you need to restart the server so you click on restart the server and here it is going to restart so you can see the compute engine is stopped and now this is going to restart the systems it is cleaning and creating the temporary directory again okay so now let's see why in the sonar Cube server is going to restart this on our Cube restart is in progress ongoing background tasks are completing all right so now this on our cube is operational so now you can login to this on our web UI so this is the sonarq web server and you need to re-log into this one so now you can see the one option is there more options earlier it was not coming and now we have the more option next to the administrations now click on this more options and you can see the CNS report is there now you can see generate a report so here you can see the project so you can select the project name I have the two projects so I will select the BTD cucumber project and the branch you can select for which branch you have scanned so as of now we have scanned the master Branch so I am selecting this master branch and report I want in the English format and this is the administrator and you can provide the name of the administrator or the user which logged into the sonarq web server now you need to check all these check boxes okay now here you have seen this generator so you click on the generate button now you can see here it is going to generate the report for you okay now you can see on your local systems the chip folder is downloaded so you can go to the G folder this is the chip folder so test sonar demo we will have the report folder here you need to unzip this folder and after that you have the folder here this is the date and this is your project name whatever project key you have provided and inside this project you can see this is the MD dot CSV XLS and this is a docs so this is the analysis report in the document format so you can double click on this document now you can see the complete report in the document folder so first it will give you your project name this is the version 0.0 snapshot and this is the code analysis report and this is by administrator and if you can change the name that time so you the name will come here and this is the date of the report and this is the content so you can see the content introduction configuration analysis status Matrix quality gate status test retail technical depth Matrix volume issues charts security hotspot everything you will see in this report so this document contain the result of code analysis of this one introduction and this is a configurations part and this is the quality gate if you have created any quality gate for your project and here you can see the synthesis report so analysis report status okay and this is the quality gate status report this is a past in The Matrix is there test if you have executed and run the test information will come here detailed technical report it took around the five minutes to scanning your project as the code scanning so total minute is there and all the project you will see in the project name is there's a matrix range is the Matrix range also there the language XML format 174 and this is a total volume 174 the code okay and if you scroll down you can see the charts reports or number of issued by the severity so you can say fifty percent and the fifty percent this is for the demos okay number of the issues by the type okay and the evolution of the number of the issues these are the evolution and Technical depth report okay and you can see the bug vulnerabilities code smell how many bugs is reported so one is the critical bug one is the major work Miner and the blocker or dismal is also there one issues list so you can see this is providing the name and the description well structured report if you want to highlight it more you can see the bug and this is the issue list so this is the description of the issue dependencies should not have this System Scope you can see this is the descriptions and this is the bug and is the critical number of the bug thread dot slip should not be used in test and it is saying this is a and we should not use when we are generating the automations so thread dots leave it not a good practice to use and now the security audit spot ldap injections okay so whatever configurations you are doing here you will see everything in the report so this is the sonar Cube report now this report you can send over the email to your team your managers and just scan code quality scan evidence and other reports that dot MD so if I click on this one it is showing the report in this format and this is dot MD report okay this is the second report format and now here the dot CAC so the report in the dot CSV format and how it will looks like it will look like that so this is a CSV report test range everything you will see here okay CSV report format is there and now the Excel is report format so this is the Excel report format you can see the bug okay so bug is one critical Java code smell one grand total two now if you click on the issues you can see these are the issues all you can see the number of lines or thoughts rule project efforts message unconformed Securities plot Matrix so this is a com.xml file it executed 174 unlike that so you can see the detailed report also in this one's your tcd format okay you can see the grand total report also there so what I prefer to use the report so the one report I want to use this docs report second I want to use the XLS report and I always use the docs report for the detail reporting part and this for the more detailed reporting part so you can use both of the report as a planning evidence
Info
Channel: Viren Automation Testing
Views: 6,204
Rating: undefined out of 5
Keywords: sonarqube report, sonarqube tutorial, sonar report, download sonar report, how to download sonar report, sonarqube report example, sonarcloud reports, sonarqube email report, sample sonarqube report, sonarqube output report, sonarqube pdf report, sonarqube report export, sonarqube report plugin, how to configure sonar report plugin, what CNES report plugin, sonar-cnes-report, how to generate pdf report in sonarqube, how to generate test coverage report using sonarqube
Id: lnrQyL0DPtE
Channel Id: undefined
Length: 15min 21sec (921 seconds)
Published: Sat Mar 18 2023
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.