Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Published by Scroll Versions from space ENGINES1031 and version 10.4.0

...

  1. If the Unit Test Assistant view is not already open, choose Parasoft> Show View> Unit Test Assistant from the Eclipse menu bar.
  2. Select a method in the editor.
  3. Click the Regular action link to create a test for the selected method.
    Image Removed
    Image Added

  4. Uncomment the assertions and modify the default UTA values if necessary.



  5. Run the test with UTA to collect coverage information and recommendations for possible improvements (see Executing Unit Tests with Unit Test Assistant).

Cloning a Test

You can create a new test by cloning an already existing one and modifying the content of the duplicate.

  1. Select a test in the editor.
    Image Added

  2. Click the Clone [test name] action link to duplicate the test.

    Image Added

  3. Modify the duplicate test code.

You can clone one test multiple times. The names of the duplicates will be followed by consecutive numbers.

Image Added