com.funambol.client.test
Interface ContactsUserCommands

All Known Implementing Classes:
ContactsCommandRunner

public interface ContactsUserCommands

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


Field Summary
static java.lang.String CHECK_CONTACT_AS_VCARD
          This command formats the current contact (current in the robot) and compares it against the given VCard.
static java.lang.String CHECK_DELETED_CONTACT_COMMAND
          This command can be used to check that a deleted contact on the server has been correctly deleted in the client.
static java.lang.String CHECK_DELETED_CONTACT_ON_SERVER_COMMAND
          This command can be used to check that a deleted contact sent to the server has been correctly deleted by the server.
static java.lang.String CHECK_NEW_CONTACT_COMMAND
          This command can be used to check that a new contact created on the server has been correctly received by the client and has the same content of the server's contact as expected.
static java.lang.String CHECK_NEW_CONTACT_ON_SERVER_COMMAND
          This command can be used to check that a new contact sent to the server has been correctly received and has the same content of the device's contact as expected.
static java.lang.String CHECK_UPDATED_CONTACT_COMMAND
          This command can be used to check that an updated contact on the server has been correctly received by the client and has the same content of the server's contact as expected.
static java.lang.String CHECK_UPDATED_CONTACT_ON_SERVER_COMMAND
          This command can used to check that an updated contact sent to the server has been correctly received and has the same content of the device's contact as expected.
static java.lang.String CREATE_EMPTY_CONTACT_COMMAND
          This command can used to simulate a contact addition.
static java.lang.String CREATE_EMPTY_CONTACT_ON_SERVER_COMMAND
          This command can be used to simulate a contact addition on the server.
static java.lang.String DELETE_ALL_CONTACTS_COMMAND
          This command can be used to simulate the deletion of all the contacts stored in the device.
static java.lang.String DELETE_ALL_CONTACTS_ON_SERVER_COMMAND
          This command can used to simulate the deletion of all the contacts stored in the server.
static java.lang.String DELETE_CONTACT_COMMAND
          This command can be used to simulate a contact deletion.
static java.lang.String DELETE_CONTACT_ON_SERVER_COMMAND
          This command can be used to simulate a contact deletion on the server.
static java.lang.String EMPTY_CONTACT_FIELD_COMMAND
          This command can be used to simulate a contact update.
static java.lang.String IMPORT_CONTACT_ON_SERVER_COMMAND
          This command allows to import a vCard content form a file on the server.
static java.lang.String LOAD_CONTACT_COMMAND
          This command can be used to simulate a contact update.
static java.lang.String LOAD_CONTACT_ON_SERVER_COMMAND
          This command can be used to simulate a contact update on the server.
static java.lang.String RESET_CONTACTS_COMMAND
          This command resets contacts client/server side and guarantees client and server are in sync.
static java.lang.String SAVE_CONTACT_COMMAND
          This command can be used to simulate a contact addition or update.
static java.lang.String SAVE_CONTACT_ON_SERVER_COMMAND
          This command can be used to simulate a contact addition or update on the server.
static java.lang.String SET_CONTACT_AS_VCARD_COMMAND
          This command allows to fill a contact with a VCard.
static java.lang.String SET_CONTACT_FIELD_COMMAND
          This command can used while simulating a contact additon or update.
static java.lang.String SET_CONTACT_FROM_SERVER
          This command simulates an item received from the server.
 

Field Detail

CREATE_EMPTY_CONTACT_COMMAND

static final java.lang.String CREATE_EMPTY_CONTACT_COMMAND
This command can used to simulate a contact addition. It creates an empty contact in memory which will be saved as soon as the SaveContact command is called. Once this command is called you shall set the contact's FirstName and LastName fields via the SetContactField command before saving it.

See Also:
Constant Field Values

LOAD_CONTACT_COMMAND

static final java.lang.String LOAD_CONTACT_COMMAND
This command can be used to simulate a contact update. It loads an existing contact identified by the given FirstName and LastName fields. If such a contact is not found, then the test fails.

See Also:
Constant Field Values

SET_CONTACT_FIELD_COMMAND

static final java.lang.String SET_CONTACT_FIELD_COMMAND
This command can used while simulating a contact additon or update. It sets the given field to the given value.

See Also:
Constant Field Values

EMPTY_CONTACT_FIELD_COMMAND

static final java.lang.String EMPTY_CONTACT_FIELD_COMMAND
This command can be used to simulate a contact update. It empties the value of the specified field. See SetContactField to see the available fields.

See Also:
Constant Field Values

SAVE_CONTACT_COMMAND

static final java.lang.String SAVE_CONTACT_COMMAND
This command can be used to simulate a contact addition or update. It saves the contact actually created or loaded through the CreateEmptyContact and LoadContact respectively.

See Also:
Constant Field Values

DELETE_CONTACT_COMMAND

static final java.lang.String DELETE_CONTACT_COMMAND
This command can be used to simulate a contact deletion. It removes from the device store the contact identified by the given firstname and lastname. If a contact with the given first name and last name is not found, then the test fails.

See Also:
Constant Field Values

DELETE_ALL_CONTACTS_COMMAND

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

See Also:
Constant Field Values

CHECK_NEW_CONTACT_COMMAND

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

See Also:
Constant Field Values

CHECK_UPDATED_CONTACT_COMMAND

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

See Also:
Constant Field Values

CHECK_DELETED_CONTACT_COMMAND

static final java.lang.String CHECK_DELETED_CONTACT_COMMAND
This command can be used to check that a deleted contact 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_CONTACT_ON_SERVER_COMMAND

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

See Also:
Constant Field Values

CHECK_UPDATED_CONTACT_ON_SERVER_COMMAND

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

See Also:
Constant Field Values

CHECK_DELETED_CONTACT_ON_SERVER_COMMAND

static final java.lang.String CHECK_DELETED_CONTACT_ON_SERVER_COMMAND
This command can be used to check that a deleted contact 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_CONTACT_ON_SERVER_COMMAND

static final java.lang.String CREATE_EMPTY_CONTACT_ON_SERVER_COMMAND
This command can be used to simulate a contact addition on the server. It creates an empty contact in memory which will be saved as soon as the SaveContactOnServer command is called. Once this command is called you shall set the contact's FirstName and LastName fields via the SetContactField command before saving it.

See Also:
Constant Field Values

LOAD_CONTACT_ON_SERVER_COMMAND

static final java.lang.String LOAD_CONTACT_ON_SERVER_COMMAND
This command can be used to simulate a contact update on the server. It loads an existing contact identified by the given FirstName and LastName fields. If such a contact does not exist on server, then the test fails.

See Also:
Constant Field Values

SAVE_CONTACT_ON_SERVER_COMMAND

static final java.lang.String SAVE_CONTACT_ON_SERVER_COMMAND
This command can be used to simulate a contact addition or update on the server. It saves the contact actually created or loaded through the CreateEmptyContactOnServer and LoadContactOnServer respectively.

See Also:
Constant Field Values

DELETE_CONTACT_ON_SERVER_COMMAND

static final java.lang.String DELETE_CONTACT_ON_SERVER_COMMAND
This command can be used to simulate a contact deletion on the server. It removes from the server the contact identified by the given firstname and lastname. If such a contact does not exist on server, then the test fails.

See Also:
Constant Field Values

DELETE_ALL_CONTACTS_ON_SERVER_COMMAND

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

See Also:
Constant Field Values

SET_CONTACT_AS_VCARD_COMMAND

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

See Also:
Constant Field Values

IMPORT_CONTACT_ON_SERVER_COMMAND

static final java.lang.String IMPORT_CONTACT_ON_SERVER_COMMAND
This command allows to import a vCard 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 vCard 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_CONTACTS_COMMAND

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

See Also:
Constant Field Values

CHECK_CONTACT_AS_VCARD

static final java.lang.String CHECK_CONTACT_AS_VCARD
This command formats the current contact (current in the robot) and compares it against the given VCard.

See Also:
Constant Field Values

SET_CONTACT_FROM_SERVER

static final java.lang.String SET_CONTACT_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 contact on the device. It is possible to load such a contact and check for its correctness.

See Also:
Constant Field Values


Copyright © 2001-2009 Funambol.