Challenge

Project 2 - V&V SW Analysis II

Here are the general steps to perform static code review analysis:

Prerequisites:

  • Ensure you have a static code analysis tool like LDRA TBvision installed and configured.
  • Make sure you have the "Testrain.c" file available within the project directory.

Static Code Review Analysis Steps:

  1. Launch LDRA TBvision:

    • Start the LDRA TBvision tool on your system.
  2. Open Project or File:

    • Create a new project or open an existing project that includes the "Testrain.c" file.
  3. Code Analysis Configuration:

    • Configure static code analysis settings based on your project requirements. This includes specifying coding standards, rules, and any specific checks you want to perform.
  4. Initiate Code Analysis:

    • Start the static code analysis process on the "Testrain.c" file. The tool will scan the code for compliance with the configured coding standards and rules.
  5. Review and Address Findings:

    • Examine the analysis results. The tool will identify issues, violations, and potential problems in the code.

    • Address each finding as necessary by making code changes or documenting exceptions, as per your organization's guidelines.

  6. Generate Code Review Report:

    • LDRA TBvision typically provides a feature to generate code review reports.

    • Generate the code review report, which will include details about the findings, violations, and code quality metrics.

  7. Review and Document Findings:

    • Review the code review report thoroughly, and document any findings, resolutions, and action items.
  8. Upload or Share Reports:

    • Depending on your organization's procedures, you may need to upload the generated code review report to a specific location or share it with relevant stakeholders.

2. ans :

A) Perform Integration Testing:

  1. Launch LDRA TBExtreme:

    • Start the LDRA TBExtreme tool on your system.
  2. Project Setup:

    • Create a new project or open an existing project that includes all the .c files available in the specified folder location (C:\**\LDRA_workarea\Examples\Toolsuite\Cashregister_6.0\).
  3. Configure Project:

    • Set up the project to include all relevant source files. Ensure that the project configuration is correctly set to build and compile the source files.
  4. Test Case Creation:

    • You can create test cases manually or automatically using LDRA TBExtreme.

    • For manual test case creation, identify specific integration points or scenarios between the source files that you want to test. Create test cases that cover different integration scenarios.

    • For automatic test case generation, LDRA TBExtreme may have features to automatically generate test cases based on code analysis and integration points. Check the tool's documentation for details on this feature.

  5. Test Execution:

    • Execute the integration test cases you created (manually or automatically). LDRA TBExtreme will run the tests, exercising the integrated code.
  6. Generate Reports:

    • After test execution is complete, generate integration test reports using LDRA TBExtreme. These reports may include details about test coverage, integration points, and results.
  7. B) Store Test Cases as .tcf File:

    1. After creating the test cases, you can save them as a Test Case File (.tcf file) within the LDRA TBExtreme project.

    2. Follow the specific steps provided by LDRA TBExtreme to save the test cases as a .tcf file. Typically, you can save the test case file within your project directory.

    3. Ensure that the .tcf file is saved in a location that you can access and reference later.

    Note: Uploading files or images is not possible through this text-based interface, as I cannot access your local file system. You should store the .tcf file in a directory of your choice and make note of its location for future reference.

Your portfolio, next

Ship work like this
in your own course.

Talk to a career counsellor

Free 20-minute call. We'll map the right course to where you want to work.

By submitting you agree to our Terms and Privacy Policy.