This functionality is supported only if you are using the Classic Agent.
Before beginning this procedure, make sure you have taken the necessary prerequisite steps to set up your environment as described in Configuring Silk Test Classic to Test Java.
To record new classes for custom controls using the recorder:If you find that Silk Test Classic does not recognize some of your custom Java controls, you may need to take additional steps to record classes for these "ignored" objects.
To include native methods with return or parameter types that do not match valid 4Test methods, check the Show All Methods check box on the Record Class dialog box. Silk Test Classic displays these methods as comments in Methods list.
When you finish recording the class, uncheck the Show all methods check box to turn off the recording of all methods. Turning off Show all methods when you don’t need it helps to keep performance optimal.
Although you cannot call these methods directly from your 4Test script, you can use InvokeMethods or InvokeJavaCode to call them from your script.
If you add or delete native methods, or modify the parameters of native methods for a custom Java class, you need to either re-record the class or edit your class include file to reflect the changes.
If your test script fails with the error Function x is not defined for window y, you might need to modify your window tag from CustomWin to the name of your new window class.