Importing an NUnit or .NET Assembly

  1. Click Model Script on the workflow bar. The Workflow - Model Script dialog box appears.
  2. In the File field, specify the archive that is to be tested. The archive is automatically added to the profile classpath. The available classes are then retrieved and displayed, sorted alphabetically in the Class field.
  3. From the Class list, select one of the available classes for testing.
    When you do not specify a specific archive for testing, the Model Script dialog enables you to specify a class that is available in the profile classpath. Type the fully qualified class name into the Class field. The available constructors and methods are automatically retrieved and displayed.
  4. From the Constructor list, select the appropriate constructor for instantiating the imported class. If a constructor is not selected (entry <No Instance Required – Only Static Calls>), only static methods will be displayed in the method list.
  5. In the Methods area, select the methods that you want to call.
  6. To filter the methods that are shown in the Methods area, perform the following steps:
    1. Click the Advanced Settings button (the funnel icon above the Methods area).
    2. Once you have customized filter settings, click OK to update the Methods area.
  7. To change general NUnit settings including traffic redirection values such as routed web service proxy classes, click the Active Profile Settings link. The Profile dialog opens to the General page for .NET projects (NUnit and .NET Testing project types).
    Note: Changes made to these settings may lead to different results. Selections made in the Class, Constructor, and Methods fields will be updated with the new results.
  8. Click OK.