com.funambol.client.test
Interface EventsUserCommands

All Known Implementing Classes:
CalendarCommandRunner

public interface EventsUserCommands

This component lists all the contacts-related commands available in the automatic test scripting language.


Field Summary
static java.lang.String CHECK_DELETED_EVENT_COMMAND
          This command can be used to check that a deleted event on the server has been correctly deleted in the client.
static java.lang.String CHECK_DELETED_EVENT_ON_SERVER_COMMAND
          This command can be used to check that a deleted event sent to the server has been correctly deleted by the server.
static java.lang.String CHECK_EVENT_EXCEPTION_COMMAND
          Check recurrence rule exceptions for event and asserts on its value.
static java.lang.String CHECK_EVENT_RECURRENCE_COMMAND
          Check recurrence rule for the current event and asserts on its value.
static java.lang.String CHECK_EVENT_VCAL_COMMAND
          This command checks that an event generated by the client is represented by the given vcal.
static java.lang.String CHECK_EVENT_VCAL_ON_SERVER_COMMAND
           
static java.lang.String CHECK_NEW_EVENT_COMMAND
          This command can be used to check that a new event created on the server has been correctly received by the client and has the same content of the server's event as expected.
static java.lang.String CHECK_NEW_EVENT_ON_SERVER_COMMAND
          This command can be used to check that a new event sent to the server has been correctly received and has the same content of the device's event as expected.
static java.lang.String CHECK_RAW_EVENT_AS_VCAL
           
static java.lang.String CHECK_RAW_EVENT_FIELD
           
static java.lang.String CHECK_RAW_REMINDER_FIELD
           
static java.lang.String CHECK_UPDATED_EVENT_COMMAND
          This command can be used to check that an updated event on the server has been correctly received by the client and has the same content of the server's event as expected.
static java.lang.String CHECK_UPDATED_EVENT_ON_SERVER_COMMAND
          This command can used to check that an updated event sent to the server has been correctly received and has the same content of the device's event as expected.
static java.lang.String CREATE_EMPTY_EVENT_COMMAND
          This command can be used to simulate an event addition.
static java.lang.String CREATE_EMPTY_EVENT_ON_SERVER_COMMAND
          This command can be used to simulate an event addition on the server.
static java.lang.String CREATE_EMPTY_RAW_EVENT
           
static java.lang.String DELETE_ALL_EVENTS_COMMAND
          This command can be used to simulate the deletion of all the events stored in the device.
static java.lang.String DELETE_ALL_EVENTS_ON_SERVER_COMMAND
          This command can used to simulate the deletion of all the events stored in the server.
static java.lang.String DELETE_EVENT_COMMAND
          This command can be used to simulate an event deletion.
static java.lang.String DELETE_EVENT_ON_SERVER_COMMAND
          This command can be used to simulate an event deletion on the server.
static java.lang.String EMPTY_EVENT_FIELD_COMMAND
          This command can be used to simulate an event update.
static java.lang.String IMPORT_EVENT_ON_SERVER_COMMAND
          This command allows to import a vCaL content form a file on the server.
static java.lang.String LOAD_EVENT_COMMAND
          This command can be used to simulate an event update.
static java.lang.String LOAD_EVENT_ON_SERVER_COMMAND
          This command can be used to simulate an event update on the server.
static java.lang.String RESET_EVENTS_COMMAND
          This command resets events client/server side and guarantees client and server are in sync.
static java.lang.String SAVE_EVENT_COMMAND
          This command can be used to simulate an event addition or update.
static java.lang.String SAVE_EVENT_ON_SERVER_COMMAND
          This command can be used to simulate an event addition or update on the server.
static java.lang.String SAVE_RAW_EVENT
           
static java.lang.String SET_EVENT_AS_VCAL_COMMAND
          This command allows to fill an event with a VCal.
static java.lang.String SET_EVENT_FIELD_COMMAND
          This command can be used while simulating an event additon or update.
static java.lang.String SET_EVENT_FROM_SERVER
          This command simulates an item received from the server.
static java.lang.String SET_EVENT_RECURRENCE_FIELD_COMMAND
          This command allows to fill the recurrence rule for the event currently edited.
static java.lang.String SET_RAW_EVENT_FIELD
           
static java.lang.String SET_RAW_REMINDER_FIELD
           
 

Field Detail

CREATE_EMPTY_EVENT_COMMAND

static final java.lang.String CREATE_EMPTY_EVENT_COMMAND
This command can be used to simulate an event addition. It creates an empty event in memory which will be saved as soon as the SaveEvent command is called. Once this command is called you shall set the event's summary SetEventField command before saving it.

See Also:
Constant Field Values

LOAD_EVENT_COMMAND

static final java.lang.String LOAD_EVENT_COMMAND
This command can be used to simulate an event update. It loads an existing event identified by the given summary. If such an event is not found, then the test fails.

See Also:
Constant Field Values

SET_EVENT_FIELD_COMMAND

static final java.lang.String SET_EVENT_FIELD_COMMAND
This command can be used while simulating an event additon or update. It sets the given field to the given value.

See Also:
Constant Field Values

EMPTY_EVENT_FIELD_COMMAND

static final java.lang.String EMPTY_EVENT_FIELD_COMMAND
This command can be used to simulate an event update. It empties the value of the specified field. See SetEventField to see the available fields.

See Also:
Constant Field Values

SAVE_EVENT_COMMAND

static final java.lang.String SAVE_EVENT_COMMAND
This command can be used to simulate an event addition or update. It saves the event created or loaded through the CreateEmptyEvent and LoadEvent respectively.

See Also:
Constant Field Values

DELETE_EVENT_COMMAND

static final java.lang.String DELETE_EVENT_COMMAND
This command can be used to simulate an event deletion. It removes from the device store the event identified by the given summary. If an event with the given summary is not found, then the test fails.

See Also:
Constant Field Values

DELETE_ALL_EVENTS_COMMAND

static final java.lang.String DELETE_ALL_EVENTS_COMMAND
This command can be used to simulate the deletion of all the events stored in the device.

See Also:
Constant Field Values

CHECK_NEW_EVENT_COMMAND

static final java.lang.String CHECK_NEW_EVENT_COMMAND
This command can be used to check that a new event created on the server has been correctly received by the client and has the same content of the server's event as expected. Remember to run RefreshServer before running check commands.

See Also:
Constant Field Values

CHECK_UPDATED_EVENT_COMMAND

static final java.lang.String CHECK_UPDATED_EVENT_COMMAND
This command can be used to check that an updated event on the server has been correctly received by the client and has the same content of the server's event as expected. Remember to run RefreshServer before running check commands.

See Also:
Constant Field Values

CHECK_DELETED_EVENT_COMMAND

static final java.lang.String CHECK_DELETED_EVENT_COMMAND
This command can be used to check that a deleted event on the server has been correctly deleted in the client. Remember to run RefreshServer before running check commands.

See Also:
Constant Field Values

CHECK_NEW_EVENT_ON_SERVER_COMMAND

static final java.lang.String CHECK_NEW_EVENT_ON_SERVER_COMMAND
This command can be used to check that a new event sent to the server has been correctly received and has the same content of the device's event as expected. Remember to run RefreshServer before running check commands.

See Also:
Constant Field Values

CHECK_UPDATED_EVENT_ON_SERVER_COMMAND

static final java.lang.String CHECK_UPDATED_EVENT_ON_SERVER_COMMAND
This command can used to check that an updated event sent to the server has been correctly received and has the same content of the device's event as expected. Remember to run RefreshServer before running check commands.

See Also:
Constant Field Values

CHECK_DELETED_EVENT_ON_SERVER_COMMAND

static final java.lang.String CHECK_DELETED_EVENT_ON_SERVER_COMMAND
This command can be used to check that a deleted event sent to the server has been correctly deleted by the server. Remember to run RefreshServer before running check commands.

See Also:
Constant Field Values

CREATE_EMPTY_EVENT_ON_SERVER_COMMAND

static final java.lang.String CREATE_EMPTY_EVENT_ON_SERVER_COMMAND
This command can be used to simulate an event addition on the server. It creates an empty event in memory which will be saved as soon as the SaveEventOnServer command is called. Once this command is called you shall set the event's summary via the SetEventField command before saving it.

See Also:
Constant Field Values

LOAD_EVENT_ON_SERVER_COMMAND

static final java.lang.String LOAD_EVENT_ON_SERVER_COMMAND
This command can be used to simulate an event update on the server. It loads an existing event identified by the given summary fields. If such an event does not exist on server, then the test fails.

See Also:
Constant Field Values

SAVE_EVENT_ON_SERVER_COMMAND

static final java.lang.String SAVE_EVENT_ON_SERVER_COMMAND
This command can be used to simulate an event addition or update on the server. It saves the event created or loaded through the CreateEmptyEventOnServer and LoadEventOnServer respectively.

See Also:
Constant Field Values

DELETE_EVENT_ON_SERVER_COMMAND

static final java.lang.String DELETE_EVENT_ON_SERVER_COMMAND
This command can be used to simulate an event deletion on the server. It removes from the server the event identified by the given summary. If such an event does not exist on server, then the test fails.

See Also:
Constant Field Values

DELETE_ALL_EVENTS_ON_SERVER_COMMAND

static final java.lang.String DELETE_ALL_EVENTS_ON_SERVER_COMMAND
This command can used to simulate the deletion of all the events stored in the server.

See Also:
Constant Field Values

SET_EVENT_AS_VCAL_COMMAND

static final java.lang.String SET_EVENT_AS_VCAL_COMMAND
This command allows to fill an event with a VCal. This is useful when the user needs to generate events on the server. It is possible to create an empty event, fill it with this command and save it.

See Also:
Constant Field Values

SET_EVENT_RECURRENCE_FIELD_COMMAND

static final java.lang.String SET_EVENT_RECURRENCE_FIELD_COMMAND
This command allows to fill the recurrence rule for the event currently edited.

See Also:
Constant Field Values

CHECK_EVENT_RECURRENCE_COMMAND

static final java.lang.String CHECK_EVENT_RECURRENCE_COMMAND
Check recurrence rule for the current event and asserts on its value. The value is expressed according to VCal spec.

See Also:
Constant Field Values

CHECK_EVENT_EXCEPTION_COMMAND

static final java.lang.String CHECK_EVENT_EXCEPTION_COMMAND
Check recurrence rule exceptions for event and asserts on its value. The value is expressed according to VCal spec.

See Also:
Constant Field Values

IMPORT_EVENT_ON_SERVER_COMMAND

static final java.lang.String IMPORT_EVENT_ON_SERVER_COMMAND
This command allows to import a vCaL content form a file on the server. Useful to generate a test set on the server for a particular test or to automatically reproduce the server vCal test set for a bug. The file must be compliant with the "\r\n" policy (can be edited from a standard text editor using multiple lines ("return" key) in place of "\r\n" chars).

See Also:
Constant Field Values

RESET_EVENTS_COMMAND

static final java.lang.String RESET_EVENTS_COMMAND
This command resets events client/server side and guarantees client and server are in sync.

See Also:
Constant Field Values

CHECK_EVENT_VCAL_COMMAND

static final java.lang.String CHECK_EVENT_VCAL_COMMAND
This command checks that an event generated by the client is represented by the given vcal.

See Also:
Constant Field Values

CHECK_EVENT_VCAL_ON_SERVER_COMMAND

static final java.lang.String CHECK_EVENT_VCAL_ON_SERVER_COMMAND
See Also:
Constant Field Values

SET_EVENT_FROM_SERVER

static final java.lang.String SET_EVENT_FROM_SERVER
This command simulates an item received from the server. The use of this command is for local tests, where the behavior of the source must be tested for incoming items. After this command is executed, there shall be a new event on the device. It is possible to load such an event and check for its correctness.

See Also:
Constant Field Values

CREATE_EMPTY_RAW_EVENT

static final java.lang.String CREATE_EMPTY_RAW_EVENT
See Also:
Constant Field Values

SET_RAW_EVENT_FIELD

static final java.lang.String SET_RAW_EVENT_FIELD
See Also:
Constant Field Values

SET_RAW_REMINDER_FIELD

static final java.lang.String SET_RAW_REMINDER_FIELD
See Also:
Constant Field Values

SAVE_RAW_EVENT

static final java.lang.String SAVE_RAW_EVENT
See Also:
Constant Field Values

CHECK_RAW_EVENT_AS_VCAL

static final java.lang.String CHECK_RAW_EVENT_AS_VCAL
See Also:
Constant Field Values

CHECK_RAW_EVENT_FIELD

static final java.lang.String CHECK_RAW_EVENT_FIELD
See Also:
Constant Field Values

CHECK_RAW_REMINDER_FIELD

static final java.lang.String CHECK_RAW_REMINDER_FIELD
See Also:
Constant Field Values


Copyright © 2001-2009 Funambol.