3.11.1 Creating Test Cases

Most of the time spent writing tests will involve creating and editing Test Cases .

To create a Test Case , you must have created or opened a Project 3.5.

The Test Case Browser must also be visible. If it is not visible, change to the Functional Test Specification Perspective perspective and select:
Window --> Show View --> Test Case Browser
.

  1. Create a Test Case by using the context-sensitive menu in the Test Case Browser :
    New --> New Test Case
    .
    \includegraphics[height=2cm]{lightbulb} You can also create Test Cases with a double-click on the "Test Cases :" root entry or on a category in the Test Case Browser .

  2. A dialog to name the Test Case will appear (3.16). Because Jubula is keyword-driven, it is important to name Test Cases meaningfully - you will be able to read your tests easily and quickly choose which Test Case you need 5.2.1.

    Figure 3.16: New Test Case Dialog
    Image newtestcasedialog

  3. Click "OK".
  4. This creates a new Test Case with that name in the Test Case Browser 3.17.

    Figure 3.17: Test Case in Test Case Browser
    Image newtestcaseinbrowser

\includegraphics[height=2cm]{lightbulb} See the Best Practices section for information on how to best structure your Test Cases and tests 5.1.1.3.
Next steps
The next step is to add Test Cases from the library of Test Cases to this Test Case 3.11.2.

You can also:



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