3.9.9 Saving Test Cases from an editor as a new Test Case

Jubula lets you save selected Test Cases from other Test Cases and from Test Suites . This lets you create a new keyword that contains the selected modules without having to manually find them and reuse them.

  1. Open the Test Case Editor or Test Suite Editor by double-clicking on the Test Case or Test Suite you want to edit.
  2. Select the Test Cases you want to save into the new Test Case by single-clicking them. Use »CTRL« to select more than one item.
  3. Right-click in the editor and select:
    Refactor --> Save as new...
    .
  4. When prompted, enter a name for the new Test Case .
  5. A new Test Case will be created containing the Test Cases you selected, with the data and component names they used in the current editor.
  6. The Test Case you just created is visible in the Test Case Browser .
\includegraphics[height=2cm]{danger} Use this feature if you have created reusable Test Cases that are correctly modularized, but you require them again (e.g. prerequisites for another Test Case ). If the sequence of actions you require is a recurring logical sequence (e.g. enter username, enter password, then click OK for a login dialog), then we strongly recommend using the Extract function 3.9.7 instead. This will give you one reusable module, and therefore one central place to make any changes should this sequence change.



Copyright BREDEX GmbH 2012. Made available under the Eclipse Public License v1.0.