Adding Custom Code to Generate Test Data on Initialization

Procedure

  1. In the UI Explorer, in the context menu of the Component Controller of OrderComp , choose Start of the navigation pathOpen Next navigation step Java EditorEnd of the navigation path.
  2. Find the wdDoInit method. You can use the Outline view (by default in the bottom right corner) for navigation.
  3. In the existing coding, add the line generateTestData(); to execute test data generation when the application is initialized.

    The completed code should be the same as the example below (you can copy and paste this example code into the editor):

     
  4. Save your work.