To perform runtime error detection during unit test execution:

  1. Generate test cases using  the built-in "Generate Unit Tests"  Test Configuration.
    1. In the project tree, select the Sensor project as the test scope.
    2. Choose Parasoft> Test Using> Builtin > Unit Testing > Generate Unit Tests.

  2. Create a 'Run Unit Tests with Memory Monitoring' Test Configuration as follows.
    1. Open the Test Configurations dialog by choosing Parasoft> Test Configurations.
    2. Right-click the Built-in> Unit Testing> Run Unit Tests with Memory Monitoring configuration, then choose Duplicate from the shortcut menu. The configuration will be copied to the User-defined category.
    3. Rename configuration to "Run Unit Tests with Memory Monitoring (project scope)."
    4. Click Apply to apply the changes made, then click Close to close the Test Configurations window.

  3. Run the application with runtime error detection:
    1. In the project tree, select Sensor project as the test scope.
    2. Choose Parasoft> Test Using> User-Defined> Run Unit Tests with Memory Monitoring (project scope).

  4. Review the results in the Test Progress view and Quality Tasks view.



  • No labels