QA InfoTech , Independent Software Testing Service Logo
jobs@qainfotech.com
Sales: Contact Sales +1 469-759-7848 sales@qainfotech.com
QA Infotech your Software testing partner
Menu
  • About
    • Team
    • Overview
    • Values and Culture
    • QA InfoTech Foundation
    • Careers
  • Services
    • QUALITY ENGINEERING
      • Functional Testing
      • Automation Testing
      • Mobile Testing
      • Performance Testing
      • Accessibility Testing
      • Usability Testing
      • Security Testing
      Quality ASSURANCE
      • Globalization, Translation & Localization Testing
      • Courseware & Content Testing
      • Crowdsourced Testing
      • Cloud Testing
      Software Development
      • eLearning
      • Data Sciences
      • Accessibility Development
      • Mobility Solutions
      • Web Development
      • Front End Frameworks
      • Salesforce Development
      • Cloud Solutions
      • Enterprise Content Management
      • Odoo
      • ServiceNow
      • AS400
      Digital Assurance
      • Digital Assurance
      • Data Sciences & Analytics
      • Quality Consulting & Test Center of Excellence (TCOE)
      • SAP Testing
      • Selenium Test Automation
      • Blockchain Testing
  • Verticals
    • e-learning
      List Start
    • e-Learning
    • Publishing
    • BFSI
    • Health Care
    • Media
    • Travel
    • Retail
    • Government
    • OpenERP
    • List Stop
  • Knowledge Center
    • Case Studies
    • White Paper
    • Webinars
    • Blogs
  • WebinarsNew
  • News
    • News
    • Press Release
  • Contact
  • Get A Quote
  • Home
  • »
.NET code review made easier with tools
24 Mar, 2015

.NET code review made easier with tools

  • aartiahuja
  • Business,Dot Net
  • Tags: .NEt, code analysis, code digger, code metrics, code redundancy, code review, code review tools, concurrency analyzer, FxCop, logical checks, performance analysis, review tool, SSW code auditor, visual studio, visual studio code review tools
  • no comments

Following are the code review tools:

  1. Code Analysis
  2. Concurrency Analyzer (multithreaded app performance)
  3. Performance Analysis
  4. Code Metrics
  5. Code Redundancy
  6. FxCop (Review Tool)
  7. Logical checks [Pending]
  8. Code Digger (analyzes possible execution paths through your .NET code.)
  9. SSW Code Auditor (ensures code quality)

Code Analysis

In Visual Studio 2012, Microsoft provided features to analyze the code. This can be done in following steps:

1. Open the solution in which the projects that you want to analyze are present.

2. You can analyze full solution or any of the project in that solution.

3. Go to Analyze -> Configure code analysis for solution. It will open a window where you can change Code Analysis Settings.

1

4. You can choose from the Rule Set as Basic Correctness rules, design rules or Microsoft all rules etc as required.

2

 

5. You can change: Configuration and platform also as required. Once configuration is completed then you can analyze the code.

6. Go to Analyze -> Click Run Code Analysis for Solution or Press Alt+F11

7. Once the analysis is completed, a “Code Analysis” window will appear beside solution explorer listing all the errors. When you click on that            error, it will show you the location of that error.

8. From this window you can analyze again full solution or a particular project in that solution by choosing from the above dropdown.

9. Also it provides a settings icon from where you can change the settings again.

3

 

 

 

Concurrency Analyzer (multithreaded app performance)

 

Visual Studio provides in-built “Concurrency Visualizer” to examine the multithreaded app performance.

4

Steps:

  1. Go to Analyze -> Concurrency Visualizer -> Start with Current Project (Shift+Alt+F5)
  2. It may ask you to use install symbols. Once you click Yes, then it will automatically generate a report.

 

 

Performance Analysis

 

Visual Studio provides in-built feature to analyze the performance of the code. Steps to do performance analysis are as follows:

1. Configure Performance Analysis by Selecting the profiling method as follows:

    1. Go to Analyze -> Launch performance Wizard
    2. Select the method of Profiling as “CPU Sampling”
    3. Next -> Select project and finish

5

2. Go to Analyze -> Start Analysis (Alt+F2)

3. It will first do the profiling and then start the performance analysis and gives the reports and a Error List.

6

4. The Report can be exported.

7

 

 

 

Code Metrics (Measuring Complexity)

 

The increased complexity of modern software applications also increases the difficulty of making the code reliable and maintainable. In recent years, many software measures, known as code metrics, have been developed that can help developers understand where their code needs rework or increased testing.

Developers can use Visual Studio Application Lifecycle Management to generate code metrics data that measure the complexity and maintainability of their managed code. Code metrics data can be generated for an entire solution or a single project.

 

Steps to do:

  1. Go to Analyze -> Calculate Code Metrics for Solution
  2. It analyzes and gives the output

8

 

Code Redundancy

 

This feature is available in only “Ultimate and Premium” editions of Visual Studio 2012

 

Steps to do:

  1. Go to Analyze -> Analyze Solution for Code Clones.
  2. Methods that are less than 10 statements long are not scanned by this command.
  3. You can clone a set of statements by selecting that code -> Right Click there -> Choose Find matching clones in solution.

 

 

FxCop (Framework Police)

 

It is a code analysis tool that checks managed code assemblies for Microsoft’s .NET Framework design guidelines and custom guidelines. Using this tool, we can make sure about the coding standards like naming conventions, classes designing, performance etc.

Initial step is to install FxCop setup in your machine. It is a free tool which can be easily available on internet or you can use this link http://www.microsoft.com/en-in/download/details.aspx?id=6544

After installing FxCop, you can use it in two different ways:

  1. Launching FxCop Application directly from All Programs list.
  2. Launching FxCop as an External Tool in Visual Studio.

 

1.    Launching FxCop Application directly from All Programs list.

 

Go to Start Menu -> All Programs -> “Microsoft FxCop” option and then click on Microsoft FxCop. It will launch an empty window as shown below having three panes (sub-windows).

9

 

Now Go to the Project Menu and click on “Add Targets…” Select the project EXE or DLL whose managed code you want to check. Then begin analysis by clicking Analyze button, the screen will look like as below:

10

 

 

The Message Pane will shows the list of all the active messages. These messages are the errors and warning that FxCop has found with the last analysis performed. You can select any one of the message in Message Pane, it will show the message details like error level, certainty and the resolution to resolve it.

 

You can also save the analysis report from File Menu -> Save Report As. The report will be stored as an XML document which will store all the message on assembly level, type level and member level.

2.    Launching FxCop as an External Tool in Visual Studio.

 

Open the project in Visual Studio, then go to Tools -> External Tools -> click Add. Enter the following details in the respective textbox for the newly created External Tool.

 

  • Title: FxCop
  • Command: C:\Program Files (x86)\Microsoft Fxcop 10.0\FxCopCmd.exe
  • Arguments: /c /searchgac /f:$(TargetPath) /d:$(BinDir)
  • Initial directory: C:\Program Files (x86)\Microsoft FxCop 10.0

 

Note: Make sure to mention the correct directory path where FxCop program is being installed and “Use Output Window” checkbox is checked.

After adding the above details, the dialog box will appear as below:

11

 

You can also add your custom rules DLLs which you want to apply on the project and place them in the same path where FxCop rules are present like c:\Program Files (x86)\Microsoft FxCop 1.36\Rules

 

Now you need to run the tool. Go to Tools -> FxCop. The Visual Studio Output window will show the FxCop analysis result.

 

So this tool can help developers in following the best coding practice by analyzing the code.

 

Code Digger

 

Link : http://research.microsoft.com/en-us/projects/codedigger/gettingstarted.aspx

Code Digger analyzes possible execution paths through your .NET code. The result is a table where each row shows a unique behavior of your code. The table helps you understand the behavior of the code, and it may also uncover hidden bugs.

Through the new context menu item “Generate Inputs / Outputs Table” in the Visual Studio editor, you can invoke Code Digger to analyze your code. Code Digger computes and displays input-output pairs. Code Digger systematically hunts for bugs, exceptions, and assertion failures.

 

Out of the box, Code Digger only works on public .NET code that resides in Portable Class Libraries. But if you want to use it over any .NET code, then follow the following steps:

 

  1. Go to Tools -> Extensions & Updates -> Online section -> Search “Code Digger” and download and install it.
  2. Restart Visual Studio
  3. Go To Tools -> Options -> Pex -> General -> Under Code Digger

12

4. Go to any function right click and analyze as follows:

13

14

 

 

SSW Code Auditor

SSW Code Auditor is a code analysis tool that allows developers to take control of your code, ensuring large, complex source code can be simplified, cleaned and maintained.

SSW Code Auditor utilizes the power of Regular Expressions to audit your code. This powerful feature permits the user to write their own set of rules and have different rules for different projects.

Link: http://visualstudiogallery.msdn.microsoft.com/2859b7a1-9b11-4cbe-abde-f1718aa395ab?SRC=VSIDE

http://www.ssw.com.au/ssw/CodeAuditor/

 

Steps:

  1. Go to Tools -> Extensions & Updates -> Online section -> Search “SSW Code Auditor” and download and install it.
  2. Restart Visual Studio
  3. SSW Code Auditor will be now available on the Visual Studio menu
  4. Rest steps can be read from http://www.ssw.com.au/ssw/CodeAuditor/Tutorial.aspx#Started

 

 

Site Categories

  • Accessibility Testing (29)
  • Automation Testing (27)
  • Banking Application Testing (2)
  • Blockchain (2)
  • Blogs (378)
  • Business (44)
  • Case Studies (37)
  • Cloud Testing (5)
  • Company (16)
  • Compatibility Testing (1)
  • DevLabs Expert Group (25)
  • DevOps (2)
  • Dot Net (27)
  • E-Learning testing (3)
  • Events (6)
  • Fun at Devlabs (1)
  • Functional Testing (4)
  • Healthcare App Testing (10)
  • Innovation (5)
  • Java (3)
  • Job Openings (31)
  • Mobile Testing (20)
  • News (144)
  • News & Updates (7)
  • Open Source (9)
  • Our-Team (9)
  • Performance Testing (24)
  • Press Releases (37)
  • QA Thought Leadership (3)
  • Salesforce App Development (2)
  • Security Testing (16)
  • Software Testing (37)
  • Testimonials (24)
  • Translation & Globalization Testing (10)
  • Uncategorized (3)
  • Usability Testing (1)
  • Webinars (26)
  • White Papers (35)
  • Popular
  • Recent
  • Tags
  • Zend Framework April 16, 2013
  • Effective Regression Testing Strategy for Localized Applications Effective Regression Testing Strategy for Localized Applications March 23, 2015
  • Moving from a commercial to an open source performance testing tool August 12, 2015
  • 3 Tier Architecture in .Net Framework March 21, 2013
  • Zend at QAIT Devlabs March 26, 2013
  • Key Focus Areas while Testing a Healthcare App Key Focus Areas while Testing a Healthcare App September 18, 2020
  • Need for the Right Performance Testing Strategy for your Mobile App Need for the Right Performance Testing Strategy for your Mobile App September 12, 2020
  • Key Points to Remember Before Starting Salesforce Customization Key Points to Remember Before Starting Salesforce Customization September 8, 2020
  • Top 5 Automation Testing Tools for Mobile Applications Top 5 Automation Testing Tools for Mobile Applications September 2, 2020
  • Improve Salesforce Application Performance Leveraging Platform Cache using Lightning Web Component Improve Salesforce Application Performance Leveraging Platform Cache using Lightning Web Component August 28, 2020
  • Jobs - 13
  • Hiring - 13
  • mobile app testing - 8
  • performance testing - 7
  • accessibility-testing - 6
  • #AccessibilityTesting - 6
  • #PerformanceTesting - 6
  • automation testing - 5
  • accessibility - 4
  • #PerformanceTestingServices - 4
  • Performance Testing Services - 4
  • mobile - 3
  • testing - 3
  • functional testing - 3
  • agile cycle - 3
  • DevOps - 3
  • performance - 3
  • software testing services - 3
  • data analytics - 3
  • #SoftwareTesting - 3
  • #TestAutomation - 3
  • #AppSecurity - 3
  • #SecureBankingApps - 3
  • #TestingBankingApplications - 3
  • #SoftwareTestingStrategy - 3

Site Archives

  • September 2020 (4)
  • August 2020 (9)
  • July 2020 (15)
  • June 2020 (9)
  • May 2020 (13)
  • April 2020 (13)
  • March 2020 (23)
  • February 2020 (7)
  • January 2020 (18)
  • December 2019 (9)
  • November 2019 (10)
  • October 2019 (8)
  • September 2019 (9)
  • August 2019 (6)
  • July 2019 (4)
  • June 2019 (7)
  • May 2019 (18)
  • April 2019 (15)
  • March 2019 (5)
  • February 2019 (1)
  • January 2019 (5)
  • December 2018 (3)
  • October 2018 (4)
  • August 2018 (4)
  • July 2018 (15)
  • June 2018 (1)
  • May 2018 (3)
  • April 2018 (7)
  • March 2018 (5)
  • February 2018 (15)
  • January 2018 (3)
  • December 2017 (8)
  • November 2017 (13)
  • October 2017 (19)
  • September 2017 (13)
  • August 2017 (11)
  • July 2017 (7)
  • June 2017 (6)
  • May 2017 (5)
  • April 2017 (2)
  • March 2017 (6)
  • January 2017 (3)
  • December 2016 (7)
  • October 2016 (3)
  • September 2016 (3)
  • August 2016 (6)
  • July 2016 (4)
  • June 2016 (3)
  • May 2016 (6)
  • April 2016 (3)
  • March 2016 (7)
  • February 2016 (3)
  • January 2016 (3)
  • December 2015 (20)
  • November 2015 (2)
  • October 2015 (28)
  • September 2015 (4)
  • August 2015 (2)
  • July 2015 (14)
  • June 2015 (2)
  • May 2015 (2)
  • April 2015 (5)
  • March 2015 (18)
  • February 2015 (11)
  • January 2015 (4)
  • December 2014 (3)
  • November 2014 (4)
  • October 2014 (6)
  • September 2014 (7)
  • August 2014 (6)
  • July 2014 (7)
  • June 2014 (6)
  • May 2014 (4)
  • April 2014 (7)
  • March 2014 (7)
  • February 2014 (8)
  • January 2014 (7)
  • December 2013 (3)
  • November 2013 (6)
  • October 2013 (6)
  • September 2013 (10)
  • August 2013 (3)
  • July 2013 (4)
  • June 2013 (6)
  • May 2013 (3)
  • April 2013 (12)
  • March 2013 (6)
  • February 2013 (2)
  • January 2013 (1)
  • December 2012 (2)
  • November 2012 (3)
  • October 2012 (3)
  • September 2012 (5)
  • August 2012 (2)
  • July 2012 (6)
  • June 2012 (1)
  • May 2012 (2)
  • April 2012 (3)
  • March 2012 (8)
  • February 2012 (4)
  • January 2012 (3)
  • December 2011 (1)
  • November 2011 (4)
  • October 2011 (3)
  • September 2011 (2)
  • August 2011 (3)
  • June 2011 (4)
  • May 2011 (1)
  • April 2011 (4)
  • February 2011 (1)
  • January 2011 (1)
  • October 2010 (2)
  • August 2010 (4)
  • July 2010 (2)
  • June 2010 (3)
  • May 2010 (3)
  • April 2010 (1)
  • March 2010 (5)
  • February 2010 (1)
  • January 2010 (2)
  • December 2009 (3)
  • November 2009 (1)
  • October 2009 (2)
  • July 2009 (1)
  • June 2009 (2)
  • May 2009 (2)
  • March 2009 (2)
  • February 2009 (4)
  • December 2008 (2)
  • November 2008 (1)
  • October 2008 (1)
  • September 2008 (1)
  • August 2008 (2)
  • May 2008 (1)
  • February 2008 (1)
  • September 2007 (1)
  • August 2007 (1)
  • May 2007 (2)
  • June 2006 (1)

Tag Cloud

#AccessibilityTesting #AppSecurity #AutomationTesting #MobileAppTesting #MobileTesting #PerformanceTesting #PerformanceTestingServices #SecureBankingApps #SoftwareTestAutomation #SoftwareTesting #SoftwareTestingStrategy #TestAutomation #TestingBankingApplications .NEt accessibility accessibility-testing agile cycle automation automation testing BigData cloud computing cloud testing data analytics DevOps education functional testing functional testing services globalization Hiring Jobs localization testing mobile mobile app testing Mobile Testing Offshore QA Testing performance performance testing Performance Testing Services Security testing services Selenium Test Automation software testing software testing services technology testing xAPI

Post Calendar

March 2021
MTWTFSS
« Sep  
1234567
891011121314
15161718192021
22232425262728
293031 

About QA InfoTech

Q A QA InfoTech is a C M M i CMMi Level III and I S O ISO 9001: 2015, I S O ISO 20000-1:2011, I S O ISO 27001:2013 certified company. We are one of the reputed outsourced Q A QA testing vendors with years of expertise helping clients across the globe. We have been ranked amongst the 100 Best Companies to work for in 2010 and 2011 & 50 Best Companies to work for in 2012 , Top 50 Best IT & IT-BMP organizations to work for in India in 2014, Best Companies to work for in IT & ITeS 2016 and a certified Great Place to Work in 2017-18. These are studies conducted by the Great Place to Work® Institute. View More

Get in Touch

Please use Tab key to navigate between different form fields.

This site is automatically   protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Services

  • Functional Testing
  • Automation Testing
  • Mobile Testing
  • Performance Testing
  • Accessibility Testing
  • Security Testing
  • Localization Testing
  • Cloud Testing
  • Quality Consulting

Useful Links

  • Blogs
  • Downloads
  • Case Studies
  • Webinars
  • Team
  • Pilot Testing
  • Careers
  • QA TV
  • Contact

Office Locations

Michigan, USA
Toronto, Canada
Noida, INDIA ( HQ )
Bengaluru, INDIA
Michigan, USA

  • 32985 Hamilton Court East, Suite 121, Farmington Hills, Michigan, 48334
  • +1-469-759-7848
  • info@qainfotech.com

Toronto, Canada

  • 6 Forest Laneway, North York, Ontario, M2N5X9
  • info@qainfotech.com

Noida, INDIA ( HQ )

  • A-8, Sector 68 Noida, Uttar Pradesh, 201309
  • +91-120-6101-805 / 806
  • info@qainfotech.com

Bengaluru, INDIA

  • RMZ Ecoworld, Outer Ring Road, Bellandur, Bengaluru, Karnataka, 560103
  • +91-95600-00079
  • info@qainfotech.com

Copyright ©2020 qainfotech.com. All rights reserved | Privacy Policy | Disclaimer

Scroll
QA InfoTech logo
  • About
    ▼
    • Team
    • Values and Culture
    • Overview
    • QA InfoTech Foundation
    • Careers
  • Services
    ▼
    • Software Development
      ▼
      • eLearning
      • Data Sciences
      • Accessibility Development
      • Mobility Solutions
      • Web Development
      • Front End Frameworks
      • Salesforce Development
      • Cloud Solutions
      • Enterprise Content Management
      • Odoo
      • ServiceNow
      • AS400
    • Functional Testing Services
    • Automation Testing Services & Tools
    • Mobile Testing Services
    • Performance Testing Services
    • Accessibility Testing Services
    • Usability Testing
    • Security Testing
    • Translation & Globalization Testing
    • Courseware & Content Testing
    • Crowdsourced Testing
    • Cloud Testing
    • Digital Assurance
    • Data Sciences and Analytics
    • SAP Testing
    • Selenium Test Automation
    • Blockchain Applications Testing
  • Verticals
    ▼
    • e-Learning
    • Health Care
    • Retail
    • Publishing
    • Media
    • Government
    • BFSI
    • Travel
    • OpenERP
  • Knowledge Center
    ▼
    • Case Studies
    • White Paper
    • Webinars
    • Blogs
  • WebinarsNew
  • News
    ▼
    • News
    • Press Release
  • Contact
  • Get a Quote
We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.Accept CookiesPrivacy policy