| com.sun.midp.installer.AutoTesterBase com.sun.midp.installer.AutoTester com.sun.midp.installer.CHAutoTester
CHAutoTester | public class CHAutoTester extends AutoTester implements InstallListener(Code) | | Installs/Updates a test suite for CHAPI, runs the first MIDlet
in the suite in a loop
specified number of iterations or until the new version of the suite is not
found, then removes the suite.
The modifications for CHAPI enable the security checks during
the installation by enabling the listener.
The security prompts are handled by the installer.
The listener responds without prompting to requests to install the jar and
and to delete the RMS storage of the application (if ask).
The MIDlet uses these application properties as arguments:
- arg-0: URL for the test suite
- arg-1: Used to override the default domain used when installing
an unsigned suite. The default is maximum to allow the runtime API tests
be performed automatically without tester interaction.
- arg-2: Integer number, specifying how many iterations to run
the suite. If argument is not given or less then zero, then suite
will be run until the new version of the suite is not found.
If arg-0 is not given then a form will be used to query the tester for
the arguments.
|
Method Summary | |
public boolean | confirmAuthPath(InstallState state) Called with the current state of the install so the user can be
asked to confirm the authentication path.
If false is returned, the an I/O exception thrown and
Installer.wasStopped will return true if called.
Parameters: state - current state of the install. | public boolean | confirmJarDownload(InstallState state) Called with the current state of the install so the user can be
asked to confirm the jar download.
If false is returned, the an I/O exception thrown and
Installer.wasStopped will return true if called.
Parameters: state - current state of the install. | public void | installAndPerformTests(MIDletSuiteStorage midletSuiteStorage, Installer inp_installer, String inp_url) Installs and performs the tests. | public boolean | keepRMS(InstallState state) Called with the current state of the install so the user can be
asked to confirm if the RMS data should be kept for new version of
an updated suite.
Parameters: state - current state of the install. | public void | updateStatus(int status, InstallState state) Called with the current status of the install. | public boolean | warnUser(InstallState state) Called with the current state of the install so the user can be
asked to override the warning. |
confirmAuthPath | public boolean confirmAuthPath(InstallState state)(Code) | | Called with the current state of the install so the user can be
asked to confirm the authentication path.
If false is returned, the an I/O exception thrown and
Installer.wasStopped will return true if called.
Parameters: state - current state of the install. true to continue the install |
confirmJarDownload | public boolean confirmJarDownload(InstallState state)(Code) | | Called with the current state of the install so the user can be
asked to confirm the jar download.
If false is returned, the an I/O exception thrown and
Installer.wasStopped will return true if called.
Parameters: state - current state of the install. true; this installer always continues |
installAndPerformTests | public void installAndPerformTests(MIDletSuiteStorage midletSuiteStorage, Installer inp_installer, String inp_url)(Code) | | Installs and performs the tests.
Parameters: midletSuiteStorage - MIDletSuiteStorage object Parameters: inp_installer - Installer object Parameters: inp_url - URL of the test suite |
keepRMS | public boolean keepRMS(InstallState state)(Code) | | Called with the current state of the install so the user can be
asked to confirm if the RMS data should be kept for new version of
an updated suite.
Parameters: state - current state of the install. false; never keep the RMS data if asked. |
updateStatus | public void updateStatus(int status, InstallState state)(Code) | | Called with the current status of the install. See
Installer for the status codes.
Parameters: status - current status of the install. Parameters: state - current state of the install. |
warnUser | public boolean warnUser(InstallState state)(Code) | | Called with the current state of the install so the user can be
asked to override the warning. To get the warning from the state
call
InstallState.getLastException . If false is returned,
the last exception in the state will be thrown and
Installer.wasStopped will return true if called.
Parameters: state - current state of the install. true this installer does not stop. |
Fields inherited from com.sun.midp.installer.AutoTester | int suiteId(Code)(Java Doc)
|
|
|