Records the class information of a specified Java object or ActiveX object, and of the object's children. Using this function, you can record the methods and properties of multiple classes from a script instead of using the recorder.
The class information is stored in the results file produced by the test run.
With this approach, you can record a large number of classes using one function call, rather than having to record each class individually.
|wObj||The Java object or ActiveX object whose class information you want to capture. Serves as the starting point from which to record the classes of its children. WINDOW|
|bCaptureAll||Optional: TRUE to record classes with class names that already exist. FALSE to not record existing classes. For example if FALSE, the class of a JavaJFCPushButton is not recorded. Default is FALSE.|
To call this function, you must load the include file captureclass.inc, which is located in the directory where you installed Silk Test Classic. We recommend adding a use statement in test scripts that call CaptureAllClasses, as in this example:
If there are a large number of controls in the specified object, CaptureAllClasses might take a few minutes to complete.
After running CaptureAllClasses, we recommend that you copy the classes, along with their methods and properties from the results file to an include file. Then, load the include file before running test scripts that use this class information. Important: For some applications, CaptureAllClasses may return properties of type void, which results in a compile error. These properties must be deleted before copying them to the include file.