4.2.4.1 Naming components

Although components can be located in the AUT even when they are not named by the developers, naming components is nevertheless a good idea. In SWT and RCP there is no method like the Swing setName method to name components in the program code. However, you can improve the testability of your application by using the following method in your SWT or RCP code for the current component class: setData(String key, String ComponentName). For the key, use TEST_COMP_NAME.

Even if you do not name components, you can choose to have unique names generated for your components in the AUT in the AUT dialog 3.6.



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