RCPTT Test Runner is command-line tool for launching RCPTT tests.
It takes various options like path to RCPTT projects, application-under-test and other parameters, runs all tests and produces reports in HTML and JUnit XML formats.
Download and modify sample scripts below (parameters that need to be set/changed are explained in scipt commends):
The base command line for RCPTT runner looks like this (backslashes indicate line breaks instead, on Windows, ^ is used instead):
java <RCPTT Runner VM arguments>
-jar /path/to/runner/plugins/org.eclipse.equinox.launcher_1.3.100.v20150511-1540.jar \
-application org.eclipse.rcptt.runner.headless \
-data /path/to/runner/workspace \
<the rest of arguments in form of -argName argValue>
The table below summarizes information about arguments, arguments are more or less sorted by decreasing importance
Injection mechanism allows to install some extra features into application-under-test before test execution. This might be useful in two cases:
Injection mechanism currently does not resolve dependencies automatically, i.e. it just puts specified plugins/features into an application, but does not make sure that all prerequisites are installed.
In command line it is specified as argument with name injection.site where value is update site URL optionally followed by list of features separated by semicolon. If list of features is omitted, then all features from given site will be installed
It is possible to specify this argument several times to inject features from more than one update site.
This way is similar to dropping some plugins into eclipse/plugins folder:
It is possible to specify this argument several times to inject plugins from more than one directory
This table summarizes RCPTT runtime options which are rarely need to be modified and can be specified in testOptions argument. In RCPTT IDE these options can be set by going to Preferences -> RCP Testing Tool -> Advanced Options.