Editing stubs in a test suite

You can use the Test Suite editor to add, remove, and edit stubs in an existing test suite.

To add, remove or edit stubs in the Test Suite editor:

  1. In the Test Navigator or Package Explorer view, double-click a test suite. This opens the Test Suite editor.

  2. Click the Stubs tab.

  3. Use the list to edit the test cases contained in the current test suite:

    • Add: Allows you add an existing stub to the test suite. A stub can be reused from another test suite or duplicated from a stub already used in the current test suite.

    • Remove: Allows you to remove the selected stub from the current test suite.

    • Edit stub: Opens the stub in the Java editor.

    • Edit stubbed: Opens the original stubbed component in the Java editor.

  4. Save the test suite to apply your changes.

 

Related concepts

Test perspective
Stub data tables
Stub behavior

 

Related tasks

Creating stubs for Java components
Creating stubs for session beans

Related reference
Test Suite editor reference