2.6. Sample setup of the API usage
Prev | Chapter 2. Writing UI tests via client API | Next

## 2.6. Sample setup of the API usage

Figure 2.6. Starting the RCP-SimpleAdder AUT via API

A fully executable example setup for the RCP toolkit showing a basic SimpleAdder AUT start - see Figure 2.6, “Starting the RCP-SimpleAdder AUT via API” - and test run - see Figure 2.7, “Executing a first test” - can be found in the git-Repository contained within every ITE installation. It's located in <ITEInstallationFolder>/development/git/org.eclipse.jubula.core.git. Simply create a clone of that repository and checkout the Eclipse projects org.eclipse.jubula.examples.api.adder.rcp.*. There is an individual preconfigured project for all of the three shapes the API may be consumed as:

- plain JAR: The project for this example setup is org.eclipse.jubula.examples.api.adder.rcp.jar . You still have to adjust the path to the (by default linked to relative / local artifacts located within the git-clone itself) library-directory (lib). Simply adjust this path to point to e.g. <ITEInstallationFolder>/development/api/JARs/ .

- m2 / maven: The project for this example setup is org.eclipse.jubula.examples.api.adder.rcp.m2 . You still have to adjust the path to the local maven repository within the pom.xml of that project and point to the one included in the installation: <ITEInstallationFolder>/development/api/m2-repo .

- OSGi: The project for this example setup is org.eclipse.jubula.examples.api.adder.rcp.osgi . You still have to add the (e.g. local) Jubula p2-repository and its artifacts to your target platform: <ITEInstallationFolder>/development/org.eclipse.jubula.repo.zip

Figure 2.7. Executing a first test