Recent Posts

QTP & Keyword Driven Testing

Tricky Questions in QTP

Asset Upgrade tool in QTP

New Features in QTP 10

Sep 11, 2008

Static analysis by tools

Subscribe the QA and Software Testing Newsletter
Post Your Queries | QA and Testing - Table of Contents

SPONSORED LINKS Reading: Static analysis by toolsTweet this Post


The objective of static analysis is to find defects in software source code and software models.
Static analysis is performed without actually executing the software being examined by the tool;
dynamic testing does execute the software code. Static analysis can locate defects that are hard to
find in testing. As with reviews, static analysis finds defects rather than failures. Static analysis tools
analyze program code (e.g. control flow and data flow), as well as generated output such as HTML
and XML.


The value of static analysis is:
  • Early detection of defects prior to test execution.
  • Early warning about suspicious aspects of the code or design, by the calculation of metrics,
    such as a high complexity measure.
  • Identification of defects not easily found by dynamic testing.
  • Detecting dependencies and inconsistencies in software models, such as links.
  • Improved maintainability of code and design.
  • Prevention of defects, if lessons are learned in development.

Typical defects discovered by static analysis tools include:

  • referencing a variable with an undefined value;
  • inconsistent interface between modules and components;
  • variables that are never used;
  • unreachable (dead) code;
  • programming standards violations;
  • security vulnerabilities;
  • syntax violations of code and software models.

Static analysis tools are typically used by developers (checking against predefined rules or
programming standards) before and during component and integration testing, and by designers
during software modeling. Static analysis tools may produce a large number of warning messages, which need to be well managed to allow the most effective use of the tool.

Compilers may offer some support for static analysis, including the calculation of metrics.

SPONSORED LINKS

Comments :

0 comments to “Static analysis by tools”

Software testing Metrices-Test Case Review

Metrics are the means by which the software quality can be measured; they give you confidence in the product.

 

Energize your test team

You're waist deep in your third month of late nights, weekends, and shipping stress; you can see and feel your team's energy waning.

 

The Value of Positive Testing

There is a school of thought in software testing that debunks the value of positive testing. This school basically states that any test that does not produce a defect is not a good test.

Impact Analysis Checklist for Req. Changes
___    Implications of the Proposed Change* Identify any existing requirements in the baseline that

The Process of Test Process Improvement

Software testing is still a pain-in-the-neck for many organizations. Because it is only marginally addressed in software process improvement models like CMMi

 

Software Defect-bug Management Philosphy

Imperfect processes cause most of the software defects. Thus to prevent defects, the development process needs to be overhauled.

 

Software testing Metrices-Test Case Review

Metrics are the means by which the software quality can be measured; they give you confidence in the product.

 

Energize your test team

You're waist deep in your third month of late nights, weekends, and shipping stress; you can see and feel your team's energy waning.

 

The Value of Positive Testing

There is a school of thought in software testing that debunks the value of positive testing. This school basically states that any test that does not produce a defect is not a good test.

Blog Archive