01: /*
02: *
03: *
04: * Copyright 1990-2007 Sun Microsystems, Inc. All Rights Reserved.
05: * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER
06: *
07: * This program is free software; you can redistribute it and/or
08: * modify it under the terms of the GNU General Public License version
09: * 2 only, as published by the Free Software Foundation.
10: *
11: * This program is distributed in the hope that it will be useful, but
12: * WITHOUT ANY WARRANTY; without even the implied warranty of
13: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14: * General Public License version 2 for more details (a copy is
15: * included at /legal/license.txt).
16: *
17: * You should have received a copy of the GNU General Public License
18: * version 2 along with this work; if not, write to the Free Software
19: * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
20: * 02110-1301 USA
21: *
22: * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa
23: * Clara, CA 95054 or visit www.sun.com if you need additional
24: * information or have any questions.
25: */
26:
27: package com.sun.midp.installer;
28:
29: import com.sun.midp.midletsuite.MIDletSuiteStorage;
30:
31: /**
32: * Installs/Updates a test suite, runs the first MIDlet in the suite in a loop
33: * until the new version of the suite is not found, then removes the suite.
34: * <p>
35: * The MIDlet uses these application properties as arguments: </p>
36: * <ol>
37: * <li>arg-0: URL for the test suite
38: * <li>arg-1: Used to override the default domain used when installing
39: * an unsigned suite. The default is maximum to allow the runtime API tests
40: * be performed automatically without tester interaction.
41: * </ol>
42: * <p>
43: * If arg-0 is not given then a form will be used to query the tester for
44: * the arguments.</p>
45: */
46: interface AutoTesterInterface {
47: /**
48: * Restore the data from the last session.
49: *
50: * @return true if there was data saved from the last session
51: */
52: public boolean restoreSession();
53:
54: /**
55: * Installs and performs the tests.
56: *
57: * @param midletSuiteStorage MIDletSuiteStorage object
58: * @param inp_installer Installer object
59: * @param inp_url URL of the test suite
60: */
61: public void installAndPerformTests(
62: MIDletSuiteStorage midletSuiteStorage,
63: Installer inp_installer, String inp_url);
64: }
|