Loading Class Definition Files

If you record classes into a file other than vbclass.inc, which we recommend, you must have Silk Test Classic load the file in one of the following ways:
  • In the Use Path fields of the Runtime Option dialog box, enter the path of the directory that contains the class include file. By default, these files are installed in the Silk Test Classic installation directory. Then, in the Use Files field, specify the name and extension of the include file.
  • Insert a use statement in each script that needs to manipulate objects of the classes you just declared. Use the following format:
    use  "directory\file-name.inc"
    For example, to have Silk Test Classic load the class include file for third-party ActiveX controls, thirdpty.inc, which resides in the default directory c:\mydir, insert the following statement:
    use  "c:\mydir\thirdpty.inc"
  • If most of your work involves testing Visual Basic applications, you may want to add a use statement to your startup.inc file.