4.2.6 Best practices for testing RCP AUT's

Perspective layout reset
One of the features of RCP AUT's is that they generally remember the state of the AUT (position of views, which perspective was open) when the AUT is closed. In order to make tests as robust as possible, we recommend starting each use case with a module to reset the perspective to its defaults, and testing with this default perspective.

Workspace choice
RCP AUT's use a workspace to save user-specific preferences. The choice of workspace is usually offered before the AUT starts. This dialog is not currently testable by Jubula , so we recommend adding the desired workspace as an AUT argument in the AUT configuration 3.5.3. The parameter used to specify the workspace is "-data ''WORKSPACE''".



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