Show TOC

Adding Custom Code to Generate Test Data on InitializationLocate this document in the navigation structure

Procedure

  1. In the UI Explorer, in the context menu of the Component Controller of OrderComp , choose Start of the navigation path Open Next navigation step Java Editor End 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.