|
|
|
Artima SuiteRunner |
Why |
Getting Started |
Tutorial |
Get Help |
Print |
Email |
First Page |
Previous |
Next
|
|
Sponsored Link •
|
|
Advertisement
|
account.srj:
java -jar suiterunner-[release].jar account.srj
A recipe file is a Java properties file that supplies information needed by Artima SuiteRunner to run a suite of tests.
Recipe files contain values for three properties: org.suiterunner.Runpath, org.suiterunner.Suites, and
org.suiterunner.Reporters. The contents of account.srj are:
org.suiterunner.Runpath=-p "example" org.suiterunner.Suites=-s com.artima.examples.account.ex6test.AccountSuite org.suiterunner.Reporters=-g
In account.srj:
org.suiterunner.Runpath (-p "example") specifies a runpath with a single
directory, example.
org.suiterunner.Suites (-s com.artima.examples.account.ex6test.AccountSuite)
indicates Artima SuiteRunner should load the specified class, a subclass of org.suiterunner.Suite,
and invoke its execute method.
org.suiterunner.Reporters (-g)
indicates that Artima SuiteRunner will display its graphical user interface (GUI) and show the
results of the run there.
When invoked via the previous command that specifies account.srj as a command line parameter,
Artima SuiteRunner will:
URLClassLoader that can load classes from the example directory, the directory specified via
the recipe file's org.suiterunner.Runpath property.
URLClassLoader, load class com.artima.examples.account.ex6test.AccountSuite, the
class specified in via the recipe file's org.suiterunner.Suites property.
com.artima.examples.account.ex6test.AccountSuite class is a subclass of org.suiterunner.Suite.
com.artima.examples.account.ex6test.AccountSuite.
execute on the com.artima.examples.account.ex6test.AccountSuite instance.
org.suiterunner.Reporters property.
|
Sponsored Links
|