| java.lang.Object javax.microedition.midlet.MIDlet com.sun.midp.installer.AutoTesterBase com.sun.midp.installer.AutoTesterMulti
AutoTesterMulti | public class AutoTesterMulti extends AutoTesterBase implements AutoTesterInterface(Code) | | Fetches a list of URLs pointing to test suites to install, then,
for each specified test suite in parallel, installs/updates the suite,
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 MIDlet uses these application properties as arguments:
- arg-0: URL for html page with links to test suites. This html page
looks like this:
Suite1
Suite2
- 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.
- 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.
|
Constructor Summary | |
public | AutoTesterMulti() Create and initialize a new auto tester MIDlet. |
Method Summary | |
public void | installAndPerformTests(MIDletSuiteStorage inp_storage, Installer inp_installer, String inp_url) Get list of test suites, for each suite start a thread
that performs testing, wait until all threads have finished. | public boolean | restoreSession() Restore the data from the last session, since this version of the
autotester does not have sessions it just returns false. | public void | run() Run the installer. |
installList | Vector installList(Code) | | Info about suites to install
|
AutoTesterMulti | public AutoTesterMulti()(Code) | | Create and initialize a new auto tester MIDlet.
|
installAndPerformTests | public void installAndPerformTests(MIDletSuiteStorage inp_storage, Installer inp_installer, String inp_url)(Code) | | Get list of test suites, for each suite start a thread
that performs testing, wait until all threads have finished.
Parameters: inp_storage - MIDletSuiteStorage object Parameters: inp_installer - Installer object Parameters: inp_url - URL for the html page with links to suites |
restoreSession | public boolean restoreSession()(Code) | | Restore the data from the last session, since this version of the
autotester does not have sessions it just returns false.
true if there was data saved from the last session |
run | public void run()(Code) | | Run the installer.
|
|
|