3.23.3 Observing tests in Java AUT's

\includegraphics[height=2cm]{lightbulb} If you have not already done so, we recommend reading the tips section for the observation mode before beginning observing 3.23.1.

  1. In Java AUT's (Swing and SWT/RCP) the observation mode will automatically record your actions in the user interface. Each action is created as a Test Step in the Test Case Editor for this observed Test Case .

    \includegraphics[height=2cm]{lightbulb} See the section later on performing check actions in the observation mode 3.23.3.2.

  2. You can also see which actions have been recorded in the console (3.31).

    Figure 3.31: The observation console
    Image obsconsole

    \includegraphics[height=2cm]{lightbulb} If you are creating tests for SWT and RCP AUT's , check that you have set the keyboard layout correctly in the Project properties 3.7.2.4 and that you have defined the right toolkit for the Project 3.5.2.2.

  3. Component names for your components are automatically generated and assigned to the technical names from the AUT when you observe Test Steps . If Jubula notices that you have already created and mapped a component name for a technical component, it will use this name instead of creating a new one.
  4. Once you have recorded the actions you need, stop the observation mode by clicking on the "stop observing Test Case " button
    Image stopcam stop observation

    on the main toolbar.
  5. Save the Test Case editor containing the Test Steps you have just observed.
  6. Check the Test Steps and their parameter values which have been recorded. You will notice that any text that contains non-alphanumeric characters is enclosed in single quotes. Single quotes are used by Jubula to cancel any meaning of the characters within the quotes.
    \includegraphics[height=2cm]{lightbulb} Run the test that you have just recorded to see if it works as you intended. If not, you may need to make some changes to the parameter values, or you may have to supplement the Test Case with Test Cases from the library 3.11.2.1.



Subsections

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