com.funambol.client.test
Interface BasicUserCommands

All Known Implementing Classes:
BasicCommandRunner

public interface BasicUserCommands

This component lists all the commands available in the Android automatic test scripting language.


Field Summary
static java.lang.String BEGIN_TEST_COMMAND
          This instruction must be the first one at the beginning of a test.
static java.lang.String CHECK_ALERTED_SYNC_MODE_COMMAND
          This command checks the alerted sync mode of the last sync.
static java.lang.String CHECK_EXCHANGED_DATA_COMMAND
          This command checks the amount of items exchanged between the server and the client during the last synchronization (for a given source).
static java.lang.String CHECK_ITEMS_COUNT_COMMAND
          This command checks the number of items on the client for a specific type of data.
static java.lang.String CHECK_ITEMS_COUNT_ON_SERVER_COMMAND
          This command checks the number of items on the server for a specific type of data.
static java.lang.String CHECK_REMOTE_URI_COMMAND
          This command checks that the last sync was performed on the given URI.
static java.lang.String CHECK_REQUESTED_SYNC_MODE_COMMAND
          This command checks the requested sync mode of the last sync.
static java.lang.String END_TEST_COMMAND
          Terminates the commands of a test.
static java.lang.String FORCE_SLOW_SYNC_COMMAND
          This command forces the next sync to be a slow sync for the given source
static java.lang.String INCLUDE_COMMAND
          This command includes another script file.
static java.lang.String INTERRUPT_SYNC_AFTER_PHASE_COMMAND
          This command allows to interrupt the synchronization in some specific moments.
static java.lang.String KEY_PRESS_COMMAND
          This command simulates a user action via the device keypad.
static java.lang.String REFRESH_SERVER_COMMAND
          This command must used everytime the server shall be updated for both client or server side changes, and before any check command.
static java.lang.String START_MAIN_APP_COMMAND
          This command starts the main application.
static java.lang.String WAIT_COMMAND
          This command suspends the test execution for the given amount of time.
static java.lang.String WAIT_FOR_AUTH_TO_COMPLETE_COMMAND
          This command wait for a authentication process to start and finish within a maximum amount of time.
static java.lang.String WAIT_FOR_SYNC_TO_COMPLETE_COMMAND
          This command wait for a sync to start and finish within a maximum amount of time.
static java.lang.String WRITE_STRING_COMMAND
          This command simulates a user writing a text through the device keyboard.
 

Field Detail

BEGIN_TEST_COMMAND

static final java.lang.String BEGIN_TEST_COMMAND
This instruction must be the first one at the beginning of a test. For a single test script there is only one of such instruction, while a multi test script may contain several instances.

See Also:
Constant Field Values

END_TEST_COMMAND

static final java.lang.String END_TEST_COMMAND
Terminates the commands of a test.

See Also:
Constant Field Values

INCLUDE_COMMAND

static final java.lang.String INCLUDE_COMMAND
This command includes another script file.

See Also:
Constant Field Values

START_MAIN_APP_COMMAND

static final java.lang.String START_MAIN_APP_COMMAND
This command starts the main application. When the test starts the main application is not started until the script triggers this command. This instruction starts the FunambolClient Activity, so it is recommended to run the waitForActivity command in order to verify that it is started correctly.

See Also:
Constant Field Values

WAIT_COMMAND

static final java.lang.String WAIT_COMMAND
This command suspends the test execution for the given amount of time.

See Also:
Constant Field Values

WAIT_FOR_SYNC_TO_COMPLETE_COMMAND

static final java.lang.String WAIT_FOR_SYNC_TO_COMPLETE_COMMAND
This command wait for a sync to start and finish within a maximum amount of time. As soon as the sync terminates, the script continues its execution.

See Also:
Constant Field Values

WAIT_FOR_AUTH_TO_COMPLETE_COMMAND

static final java.lang.String WAIT_FOR_AUTH_TO_COMPLETE_COMMAND
This command wait for a authentication process to start and finish within a maximum amount of time. As soon as the authentication terminates, the script continues its execution.

See Also:
Constant Field Values

KEY_PRESS_COMMAND

static final java.lang.String KEY_PRESS_COMMAND
This command simulates a user action via the device keypad.

See Also:
Constant Field Values

WRITE_STRING_COMMAND

static final java.lang.String WRITE_STRING_COMMAND
This command simulates a user writing a text through the device keyboard.

See Also:
Constant Field Values

FORCE_SLOW_SYNC_COMMAND

static final java.lang.String FORCE_SLOW_SYNC_COMMAND
This command forces the next sync to be a slow sync for the given source

See Also:
Constant Field Values

CHECK_EXCHANGED_DATA_COMMAND

static final java.lang.String CHECK_EXCHANGED_DATA_COMMAND
This command checks the amount of items exchanged between the server and the client during the last synchronization (for a given source).

See Also:
Constant Field Values

CHECK_REQUESTED_SYNC_MODE_COMMAND

static final java.lang.String CHECK_REQUESTED_SYNC_MODE_COMMAND
This command checks the requested sync mode of the last sync.

See Also:
Constant Field Values

CHECK_ALERTED_SYNC_MODE_COMMAND

static final java.lang.String CHECK_ALERTED_SYNC_MODE_COMMAND
This command checks the alerted sync mode of the last sync.

See Also:
Constant Field Values

REFRESH_SERVER_COMMAND

static final java.lang.String REFRESH_SERVER_COMMAND
This command must used everytime the server shall be updated for both client or server side changes, and before any check command. It refreshes the server content for the specified source. If the source is not specified then it will refresh all the sources.

See Also:
Constant Field Values

CHECK_REMOTE_URI_COMMAND

static final java.lang.String CHECK_REMOTE_URI_COMMAND
This command checks that the last sync was performed on the given URI.

See Also:
Constant Field Values

CHECK_ITEMS_COUNT_COMMAND

static final java.lang.String CHECK_ITEMS_COUNT_COMMAND
This command checks the number of items on the client for a specific type of data. For example it is possible to count the number of contacts, events and so on.

See Also:
Constant Field Values

CHECK_ITEMS_COUNT_ON_SERVER_COMMAND

static final java.lang.String CHECK_ITEMS_COUNT_ON_SERVER_COMMAND
This command checks the number of items on the server for a specific type of data. For example it is possible to count the number of contacts, events and so on.

See Also:
Constant Field Values

INTERRUPT_SYNC_AFTER_PHASE_COMMAND

static final java.lang.String INTERRUPT_SYNC_AFTER_PHASE_COMMAND
This command allows to interrupt the synchronization in some specific moments.

See Also:
Constant Field Values


Copyright © 2001-2009 Funambol.