Adding Custom Code to Generate Test Data on Initialization 
In the UI Explorer, in the context menu of the Component Controller of OrderComp, choose .
Find the wdDoInit method. You can use the Outline view (by default in the bottom right corner) for navigation.
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):
Save your work.