| java.lang.Object javax.microedition.midlet.MIDlet com.sun.midp.installer.AutoTesterBase
All known Subclasses: com.sun.midp.installer.AutoTester, com.sun.midp.installer.AutoTesterMulti,
AutoTesterBase | class AutoTesterBase extends MIDlet implements CommandListener,Runnable(Code) | | Installs/Updates a test suite, runs the first MIDlet in the suite in a loop
until the new version of the suite is not found, then removes the suite.
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. The domain name
may be followed by a colon and a list of permissions that must be allowed
even if they are not listed in the MIDlet-Permissions attribute in the
application descriptor file. Instead of the list a keyword "all" can be
specified indicating that all permissions must be allowed, for example:
operator:all.
If arg-0 is not given then a form will be used to query the tester for
the arguments.
|
Constructor Summary | |
| AutoTesterBase() Create and initialize a new auto tester MIDlet. |
ALERT_TIMEOUT | final static int ALERT_TIMEOUT(Code) | | Standard timeout for alerts.
|
defaultUrl | final static String defaultUrl(Code) | | Contains the default URL.
|
display | Display display(Code) | | Display for this MIDlet.
|
domain | String domain(Code) | | Security domain to assign to unsigned suites.
|
domainTextField | TextField domainTextField(Code) | | Contains the domain the user typed in.
|
endCmd | Command endCmd(Code) | | Command object for "Exit" command in the URL screen.
|
installListener | protected InstallListener installListener(Code) | | The InstallListener to use when creating the Installer.
|
loopCount | int loopCount(Code) | | How many iterations to run the suite
|
parameterForm | Form parameterForm(Code) | | Parameter form if there is not URL parameter given.
|
testCmd | Command testCmd(Code) | | Command object for URL screen start testing.
|
urlTextField | TextField urlTextField(Code) | | Contains the URL the user typed in.
|
AutoTesterBase | AutoTesterBase()(Code) | | Create and initialize a new auto tester MIDlet.
|
commandAction | public void commandAction(Command c, Displayable s)(Code) | | Respond to a command issued on any Screen.
Parameters: c - command activated by the user Parameters: s - the Displayable the command was on. |
destroyApp | public void destroyApp(boolean unconditional)(Code) | | Destroy cleans up.
Parameters: unconditional - is ignored; this object alwaysdestroys itself when requested. |
displayException | void displayException(String title, String message)(Code) | | Display an exception to the user, with a done command.
Parameters: title - exception form's title Parameters: message - exception message |
getFirstMIDletOfSuite | static MIDletInfo getFirstMIDletOfSuite(int suiteId, MIDletSuiteStorage midletSuiteStorage)(Code) | | Returns the class name of the first MIDlet of the newly installed
suite.
Parameters: suiteId - ID of the MIDlet Suite Parameters: midletSuiteStorage - MIDlet suite storage to look up properties an object with the class name and display name ofthe suite's MIDlet-1 property |
getURLTextAndTest | void getURLTextAndTest()(Code) | | Save the URL setting the user entered in to the urlTextBox.
|
getUrl | void getUrl()(Code) | | Ask the user for the URL.
|
handleInstallerException | void handleInstallerException(int suiteId, Throwable ex)(Code) | | Handles an installer exceptions.
Parameters: suiteId - ID of the suite being installed, can be null Parameters: ex - exception to handle |
messageForInvalidJadException | static String messageForInvalidJadException(InvalidJadException ije)(Code) | | Returns the associated message for the given exception.
This function is here instead of in the exception its self because
it not need on devices, it needed only on development platforms that
have command line interface.
Parameters: ije - reason reason code for the exception associated message for the given reason |
pauseApp | public void pauseApp()(Code) | | Pause; there are no resources that need to be released.
|
run | public void run()(Code) | | Run the installer.
|
startApp | public void startApp()(Code) | | Start.
|
startBackgroundTester | void startBackgroundTester()(Code) | | Start the background tester.
|
|
|