opencard.tests.terminal
Class CTTestCase
java.lang.Object
|
+--opencard.tests.testframe.TestCase
|
+--opencard.tests.terminal.CTTestCase
- Direct Known Subclasses:
- PCSCMfcTest1, PCSCMfcTest10, PCSCMfcTest11, PCSCMfcTest2, PCSCMfcTest3, PCSCMfcTest4, PCSCMfcTest5, PCSCMfcTest6, PCSCMfcTest7, PCSCMfcTest8, PCSCMfcTest9
- public abstract class CTTestCase
- extends TestCase
CTTestCase.
Three Entry Points to start the testcase
- main()
- start()
- test()
- Version:
- $Id: CTTestCase.java,v 1.1 1999/12/03 09:31:35 damke Exp $
|
Field Summary |
protected java.lang.String[] |
testCaseParams
A Array of String which can be used by individual test cases
to set specific parameters.
|
|
Constructor Summary |
CTTestCase()
TestCase constructor comment. |
|
Method Summary |
void |
informUser()
Default for user information |
int |
start(java.lang.String[] args)
TestCase execution. |
void |
startup()
Default for Test Case Startup |
void |
terminate(SmartCard card)
Default for Test Case termination |
abstract int |
testCase(SmartCard card)
Overwrite this method with your Test Case logic |
int |
testCase(java.lang.String[] args,
SmartCard card)
start the test case with passing parametes |
SmartCard |
waitForCard()
Default is: take any card using OCF's waitForCard()-methods
Please overwrite this method if you prefer other ways to get a smartCard |
| Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
testCaseParams
protected java.lang.String[] testCaseParams
- A Array of String which can be used by individual test cases
to set specific parameters.
The parameters can be passed by either on of those methods
- the main(String[] args),
- the start(String[] args) or
- the testCase(String[] args, SmartCard card)
CTTestCase
public CTTestCase()
- TestCase constructor comment.
start
public int start(java.lang.String[] args)
- TestCase execution.
- Overrides:
- start in class TestCase
informUser
public void informUser()
- Default for user information
startup
public void startup()
throws TestFailedException
- Default for Test Case Startup
waitForCard
public SmartCard waitForCard()
throws TestFailedException,
TestInitException
- Default is: take any card using OCF's waitForCard()-methods
Please overwrite this method if you prefer other ways to get a smartCard
terminate
public void terminate(SmartCard card)
throws TestFailedException,
TestInitException
- Default for Test Case termination
testCase
public int testCase(java.lang.String[] args,
SmartCard card)
throws TestFailedException,
TestInitException
- start the test case with passing parametes
testCase
public abstract int testCase(SmartCard card)
throws TestFailedException,
TestInitException
- Overwrite this method with your Test Case logic
|