Method | Description | |
---|---|---|
CheckEmail ( string collectionId, string subject, |
Check if an email has been in the specified folder with options.
|
|
CheckMeetingForwardNotification ( UserInformation userInformation, string notificationSubject ) : void |
Check the meeting forward notification mail which is sent from server to User.
|
|
ClearDevice ( string userName, string userPassword, string domain ) : void |
Clear a user's ActiveSync device, this user should have permission to delete ActiveSync device.
|
|
CreateAddContactCommand ( string firstName, string middleName, string lastName, string fileAs, string jobTitle ) : |
Create a request to add a contact with job title.
|
|
CreateCalendar ( string subject, string attendeeEmailAddress, Calendar createdCalendar ) : Calendar |
Create one sample calendar object.
|
|
CreateDefaultOofRequest ( ) : SettingsRequest |
Create one OOF request with empty Settings
|
|
CreateEmptySyncRequest ( string collectionId ) : SyncRequest |
Create an empty Sync request.
|
|
CreateEmptySyncRequest ( string collectionId, int filterType ) : SyncRequest |
Create an empty Sync request with filter type.
|
|
CreateFolder ( byte folderType, string folderName, string parentFolderID ) : string |
Create folder.
|
|
CreateGetItemEstimateRequest ( string syncKey, string collectionId, |
This method is used to create GetItemEstimate request.
|
|
CreateMIME ( string from, string to, string subject, string body ) : string |
Create MIME for SendMail command.
|
|
CreateMeetingResponseRequest ( byte userResponse, string collectionID, string requestID, string instanceID ) : |
Create a MeetingResponse request.
|
|
CreateMoveItemsRequest ( string srcMsgId, string srcFldId, string dstFldId ) : MoveItemsRequest |
This method is used to create MoveItems request.
|
|
CreateOofMessage ( string bodyType, string enabled, string replyMessage ) : |
Create default OOF message
|
|
CreateSendMailRequest ( string from, string to, string cc, string bcc, string subject, string content ) : SendMailRequest |
Create a SendMail request.
|
|
CreateSmartForwardRequest ( string folderId, string serverId, string from, string to, string cc, string bcc, string subject, string content ) : SmartForwardRequest |
Create a SmartForward request.
|
|
CreateSmartReplyRequest ( string folderID, string serverID, string from, string to, string cc, string bcc, string subject, string content ) : SmartReplyRequest |
Create a SmartReply request.
|
|
CreateSyncAddRequest ( string syncKey, string collectionId, |
This method is used to create a Sync add request
|
|
CreateSyncDeleteRequest ( string syncKey, string collectionId, string serverId ) : SyncRequest |
Create a Sync delete operation request which would be used to move deleted items to the Deleted Items folder.
|
|
CreateSyncPermanentDeleteRequest ( string syncKey, string collectionId, string serverId ) : SyncRequest |
Create a Sync delete operation request which would be used to delete items permanently.
|
|
CreateiCalendarFormatContent ( Calendar calendar ) : string |
Create iCalendar format string from one calendar instance.
|
|
DeleteFolder ( Collection |
Delete folder with specified collectionID.
|
|
FindServerId ( SyncResponse responseSync, string field, string fieldValue ) : string |
This method is used to search serverId from SyncResponse.
|
|
FindServerIdList ( SyncResponse responseSync, string field, string fieldValue ) : Collection |
This method is used to search serverId from SyncResponse.
|
|
FolderSync ( ) : FolderSyncResponse |
Synchronizes the folder hierarchy.
|
|
GenerateDefaultProvisionRequest ( ) : ProvisionRequest |
Generate a Provision request.
|
|
GenerateDeviceInformation ( ) : |
Generate one device information.
|
|
GetAddApplicationData ( SyncResponse syncResponse, |
Get the application data of an item specified by field.
|
|
GetAppliesToExternalKnownOofMessage ( SettingsResponse settingsResponse ) : |
Get AppliesToExternalKnown OOF message from SettingsResponse
|
|
GetAppliesToExternalUnknownOofMessage ( SettingsResponse settingsResponse ) : |
Get AppliesToExternalUnknown OOF message from SettingsResponse
|
|
GetAppliesToInternalOofMessage ( SettingsResponse settingsResponse ) : |
Get AppliesToInternal OOF message from SettingsResponse
|
|
GetCollectionId ( FolderSyncResponse folderSyncResponse, string folderName ) : string |
Use this method to get a ServerId.
|
|
GetCollectionItem ( SyncResponse syncResponse, |
Get an object related to a specified ItemsChoiceType10 value.
|
|
GetDataFromResponseBodyElement ( SyncResponse syncResponse, string serverId ) : string |
Get data from sync response BODY element
|
|
GetElementValueFromSyncResponse ( SyncResponse syncResponse, string serverId, |
Get element value from Sync response
|
|
GetEmailAttachments ( SyncResponse syncResponse, string subject ) : Microsoft.Protocols.TestSuites.Common.Response.AttachmentsAttachment[] |
Get the attachments of an email.
|
|
GetFolderCreateResponse ( string syncKey, byte folderType, string folderName, string parentFolderID ) : FolderCreateResponse |
Get FolderCreate command response.
|
|
GetInitialSyncResponse ( string collectionId ) : SyncResponse |
Establishes a synchronization relationship with the server and initializes the synchronization state.
|
|
GetItemServerIdFromSpecialFolder ( string folderID, string subject ) : string |
Confirm the item with specified subject exist in folder.
|
|
GetMailItem ( string folderID, string subject ) : SyncResponse |
Get email with special subject.
|
|
GetMailboxFolderPermission ( string serverComputerName, UserInformation userInfo ) : string |
Get the value of SUT's AccessRights property.
|
|
GetOofSettings ( ) : SettingsResponse |
Get OOF settings
|
|
GetStatusCode ( string responseDataXml ) : string |
Get the Status value in a response returned by the SendStringRequest operation.
|
|
GetSyncResult ( string emailSubject, string folderCollectionId, |
Get the specified email item.
|
|
RecordCaseRelativeFolders ( UserInformation userInformation ) : void |
Record the user name, folder collection ID that need to be deleted.
|
|
RecordCaseRelativeItems ( UserInformation userInformation, string folderCollectionId ) : void |
Record the user name, folder collectionId and subjects the current test case impacts.
|
|
RecordDeviceInfoChanged ( ) : void |
Record user has changed device information.
|
|
RecordPolicyKeyChanged ( ) : void |
Record user has changed PolicyKey.
|
|
RemoveRecordCaseRelativeItems ( UserInformation userInformation, string folderCollectionId ) : bool |
Remove items with subject that the current test case doesn't need.
|
|
SendEmailWithAttachment ( string subject, string body ) : void |
Send an email with a normal attachment
|
|
SendMailAndFolderSync ( ) : string |
User2 sends mail to User1 and does FolderSync in User1's mailbox.
|
|
SendMeetingRequest ( string subject, Calendar calendar ) : void |
Send a meeting request.
|
|
SendPlainTextEmail ( string accountID, string emailSubject, string senderName, string recipientName, string content ) : SendMailResponse |
Send a plain text email between User1 and User2.
|
|
SendWeeklyRecurrenceMeetingRequest ( string meetingRequestSubject, string recipientEmailAddress ) : void |
Send a weekly meeting request.
|
|
SetMailboxFolderPermission ( string serverComputerName, UserInformation userInfo, string permission ) : void |
Set SUT's AccessRights property to a specified value.
|
|
SwitchUser ( UserInformation userInformation ) : void |
Change user to call FolderSync command to synchronize the collection hierarchy.
|
|
Sync ( SyncRequest request, bool isResyncNeeded = true ) : SyncResponse |
Synchronizes changes in a collection between the client and the server.
|
|
SyncChanges ( string collectionID, bool isResyncNeeded = true ) : SyncResponse |
Synchronize the changes of the specific folder.
|
|
SyncChanges ( string syncKey, string collectionID, bool isResyncNeeded = true ) : SyncResponse |
Synchronize the changes from last synchronization in specific folder.
|
|
TestCleanup ( ) : void |
Clean up the environment.
|
|
TestInitialize ( ) : void |
Initialize the test suite.
|
Method | Description | |
---|---|---|
ClearUserCreateItems ( UserInformation userInformation ) : void |
Clear all user created items
|
|
DeleteItemsInFolder ( UserInformation userInformation ) : void |
Delete all the user created items
|
|
GetSyncAddItem ( |
Get the specified email item from the sync add response by using the subject as the search criteria.
|
|
RevertOofSettings ( ) : void |
Revert the settings of Oof message.
|
|
SetMeetingProperties ( string subject, string attendeeEmailAddress, ITestSite testSite ) : object>.Dictionary |
Set the value of common meeting properties
|
protected CheckEmail ( string collectionId, string subject, |
||
collectionId | string | The collection Id of the folder. |
subject | string | The email subject. |
options | The Options element to filter the items in the Sync response. | |
return | SyncResponse |
protected CheckMeetingForwardNotification ( UserInformation userInformation, string notificationSubject ) : void | ||
userInformation | UserInformation | The user who received notification |
notificationSubject | string | The notification mail subject |
return | void |
protected ClearDevice ( string userName, string userPassword, string domain ) : void | ||
userName | string | The user name. |
userPassword | string | The user password. |
domain | string | The user domain. |
return | void |
protected CreateAddContactCommand ( string firstName, string middleName, string lastName, string fileAs, string jobTitle ) : |
||
firstName | string | The first name of the contact. |
middleName | string | The middle name of the contact. |
lastName | string | The last name of the contact. |
fileAs | string | The filing string for the contact. |
jobTitle | string | The job title of the contact. |
return |
protected CreateCalendar ( string subject, string attendeeEmailAddress, Calendar createdCalendar ) : Calendar | ||
subject | string | Meeting subject. |
attendeeEmailAddress | string | Meeting attendee email address. |
createdCalendar | Calendar | The calendar object |
return | Calendar |
protected static CreateDefaultOofRequest ( ) : SettingsRequest | ||
return | SettingsRequest |
protected static CreateEmptySyncRequest ( string collectionId ) : SyncRequest | ||
collectionId | string | The value of the folder collectionId. |
return | SyncRequest |
protected static CreateEmptySyncRequest ( string collectionId, int filterType ) : SyncRequest | ||
collectionId | string | The value of the folder collectionId. |
filterType | int | The value of the FilterType. |
return | SyncRequest |
protected CreateFolder ( byte folderType, string folderName, string parentFolderID ) : string | ||
folderType | byte | The folder type. |
folderName | string | The folder name. |
parentFolderID | string | The parent folder serverID. |
return | string |
protected static CreateGetItemEstimateRequest ( string syncKey, string collectionId, |
||
syncKey | string | The synchronization state of a collection. |
collectionId | string | The collection id of the folder. |
options | Contains elements that filter the results. | |
return | GetItemEstimateRequest |
protected static CreateMIME ( string from, string to, string subject, string body ) : string | ||
from | string | The email address of sender. |
to | string | The email address of recipient. |
subject | string | The email subject. |
body | string | The email body content. |
return | string |
protected static CreateMeetingResponseRequest ( byte userResponse, string collectionID, string requestID, string instanceID ) : |
||
userResponse | byte | The way the user response the meeting. |
collectionID | string | The collection id of the folder that contains the meeting request. |
requestID | string | The server ID of the meeting request message item. |
instanceID | string | The instance ID of the recurring meeting to be modified. |
return |
protected static CreateMoveItemsRequest ( string srcMsgId, string srcFldId, string dstFldId ) : MoveItemsRequest | ||
srcMsgId | string | The server ID of the item to be moved. |
srcFldId | string | The server ID of the source folder. |
dstFldId | string | The server ID of the destination folder. |
return | MoveItemsRequest |
protected static CreateOofMessage ( string bodyType, string enabled, string replyMessage ) : |
||
bodyType | string | The OOF message body type |
enabled | string | The enabled value |
replyMessage | string | The replyMessage |
return |
protected static CreateSendMailRequest ( string from, string to, string cc, string bcc, string subject, string content ) : SendMailRequest | ||
from | string | The value of the From element. |
to | string | The value of the To element. |
cc | string | The value of the Cc element. |
bcc | string | The value of the Bcc element. |
subject | string | The value of the Subject element. |
content | string | The value of the Content element. |
return | SendMailRequest |
protected CreateSmartForwardRequest ( string folderId, string serverId, string from, string to, string cc, string bcc, string subject, string content ) : SmartForwardRequest | ||
folderId | string | The value of the FolderId element. |
serverId | string | The value of the ServerId element. |
from | string | The value of the From element. |
to | string | The value of the To element. |
cc | string | The value of the Cc element. |
bcc | string | The value of the Bcc element. |
subject | string | The value of the Subject element. |
content | string | The value of the Content element. |
return | SmartForwardRequest |
protected static CreateSmartReplyRequest ( string folderID, string serverID, string from, string to, string cc, string bcc, string subject, string content ) : SmartReplyRequest | ||
folderID | string | The value of the FolderID element |
serverID | string | The value of the ServerId element. |
from | string | The value of the From element. |
to | string | The value of the To element. |
cc | string | The value of the Cc element. |
bcc | string | The value of the Bcc element. |
subject | string | The value of the Subject element. |
content | string | The value of the Content element. |
return | SmartReplyRequest |
protected static CreateSyncAddRequest ( string syncKey, string collectionId, |
||
syncKey | string | The value of the SyncKey element. |
collectionId | string | The value of the CollectionID element. |
syncCollectionAdd | An instance of the SyncCollectionAdd. | |
return | SyncRequest |
protected static CreateSyncDeleteRequest ( string syncKey, string collectionId, string serverId ) : SyncRequest | ||
syncKey | string | The synchronization state of a collection. |
collectionId | string | The server ID of the folder. |
serverId | string | An server ID of the item which will be deleted. |
return | SyncRequest |
protected static CreateSyncPermanentDeleteRequest ( string syncKey, string collectionId, string serverId ) : SyncRequest | ||
syncKey | string | The synchronization state of a collection. |
collectionId | string | The server ID of the folder. |
serverId | string | An server ID of the item which will be deleted. |
return | SyncRequest |
protected static CreateiCalendarFormatContent ( Calendar calendar ) : string | ||
calendar | Calendar | The instance of Calendar class. |
return | string |
protected DeleteFolder ( Collection |
||
collectionIDList | Collection |
The collectionID of folder that need to be deleted. |
return | void |
protected static FindServerId ( SyncResponse responseSync, string field, string fieldValue ) : string | ||
responseSync | SyncResponse | An instance of the SyncResponse. |
field | string | The name of the field. |
fieldValue | string | The value of item. |
return | string |
protected static FindServerIdList ( SyncResponse responseSync, string field, string fieldValue ) : Collection |
||
responseSync | SyncResponse | An instance of the SyncResponse. |
field | string | The value of the item name. |
fieldValue | string | The value of item. |
return | Collection |
protected FolderSync ( ) : FolderSyncResponse | ||
return | FolderSyncResponse |
protected static GenerateDefaultProvisionRequest ( ) : ProvisionRequest | ||
return | ProvisionRequest |
protected static GenerateDeviceInformation ( ) : |
||
return |
protected static GetAddApplicationData ( SyncResponse syncResponse, |
||
syncResponse | SyncResponse | The Sync command response. |
field | The element name of the item. | |
fieldValue | string | The value of the item |
return |
protected static GetAppliesToExternalKnownOofMessage ( SettingsResponse settingsResponse ) : |
||
settingsResponse | SettingsResponse | The Settings response |
return |
protected static GetAppliesToExternalUnknownOofMessage ( SettingsResponse settingsResponse ) : |
||
settingsResponse | SettingsResponse | The settings response |
return |
protected static GetAppliesToInternalOofMessage ( SettingsResponse settingsResponse ) : |
||
settingsResponse | SettingsResponse | The settings response |
return |
protected static GetCollectionId ( FolderSyncResponse folderSyncResponse, string folderName ) : string | ||
folderSyncResponse | FolderSyncResponse | An instance of the FolderSyncResponse. |
folderName | string | Folder name. |
return | string |
protected static GetCollectionItem ( SyncResponse syncResponse, |
||
syncResponse | SyncResponse | A Sync response. |
element | An element of ItemsChoiceType10 type, which specifies which object in the Sync response to be retrieved. | |
return | object |
protected static GetDataFromResponseBodyElement ( SyncResponse syncResponse, string serverId ) : string | ||
syncResponse | SyncResponse | An instance of the SyncResponse |
serverId | string | The value of the ServerId element. |
return | string |
protected static GetElementValueFromSyncResponse ( SyncResponse syncResponse, string serverId, |
||
syncResponse | SyncResponse | The Sync response |
serverId | string | The specified serverId |
elementType | The element type | |
return | object |
protected GetEmailAttachments ( SyncResponse syncResponse, string subject ) : Microsoft.Protocols.TestSuites.Common.Response.AttachmentsAttachment[] | ||
syncResponse | SyncResponse | The Sync command response. |
subject | string | The email subject. |
return | Microsoft.Protocols.TestSuites.Common.Response.AttachmentsAttachment[] |
protected GetFolderCreateResponse ( string syncKey, byte folderType, string folderName, string parentFolderID ) : FolderCreateResponse | ||
syncKey | string | The folder SyncKey. |
folderType | byte | The folder type. |
folderName | string | The folder name. |
parentFolderID | string | The parent folder serverID. |
return | FolderCreateResponse |
protected GetInitialSyncResponse ( string collectionId ) : SyncResponse | ||
collectionId | string | The value of the folder collectionId. |
return | SyncResponse |
protected GetItemServerIdFromSpecialFolder ( string folderID, string subject ) : string | ||
folderID | string | The folder item located. |
subject | string | The item subject. |
return | string |
protected GetMailItem ( string folderID, string subject ) : SyncResponse | ||
folderID | string | The folderID that store mail items. |
subject | string | Email subject. |
return | SyncResponse |
protected GetMailboxFolderPermission ( string serverComputerName, UserInformation userInfo ) : string | ||
serverComputerName | string | The computer name of the server. |
userInfo | UserInformation | The user information used to communicate with server. |
return | string |
protected GetOofSettings ( ) : SettingsResponse | ||
return | SettingsResponse |
protected GetStatusCode ( string responseDataXml ) : string | ||
responseDataXml | string | The response data string returned by the SendStringRequest operation. |
return | string |
protected GetSyncResult ( string emailSubject, string folderCollectionId, |
||
emailSubject | string | The subject of the email item. |
folderCollectionId | string | The serverId of the default folder. |
bodyPreference | The preference information related to the type and size of information that is returned from fetching. | |
return |
protected static RecordCaseRelativeFolders ( UserInformation userInformation ) : void | ||
userInformation | UserInformation | The user that current test case used. |
return | void |
protected static RecordCaseRelativeItems ( UserInformation userInformation, string folderCollectionId ) : void | ||
userInformation | UserInformation | The user that current test case used. |
folderCollectionId | string | The collectionId of folders that the current test case impact. |
return | void |
protected static RemoveRecordCaseRelativeItems ( UserInformation userInformation, string folderCollectionId ) : bool | ||
userInformation | UserInformation | The user that current test case used. |
folderCollectionId | string | The collectionId of folders that the current test case impact. |
return | bool |
protected SendEmailWithAttachment ( string subject, string body ) : void | ||
subject | string | The subject of the mail. |
body | string | The body of the item. |
return | void |
protected SendMeetingRequest ( string subject, Calendar calendar ) : void | ||
subject | string | The subject of email |
calendar | Calendar | The meeting calendar |
return | void |
protected SendPlainTextEmail ( string accountID, string emailSubject, string senderName, string recipientName, string content ) : SendMailResponse | ||
accountID | string | The account from which an email is sent. |
emailSubject | string | Email subject. |
senderName | string | The sender of the email. |
recipientName | string | The receiver of the email. |
content | string | The email content. |
return | SendMailResponse |
protected SendWeeklyRecurrenceMeetingRequest ( string meetingRequestSubject, string recipientEmailAddress ) : void | ||
meetingRequestSubject | string | The subject of the meeting request. |
recipientEmailAddress | string | The email address of the recipient. |
return | void |
protected SetMailboxFolderPermission ( string serverComputerName, UserInformation userInfo, string permission ) : void | ||
serverComputerName | string | The computer name of the server. |
userInfo | UserInformation | The user information used to communicate with server. |
permission | string | The new value of AccessRights. |
return | void |
protected SwitchUser ( UserInformation userInformation ) : void | ||
userInformation | UserInformation | The user information that contains case related information |
return | void |
protected Sync ( SyncRequest request, bool isResyncNeeded = true ) : SyncResponse | ||
request | SyncRequest | A SyncRequest object that contains the request information. |
isResyncNeeded | bool | A boolean value indicate whether need to re-sync when the response contains MoreAvailable. |
return | SyncResponse |
protected SyncChanges ( string collectionID, bool isResyncNeeded = true ) : SyncResponse | ||
collectionID | string | Folder's collectionID. |
isResyncNeeded | bool | A boolean value indicate whether need to re-sync when the response contains MoreAvailable. |
return | SyncResponse |
protected SyncChanges ( string syncKey, string collectionID, bool isResyncNeeded = true ) : SyncResponse | ||
syncKey | string | The sync key. |
collectionID | string | Folder's collectionID. |
isResyncNeeded | bool | A boolean value indicate whether need to re-sync when the response contains MoreAvailable. |
return | SyncResponse |