|
Java DTV API 1.3 18-Nov-2009 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface TestCase
Defines the necessary methods that must be implemented by tests to be able to run in the provided test framework.
It mainly consists in a entry point and some helper methods. The design of the test framework is such that it is platform independent and allows different configuration of the test harness.
The test harness provides a means to forward command line arguments to a given test case. It is then the responsibility of every test case to read out the arguments that are supported by that particular test case. However, the following arguments are pre-defined by this application and should always be supported by every test cases:
-testid id
args
, it must be
the value returned by getTestId()
.-testtitle title
args
, it must be
the value returned by getTestTitle()
.-select case1,case2,case3...
TestCase
class.
This feature is not yet supported by this specification and
this argument is reserved for future use.-exclude case1,case2,case3...
select
argument but
does list those methods that are to be excluded. If both
select
and exclude
are used and list
the same test, then that test is considered to be excluded.
This feature is not yet supported by this specification and
this argument is reserved for future use.This list is subject to be extended in future version of this specification.
Individual test cases may add support for
new arguments, however these arguments must
be preceded by "-x-
" to indicate that these arguments
are not standardized: for example a given test case may
wanting to control a timeout through the -x-timeout
argument.
Method Summary | |
---|---|
int |
getTestId()
Returns the id of that test case. |
String |
getTestTitle()
Returns a short description of the test. |
Report |
run(String[] args)
Runs the test embodied by the implementation. |
Method Detail |
---|
Report run(String[] args)
args
- These are supplied in the description of this class and
allow a script to provide configuration information to a test, or to
reuse a test with different test values.
Report
object representing the outcome of the test.int getTestId()
It must be equal to the value
id
passed in -testid
if that
argument was passed to run(String[])
.
String getTestTitle()
It must be equal to the value
title
passed in -testtitle
if that
argument was passed to run(String[])
.
|
Java DTV API 1.3 18-Nov-2009 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |