This functionality is supported only if you are using the Classic Agent.
When you record classes,
Silk Test Classic does not enumerate native methods that pass unsupported Java classes as arguments; however, you can use these methods with supported subclasses. Add the prototype by hand in your class definition include file and then use the method in your test script as defined.
Example
If you record a class on a JFC ComboBox, the following native method prototypes are not enumerated because the Java support in
Silk Test Classic does not support the
Object class:
- Object getItemAt(int)
- Object getSelectedItem()
- void setSelectedItem(Object)
If you know that all the items on the JFC ComboBox are instances of a supported class, such as the default Java string class, you can add these prototypes in your class definition include file. Here's how the declarations should look for the Java string class:
- String getItemAt(int)
- String getSelectedItem()
- void setSelectedItem(String)