Generate test data and test code to test the functions of the source code. You can create individual tests for each function.

Create tests

Generate test data and test code for each function under test.

  1. After activating the test view to create, there are two ways to create a test.
    1. Click the [New Test] bookmark on the Dashboard.
    2. Right-click the target project or a module in the project, and click [Create Test…].
  1. After the analysis is finished, tests are created according to the currently activated test view.
    1. When [Unit Test View] is Activated
      1. In [Select function to be tested], select the function to perform the unit test.
        1. You can filter the function under test using [type filter text].
        2. You can use the [Selection type] combo box to select the function to be tested based on the source file or function.
        3. You can easily select and deselect all functions under test with the right-click menu.
        4. Selecting [Test Creation option] generates stubs to isolate the functions called by the target function, and generated stubs are linked with host stubs of tests.
          • Selecting [Link Target Stub], generated stubs are linked with target stub of tests.
        5. If [Host Run after Test Creation] is selected, prepare the test data and run the tests.
    2. When [Integration Test View] is Activated
      1. Enter the name of the integration test to create, and click [OK]. A default name is automatically provided, but you can change it.
    3. When [Code-Based Test View] is Activated
      1. Select the file to create the code-based test, and click [OK].

Create and run unit tests

The [Create and Run] function allows you to create and run unit tests at once without using the [Create Unit Test] function.

  1. Select the function to be tested in the test navigator and right-click.
  1. If you select the [Create and Run] menu, it creates a test for the target function and then runs the test.

Create an integration test from the toolbar menu in the [Integration Test View]

You can use the toolbar menu to create an integrated test.

Create code-based tests from the toolbar menu in the [Code-Based Test View]

You can use the toolbar menu to create code-based tests.

Need more help with this?
Don’t hesitate to contact us here.

Thanks for your feedback.