Introduction to Parasoft C++TEST
Upcoming SlideShare
Loading in...5
×
 

Like this? Share it with your network

Share

Introduction to Parasoft C++TEST

on

  • 2,301 views

Static Code Analysis, Dynamic Application Monitoring, Code Coverage and Unit testing as a combined method in Software Error Prevention process.

Static Code Analysis, Dynamic Application Monitoring, Code Coverage and Unit testing as a combined method in Software Error Prevention process.

Statistics

Views

Total Views
2,301
Views on SlideShare
2,299
Embed Views
2

Actions

Likes
0
Downloads
50
Comments
0

1 Embed 2

http://www.linkedin.com 2

Accessibility

Categories

Upload Details

Uploaded via as Microsoft PowerPoint

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment
  • So, why do I need to use Parasoft technologies? To improve quality … so where are the defects? 85% of defects are introduced at the beginning of developer But most of them are not found until later Where is more expensive These later defects are complex to diagnose and are more symptoms than bugs themselves Where as the problems earlier in the cycle are easier to identify and often represent catalysts to bugs
  • Parasoft ’ s methodology is called ADP. ADP is the idea of preventing errors in order to help achieve better quality and more reliable software. What ADP consists of: - identifying errors as soon as they are introduced - learn from past mistakes so that we can 1) prevent the error from reoccurring in the future, 2) to improve the development process - With error prevention comes defect prevention, which less bugs in the software and better quality code - From fixing bugs to improving software lifecycle …
  • Parasoft helps to achieve Error Prevention by providing the solutions and infrastructure to help organizations achieve automated defect prevention. There are 2 main components that is needed for ADP: Automation Without automation, it is very difficult to implement any testing practice effectively. - Testing is very tedious and time consuming. - If done manually, first of all developers can make mistakes. Secondly, there is no way to ensure that testing is actually being done, and at the same time done correctly, and continuously. Parasoft provides toolsets to automate key testing practices such as … to help identify/prevent bugs early in the development process. 2) Team Infrastructure For testing to be effective, it needs to be incorporated within the team ’ s workflow, and be conditioned as part of a team behavior. The benefits of testing will be compromised even if only 1 person within a team is not following the required standards, or performing testing correctly. Parasoft solutions actually provides this team infrastructure to ensure that these test practices are ingrained into existing development process, in a way that does not disrupt the normal workflow.
  • Now let’s take a look at C++test, and how this solution can help organizations achieve Error Prevention in their C/C++ development C++test is a tool for testing C/C++ code. It helps companies automate key error prevention/detection practices at early stages of the development process. C++test performs 2 main functionalities: automatic static analysis and unit testing. It helps to automate the following tasks: - Automated static analysis. There are 2 types of static analysis, which is used for different purposes: pattern matching (enforcing best coding practices) and flow analysis (for detecting runtime errors) - Automation of code review - Automate unit testing - For embedded development, C++test allows test cases to be run at the host or directly on the target device. - code coverage analysis to help gauge the effectiveness of your testing. Now we will take a look at each of these technologies in turn.
  • The purpose of this slide is to illustrate how C++test and Insure++ can be used for similar validation strategies at different stages of the SDLC, but also from different perspectives: Starting from initial code development, we can apply preventative practices for a whole range of typical software defects, and use the auto-generated unit testing to verify unit robustness and correctly functional implementation. We also provide the auto-stubbing feature to help isolate and test software units early in the SDLC When developers start to integrate software modules (or if they are working on a legacy project) the ability to significantly reduce debugging efforts, and protect the code from the introduction of new bugs and defects are provided by Flow Analysis, Regression Testing and Code Review practices; automated by the C++test product Finally when the executable application/software is ready, the code is most easily tested under typical use-case scenarios using Insure++, to help quickly identify both symptoms and root causes of any remaining memory related runtime defects still existing in the code. This combination of carefully building our software product with industry best practices, and also focusing on a user ’ s perspective to test the product, produces a highly reliably software product.
  • Covers all main functionalities of C++test Now I am going to go over how C++Test fits within a team environment, and it can be utilized to drive ADP. First of all for C++test we offer different editions to suit different development roles/needs.
  • When C++test is deployed in a team environment, this diagram shows the team infrastructure and workflow which drives ADP. 1)First, the team architect we utilize the architect edition to configure team requirements and test settings for the entire group.  Architect has full control to specify the desired test settings and help to standardize across the entire team.   2) After the architect will upload the test settings to our module the Team Server. This module centrally administers and shares these test settings/assets across the team,  Ensure that all test practices are consistently and uniformly applied across the team.  This way you can max the effectiveness of your testing procedures.   3) & 4) Your developers will then download the test settings from the TCM to perform static analysis and unit testing with C++Test Professional running on their local desktops. When the developer is sure that the code is error free he will add it to source control.  In this way developers test as soon as they finish coding, catch/fix errors early on  we ensure the integrity of the code which enters the source code repository.   5) At the build level, C++Test Server Edition can be configured to run the team’s entire test suite against your whole project automatically each night. - These test settings can be retrieved from the TCM. It can be the same as the developer’s configuration, or extra tests can be added. - At this stage, you will also run BD on the whole source code to help identify runtime bugs within your application  act as a second line of defense against errors.  Guarantee that the required standards and tests are being followed 6) After the test are complete C++Test will send all test data to Parasoft Concerto, which collects and analyzes information collected from multiple sources to provide detailed development metrics and reports. Parasoft Concerto helps teams to gain visibility and control of their development process, Teams can utilize the info gathered via the Concerto to make better decisions, identify potential problems in their process and improve upon. 7) Finally,the Server Edition will be able to generate 2 types of reports: 1- Summary reports for the managers to help them monitor 2- Individualized reports for the developers which contains the tasks and violations that each developer is responsible for. The reports can be retrieved from the Team Server Module, or automatically emailed to each developers. This infrastructure provides: 1- Automation via Parasoft C++test 2- Fully ingrains testing practices into the developer ’ s daily workflow to ensure that these practices are non intrusively introduced, and effectively implemented across the whole team 3- Provides a means to be able to monitor your development process, identify potential issues, and in turn be able to learn from past mistakes and improve your process.  Essential elements of ADP.
  • Project Manager, Developer, QA Manager, Project Architect

Introduction to Parasoft C++TEST Presentation Transcript

  • 1. Parasoft ADP and C++test Ellen Chiang
  • 2. Parasoft Corporate Overview
    • Founded in 1987, privately held
    • Headquarters in Monrovia, CA
    • 300+ employees worldwide
    • 16 locations worldwide
    • Technical innovator
      • 15 US patents for software technology
    • 10,000+ customers worldwide, over 58% of Fortune 500 clients
    • Gartner Magic Quadrant: Visionary
  • 3. The Reality … Most errors are found after development… SOURCE: NIST Report,2002 Errors Found Post-Development Errors Found Pre-Development Time in Actual Development Time Looking for Errors Although developers spend a majority of their time looking for errors…
  • 4. Defect Analysis and Reproduction in Different Phases Coding Production Test System Test Integration Test Unit Test
  • 5. Improving Quality: Typical Approach
  • 6. Automated Defect Prevention
    • Methodology and solution for detecting an error once and implementing practices to prevent the class of error from ever happening again.
      • Isolation and identification of errors early in the process
      • Uses information gained to prevent reoccurring software bugs and to progressively improve the development process
      • Refocuses teams from testing for and fixing bugs to improving the software lifecycle and delivering higher quality software.
      • Promoting team behavior and integrating into the development process
  • 7. Parasoft Delivers Automated Error Prevention
    • Automation
      • Automatically perform key testing practices
        • Coding Standards enforcement
        • Unit Testing (White/Black box, regression testing)
        • Run Time Error Detection
    • Team Infrastructure
      • Address key error prevention roles
      • Automated tools configured for group behavior
      • Integrate with existing technologies
      • Error prevention infrastructure to capture and process information
      • Use feedback to improve software lifecycle and prevent errors
  • 8. What is C++Test?
    • C++Test improves C/C++ developer and team productivity by automating a number of high-impact techniques for error prevention and detection at early stages of development process .
  • 9. What Is C++Test?
    • C++Test is a comprehensive tool for automated static and dynamic analysis of C and C++ code:
      • Coding policy enforcement
      • Data flow analysis
      • Automated code review
      • Automated unit testing
      • Execution of unit tests on host and target
      • Automated Regression testing
      • Test/code coverage
      • Runtime Error Detection
      • Team deployment/process integration
      • ADP Quality Framework
    Static Analysis Dynamic Analysis
  • 10. C++Test Core Features and Benefits
    • Coding Standards Static Analysis
    • Automatic Bug Detection
    • Automated Code Review
    • Automated Unit Testing
    • Automated Regression Testing
    • Embedded Testing
    • Runtime Error Detection
  • 11. C++Test Core Features and Benefits
      • Reads source code and checks code against select coding standard rules.
      • Automatically enforces 1400+ industry best practices
      • Finds complex code through Metrics rules
      • “ RuleWizard ” feature for creating custom rules without scripting
      • Early identification of coding errors
      • Supports the group, project, division, as well as corporate standards
      • Check for instances of known bugs to prevent reoccurring issues
    • Coding Standards Static Analysis
    • Automatic Bug Detection
    • Automated Code Review
    • Automated Unit Testing
    • Automated Regression Testing
    • Embedded Testing
    • Runtime Error Detection
  • 12. C++Test Core Features and Benefits
    • Coding Standards Adherence
    • Automatic Bug Detection
    • Automated Code Review
    • Automated Unit Testing
    • Automated Regression Testing
    • Embedded Testing
    • Runtime Error Detection
      • “ BugDetective ” feature: unique static technology based on flow analysis
      • Automatically finds runtime bugs without writing, executing or reviewing test cases
      • Enables early and effortless detection of critical runtime errors.
      • Pinpoints bugs in complex execution paths that span multiple methods, class files and packages
  • 13. C++Test Core Features and Benefits
    • Coding Standards Adherence
    • Automatic Bug Detection
    • Automated Code Review
    • Automated Unit Testing
    • Automated Regression Testing
    • Embedded Testing
    • Runtime Error Detection
      • “ Code Review” module for automation of code review process
      • Facilitates identification of high-level problems in code
      • Saves time: conduct code reviews without face-to-face meetings
      • Promotes flexible scheduling
      • Supports distributed development
      • Ensures all new code gets reviewed and all identified issues are resolved
  • 14. C++Test Core Features and Benefits
    • Coding Standards Adherence
    • Automatic Bug Detection
    • Automated Code Review
    • Automated Unit Testing
    • Automated Regression Testing
    • Embedded Testing
    • Runtime Error Detection
      • Auto generates test cases to exercise code.
      • Auto generates stubs for external calls
      • White box testing: Automatically tests robustness of code construction
      • Black box testing: Verifies functionality of the code
      • Reports 6 metrics of code coverage
      • Easily extend test cases to increase code coverage
  • 15. C++Test Core Features and Benefits
    • Coding Standards Adherence
    • Automatic Bug Detection
    • Automated Code Review
    • Automated Unit Testing
    • Automated Regression Testing
    • Embedded Testing
    • Runtime Error Detection
      • Prior test run results kept with project
      • Click of button runs regression tests
      • Easily configured for nightly builds
      • Guarantees quality of code as it evolves
  • 16. C++Test Core Features and Benefits
    • Coding Standards Adherence
    • Automatic Bug Detection
    • Automated Code Review
    • Automated Unit Testing
    • Automated Regression Testing
    • Embedded Testing
    • Runtime Error Detection
      • Supports host-based testing: perform static analysis and unit testing as the code is developed
      • Early testing exposes majority of the problems with the application logic before deployment on the target.
      • Supports testing on the target: Export test harness and cross-compile for execution of test cases directly on the target.
      • Expose issues that may only occur on the target.
      • Develop/maintain one set of tests which can be reused for execution on multiple targets.
  • 17. C++Test Core Features and Benefits
    • Coding Standards Adherence
    • Automatic Bug Detection
    • Automated Code Review
    • Automated Unit Testing
    • Automated Regression Testing
    • Embedded Testing
    • Runtime Error Detection
      • Automatically exposes defects that occur as the application is exercised-including memory leaks, null pointers, uninitialized memory, buffer overflows, and more.
      • The instrumentation used to perform this runtime error detection is lightweight and suitable for running on the target board, simulator, or host for embedded testing.
      • C++test provides complete information indicating the root causes of the errors along with a detailed stack trace to facilitate issue remediation .
  • 18. Parasoft Automated Technologies: Testing throughout the SDLC Enforce Correct Coding and Security Policy Auto Generate Unit Tests … with stubs Flow Analysis Tests Regular Regression Testing Application Testing Code Review Code Review
      • Runtime Error Detection
    Coding Production Test System Test Integration Test Unit Test
  • 19. C++Test Configuration
    • Professional Edition
      • Developer desktop usage
    • Architect Edition
      • RuleWizard for custom rule creation
    • Server Edition
      • Command line for integration with nightly build systems
      • BugDetective for detection of runtime issues
      • Provides reports to development team
      • Includes Team Server Module
    • Team Server
      • Stores and distributes rules, test configurations, and reports
      • Standardizes testing methods across a team
  • 20. Team-wide Deployment and Workflow Scheduled Test Server Developer Machines Architect / Technical lead SCM Source Control code & tests Team Server Team Server Test Results Professional Editions Server Edition (Batch Mode) Architect Edition Team Coding Standards Nightly Results
  • 21. C++Test benefits
    • Automatically find software defects using static analysis of code
    • Implement, configure, and automatically enforce team-or company-specific coding standards and guidelines
    • Ensure that code is reviewed for higher level issues by facilitating and automating the code review process
    • Automatically generate and validate baseline unit and module tests
    • Ensure code integrity via automated regression testing
    • Assess effectiveness of existing tests by providing detailed coverage information
    • Improve efficiency and test effectiveness by promoting “team behavior” and integrating key test practices into the development process
  • 22. Summary
    • Reduce cost by finding errors early in the development process
    • Improve efficiency
      • Reduce testing time
      • Reduce testing effort
      • Reduce number of bugs introduced into QA by catching errors early in the development process
    • Increase stability and confidence
      • Increase testing completeness
      • Improve visibility into the development process
      • Improve efficiency and effectiveness of development process