Running the Test

By default, the Micro Focus Unit Testing view displays the test cases for the last unit test project that was run, or is empty if a unit test project is yet to be run.
  1. Click the Micro Focus Unit Testing view. (If it is not already displayed, click Window > Show View > Other > Micro Focus > Micro Focus Unit Testing.)

    You will notice that the view does not yet show any test cases. You must first run the unit test project that contains them. Only then will you see the test cases (the entry points coded within MFUPD_aircode.cpy).

  2. In the Application Explorer view, select TestAirportDemo, then on the Eclipse toolbar, click (Run).

    The project runs and the tests are loaded into the Micro Focus Unit Testing view. This project currently contains only one test case (MFUT_TESTAIRCODE), which automatically ran when you ran the unit test project.

    Tip: If the tests are not loaded, on the Project tab, click Clean, clear the Clean all projects option and select just TestAirportDemo, and then click Clean. After the project has been cleaned, in the Micro Focus Unit Testing view, click (Run All).
  3. Select the test case to display the test output in the Test Results pane.

    The test case passes, but that is because it does not actually do anything meaningful yet: if you look in MFUPD_aircode.cpy, the MFUT_TESTAIRCODE entry point is empty. In the Enhancing the Test step, we will enhance the test by adding some code to this entry point.