Q7 Runner is headless cross-platform eclipse application. Just download it from http://dl.xored.com/q7/1.2.22/products/q7.runner-1.2.22.zip, unpack and you are ready to go.
Node ID and license file
In order to function Q7 Runner requires node-locked license file. To get Node ID of current machine, the following command line can be used:
The output of this command should look like this:
Starting from version 1.2 it is possible to get a Q7 runner license file without contacting support. To get an evaluation license file, follow these steps:
- Go to http://www.xored.com/products/q7/q7-license/
Q7 Runnerfrom Product combo box.
- Fill the rest of the fields and submit the form.
- You'll get an e-mail with your credentials from http://licensing.xored.com
- Log in to your profile, find a Q7 Runner license, paste your node ID and press 'Activate' button
- Download a license file and use it with Q7 Runner.
Usage and command-line options
The base command line for Q7 runner looks like this:
Basic command-line options
The table below summarizes information about arguments, arguments are more or less sorted by decreasing importance
Path to Q7 license file. Default value is
Platform-specific path to application under test
Semicolon-separated list of project folders with Q7 tests or resources to link
File prefix for application-under-test's workspace. The workspace prefix given will be suffixed with incrementing restart index to make sure
File path to save JUnit report with test exec results
File path to save HTML report with test exec results
File prefix for application-under-test process output. It will be appended with incrementing restart index for the same reason as
Semicolon-separated list of Q7 Runtime options (see description below)
List of arguments for application-under-test separated by semicolon.
List of arguments for application-under-test's JVM separated by semicolon.
|suites||List of Test suite names separated by comma. Will include all test cases from suites. All other tests will be ignored.||No||1.2.0|
|Semicolon-separated list of tags. Test cases containing any of listed tags are not be executed||skipExecution||No||1.1|
Java VM to use with application-under-test. By default it is set to the same Java VM which is used for Q7 Runner launching
Overall execution timeout in seconds, default value is 18000 (5 hours)
application-under-test connection timeout in seconds, default value is 300 (5 mins). Very unlikely requires to be increased
|report||Generate report with custom reporting renderer. "id;path" format should be used to specify report renderer id and path to export.||No||1.2.1|
|noSecurityOverride||If specified, -eclipse.keyring parameter will not be specified. Also -testOptions could contain "overrideSecurityStorage=false" for same effect.||No||1.2.1|
|memoryUsage||If specified, AUT's memory usage information will be printed to the console.||No||1.2.23|
Injection mechanism allows to install some extra features into application-under-test before test execution. This might be useful in two cases:
- The project being tested is distributed via update site, so there's no default all-in-one application-under-test. In this case Eclipse SDK (or other eclipse package) can be used as application-under-test and plugins being tested will be installed into it.
- (rarely) Application-under-test contains some extra plugins which are required for testing, but not needed in product for end user
Injecting from Update Site
This option is similar to installing something into Eclipse application via UI – by specifying update site URL and list of features to be 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
Injection from directory
This way is similar to dropping some plugins into
It is possible to specify this argument several times to inject plugins from more than one directory
Q7 Runtime options
This table summarizes Q7 runtime options which are rarely need to be modified and can be specified in
testOptions argument. In Q7 IDE these options can be set by going to Preferences -> Q7 -> Advanced Options.
|testExecTimeout||300||Timeout for a single test execution in seconds|
Context applying timeout.
If there are any jobs started after context applying, wait for their completion during this time (in milliseconds).
Timeout in milliseconds for jobs scheduled from eclipse Debug plugin.
If job reschedules itself more than times specified by this parameter, Q7 stops setting delay to 0 (see jobScheduleDelayedMaxtime parameter).
When job is in sleeping mode (see jobTreatAsSleeingTimeout option), execute commands with given delay (in milliseconds) between commands.
Wait timeout in milliseconds for stepping jobs (see jobTreatAsSleepingTimeout and jobSleepingStepTime)
If job executes more than this time (in milliseconds) and sleeps (i.e. executing Thread.sleep() or Object.wait()), then Q7 considers that this job is waiting for some user actions and continues to the next command.
Whether to capture screenshot from AUT on every ECL command
If Display.timerExec is scheduled for the delay less than this value (in milliseconds), set delay to 0.
How many seconds Q7 should wait for application startup.
Job hang skip timeout in milliseconds. If job is running longer than this time, Q7 Runtime considers that it is hung and moves to the next command.
Max job scheduled delay to be waited for in milliseconds. If job is scheduled with delay less than this value, Q7 sets delay to 0 and waits for job completion (also see jobNullifyRescheduleMaxValue). Otherwise Q7 Runtime does not wait for job completion if it is scheduled with a delay greater than this value.
Kill AUT on connect error. Whether Q7 should kill application-under-test if it cannot connect to it.
Wait for a given milliseconds between each ECL command. This can be useful when things go wrong at some point and it is hard to determine when by looking at execution. Setting this value to, say, 500, allows to inspect Q7 actions in more details.
Forces garbage collection on workspace cleanup.
Use following EMF features for part identity
Non EMF object identity method
EMF object identity by 'name feature' support
Use text content for part identity
These options can be set in command line like this:
Below is a typical command line for executing a single project with Q7 tests with saving JUnit and HTML reports. We assume the following:
- Q7 Runner is downloaded and unpacked into
- Application-under-test is downloaded and unpacked into
- Q7 Project with tests is stored in
Note that on Windows the caret symbol (
^) should be used instead of backslash for line continuation