Show TOC

Procedure documentationAdding Custom Code to Generate Test Data on Initialization Locate this document in the navigation structure

Procedure

  1. In the UI Explorer, in the context menu of the Component Controller of OrderComp, choose   Open   Java Editor  .

  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.