4.3.7. Best practices for testing RCP AUTs
Prev | 4.3. Testing RCP AUTs | Next

### 4.3.7. Best practices for testing RCP AUTs

Perspective layout reset
One of the features of RCP AUTs 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 AUTs 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, so we recommend adding the desired workspace as an AUT argument in the AUT configuration (Section 3.8.1, “Configuring AUTs to be started from the ITE”). The parameter used to specify the workspace is -data ''WORKSPACE''.