...
No Format |
---|
java -Dhttp.proxyHost=my-local-proxy -Dhttp.proxyPort=8080 -jar ... |
Examples
Typical usage
Sample Windows launch script
A script like this can be used as a starting point for creating a cmd-script for launching Q7 runner on Windows
No Format |
---|
REM !!! Replace the two values below with your Q7 account information (http://q7.xored.com/settings/balance)
SET Q7_CLIENT_ID=q7 client id
SET Q7_CLIENT_SECRET=q7 client secret
REM !!! Replace the value below with the path to the directory there
REM application under test (AUT) is located.
SET AUT=C:\absolute\path\to\your\application\directory
REM The place there Q7 tests project is located, by default that is
REM q7workspace directory under user home directory
SET PROJECT=%USERPROFILE%\q7workspace
REM Path to unpacked Q7 Runner, default is C:\Users\User\q7runner
SET RUNNER=%USERPROFILE%\q7runner
REM Path to directory with test results, default is C:\Users\User\q7results
SET RESULTS=%USERPROFILE%\q7results
REM Remove results dir if present
IF NOT EXIST %RESULTS% GOTO NORESULTS
RMDIR /S /Q %RESULTS%
:NORESULTS
md %RESULTS%
java -jar %RUNNER%/plugins/org.eclipse.equinox.launcher_1.2.0.v20110502.jar ^
-application com.xored.q7.runner.headless ^
-data %RESULTS%/runner-workspace/ ^
-aut %AUT% ^
-autWsPrefix %RESULTS%/aut-workspace ^
-autConsolePrefix %RESULTS%/aut-output ^
-htmlReport %RESULTS%/q7report.html ^
-junitReport %RESULTS%/q7report.xml ^
-import %PROJECT% ^
-clientId %Q7_CLIENT_ID% ^
-clientSecret %Q7_CLIENT_SECRET% |
Sample Mac OS X/linux command
Below is a typical command line for executing a single project with Q7 tests with saving JUnit and HTML reports. We assume the following:
...