C# Class Microsoft.Protocols.TestSuites.MS_OXCSTOR.TestSuiteBase

Inheritance: Microsoft.Protocols.TestTools.TestClassBase
ファイルを表示 Open project: OfficeDev/Interop-TestSuites

Protected Properties

Property Type Description
domain string
essdnOfUser1 string
essdnOfUser2 string
getIdFromLongTermIdRequest Microsoft.Protocols.TestSuites.Common.RopIdFromLongTermIdRequest
getIdFromLongTermIdResponse Microsoft.Protocols.TestSuites.Common.RopIdFromLongTermIdResponse
getOwningServersRequest Microsoft.Protocols.TestSuites.Common.RopGetOwningServersRequest
getOwningServersResponse Microsoft.Protocols.TestSuites.Common.RopGetOwningServersResponse
getPerUserGuidRequest Microsoft.Protocols.TestSuites.Common.RopGetPerUserGuidRequest
getPerUserGuidResponse Microsoft.Protocols.TestSuites.Common.RopGetPerUserGuidResponse
getPerUserLongTermIdsRequest Microsoft.Protocols.TestSuites.Common.RopGetPerUserLongTermIdsRequest
getPerUserLongTermIdsResponse Microsoft.Protocols.TestSuites.Common.RopGetPerUserLongTermIdsResponse
getReceiveFolderRequest Microsoft.Protocols.TestSuites.Common.RopGetReceiveFolderRequest
getReceiveFolderResponse Microsoft.Protocols.TestSuites.Common.RopGetReceiveFolderResponse
getReceiveFolderTableRequest Microsoft.Protocols.TestSuites.Common.RopGetReceiveFolderTableRequest
getReceiveFolderTableResponse Microsoft.Protocols.TestSuites.Common.RopGetReceiveFolderTableResponse
getStoreStateRequest Microsoft.Protocols.TestSuites.Common.RopGetStoreStateRequest
getStoreStateResponse Microsoft.Protocols.TestSuites.Common.RopGetStoreStateResponse
insideObjHandle uint
logonRequestForPrivateMailBox Microsoft.Protocols.TestSuites.Common.RopLogonRequest
logonRequestForPublicFolder Microsoft.Protocols.TestSuites.Common.RopLogonRequest
logonResponse Microsoft.Protocols.TestSuites.Common.RopLogonResponse
longTermIdFromIdRequest Microsoft.Protocols.TestSuites.Common.RopLongTermIdFromIdRequest
longTermIdFromIdResponse Microsoft.Protocols.TestSuites.Common.RopLongTermIdFromIdResponse
messageMyClass string
messageMyClassToUpper string
outObjHandle uint
outputBuffer RopOutputBuffer
oxcstorAdapter IMS_OXCSTORAdapter
passwordOfUserOfMailboxOnServer1 string
passwordOfUserOfMailboxOnServer2 string
publicDatabaseName1 string
publicFolderIsGhostedRequest Microsoft.Protocols.TestSuites.Common.RopPublicFolderIsGhostedRequest
publicFolderIsGhostedResponse Microsoft.Protocols.TestSuites.Common.RopPublicFolderIsGhostedResponse
readPerUserInformationRequest Microsoft.Protocols.TestSuites.Common.RopReadPerUserInformationRequest
readPerUserInformationResponse Microsoft.Protocols.TestSuites.Common.RopReadPerUserInformationResponse
returnStatus bool
secondSUTExistOrNot bool
server1Name string
server2Name string
setReceiveFolderRequest RopSetReceiveFolderRequest
setReceiveFolderResponse RopSetReceiveFolderResponse
sutControlAdapter IMS_OXCSTORSUTControlAdapter
transportByMAPIOrNot bool
userDN string
userNameOfMailboxOnServer1 string
userNameOfMailboxOnServer2 string
writePerUserInformationRequest Microsoft.Protocols.TestSuites.Common.RopWritePerUserInformationRequest
writePerUserInformationResponse Microsoft.Protocols.TestSuites.Common.RopWritePerUserInformationResponse

Protected Methods

Method Description
BuildRopRequestMessage ( ) : void

Build some ROP request message

ByteArrayEquals ( byte byte1, byte byte2 ) : bool

Compare two Byte Arrays are equal or not

CheckTransportIsSupported ( ) : void

Check the transport is supported

CompareLogonResponse ( RopLogonResponse res1, RopLogonResponse res2 ) : bool

Compare the 2 RopLogonResponse objects.

CreateMessage ( ulong folderId, uint &targetMessageHandle ) : ulong

Create a message in public folder

CreateSearchFolder ( string folderName, uint &searchFolderHandle, ulong &searchFolderId ) : void

Create the active search folder in Inbox folder.

DeleteFolder ( ulong folderId, uint folderHandle ) : RopDeleteFolderResponse

Delete the specified folder

GenerateRandomValidIdset ( bool bigData = false ) : IDSETWithReplGuid

Generate a valid IDSETWithReplGuid structure

GetLongTermIdFromId ( ulong folderID ) : LongTermId

Get LongTermIdFromId

GetPropertyValue ( PropertyTag propTag, uint &responseFlag, byte &propertyValue ) : uint

This method is used to send the ROP of RopGetPropertiesSpecificRequest to get the specific property.

InitSUTVariable ( ) : void

Initialize some variable

OpenFolder ( string folderName, FolderType folderType, ulong parentFolderId, uint &openedFolderHandle ) : ulong

Open a folder in the specified folder. If the folder exists, return the folder ID, If not, create the folder first, and then return the folder ID.

RopRelease ( uint objectHandle ) : void

Release the folder handle

SetMessageAsRead ( ulong folderId, ulong messageId ) : void

Set a Message as Read

TestCleanup ( ) : void

Overrides TestClassBase's TestCleanup()

TestInitialize ( ) : void

Use TestInitialize to run code before running the test in the class

TryDeleteLogonProperty ( PropertyTag propTag ) : uint

This method is used to send the ROP of RopDeletePropertiesRequest to delete the specific property.

TryGetFlagLogonProperty ( PropertyTag propTag, uint &responseFlag ) : uint

This method is used to send the ROP of RopGetPropertiesSpecificRequest to get the specific property.

TryGetLogonProperty ( PropertyTag propTag ) : uint

This method is used to send the ROP of RopGetPropertiesSpecificRequest to get the specific property.

TryGetLogonPropertyValue ( PropertyTag propTag ) : byte[]

This method is used to send the ROP of RopGetPropertiesSpecificRequest to get the specific property value.

TrySetLogonProperty ( TaggedPropertyValue propValue ) : uint

This method is used to send the ROP of RopSetPropertiesRequest to set the specific property.

VerifyDataIsIDSETStructure ( byte data ) : bool

Check the data in ReadPerUserInformation is valid or not

Method Details

BuildRopRequestMessage() protected method

Build some ROP request message
protected BuildRopRequestMessage ( ) : void
return void

ByteArrayEquals() protected method

Compare two Byte Arrays are equal or not
protected ByteArrayEquals ( byte byte1, byte byte2 ) : bool
byte1 byte Byte array value1
byte2 byte Byte array value2
return bool

CheckTransportIsSupported() protected method

Check the transport is supported
protected CheckTransportIsSupported ( ) : void
return void

CompareLogonResponse() protected method

Compare the 2 RopLogonResponse objects.
protected CompareLogonResponse ( RopLogonResponse res1, RopLogonResponse res2 ) : bool
res1 Microsoft.Protocols.TestSuites.Common.RopLogonResponse The first RopLogonResponse object
res2 Microsoft.Protocols.TestSuites.Common.RopLogonResponse The second RopLogonResponse object
return bool

CreateMessage() protected method

Create a message in public folder
protected CreateMessage ( ulong folderId, uint &targetMessageHandle ) : ulong
folderId ulong The ulong value
targetMessageHandle uint The uint value
return ulong

CreateSearchFolder() protected method

Create the active search folder in Inbox folder.
protected CreateSearchFolder ( string folderName, uint &searchFolderHandle, ulong &searchFolderId ) : void
folderName string The search folder name
searchFolderHandle uint The search folder handle
searchFolderId ulong The created search folder ID
return void

DeleteFolder() protected method

Delete the specified folder
protected DeleteFolder ( ulong folderId, uint folderHandle ) : RopDeleteFolderResponse
folderId ulong The folder specified by folderId to be deleted
folderHandle uint The folder handle
return Microsoft.Protocols.TestSuites.Common.RopDeleteFolderResponse

GenerateRandomValidIdset() protected method

Generate a valid IDSETWithReplGuid structure
protected GenerateRandomValidIdset ( bool bigData = false ) : IDSETWithReplGuid
bigData bool The default value is false, if the value is true, this function will generate big data which length is greater than 4096
return IDSETWithReplGuid

GetLongTermIdFromId() protected method

Get LongTermIdFromId
protected GetLongTermIdFromId ( ulong folderID ) : LongTermId
folderID ulong The folder ID
return Microsoft.Protocols.TestSuites.Common.LongTermId

GetPropertyValue() protected method

This method is used to send the ROP of RopGetPropertiesSpecificRequest to get the specific property.
protected GetPropertyValue ( PropertyTag propTag, uint &responseFlag, byte &propertyValue ) : uint
propTag Microsoft.Protocols.TestSuites.Common.PropertyTag The specified property
responseFlag uint When get the property successfully the responseFlag is 0, otherwise return the errorCode
propertyValue byte When get the property successfully the responseFlag is 0, the propertyValue is the property value, otherwise the propertyValue is 0
return uint

InitSUTVariable() protected method

Initialize some variable
protected InitSUTVariable ( ) : void
return void

OpenFolder() protected method

Open a folder in the specified folder. If the folder exists, return the folder ID, If not, create the folder first, and then return the folder ID.
protected OpenFolder ( string folderName, FolderType folderType, ulong parentFolderId, uint &openedFolderHandle ) : ulong
folderName string Folder name value
folderType Microsoft.Protocols.TestSuites.Common.FolderType The folder type: generic or search folder
parentFolderId ulong The parent folder ID
openedFolderHandle uint folder handle
return ulong

RopRelease() protected method

Release the folder handle
protected RopRelease ( uint objectHandle ) : void
objectHandle uint The object handle to be released
return void

SetMessageAsRead() protected method

Set a Message as Read
protected SetMessageAsRead ( ulong folderId, ulong messageId ) : void
folderId ulong The ulong value folder ID
messageId ulong The ulong value message ID
return void

TestCleanup() protected method

Overrides TestClassBase's TestCleanup()
protected TestCleanup ( ) : void
return void

TestInitialize() protected method

Use TestInitialize to run code before running the test in the class
protected TestInitialize ( ) : void
return void

TryDeleteLogonProperty() protected method

This method is used to send the ROP of RopDeletePropertiesRequest to delete the specific property.
protected TryDeleteLogonProperty ( PropertyTag propTag ) : uint
propTag Microsoft.Protocols.TestSuites.Common.PropertyTag The specified property
return uint

TryGetFlagLogonProperty() protected method

This method is used to send the ROP of RopGetPropertiesSpecificRequest to get the specific property.
protected TryGetFlagLogonProperty ( PropertyTag propTag, uint &responseFlag ) : uint
propTag Microsoft.Protocols.TestSuites.Common.PropertyTag The specified property
responseFlag uint The return value
return uint

TryGetLogonProperty() protected method

This method is used to send the ROP of RopGetPropertiesSpecificRequest to get the specific property.
protected TryGetLogonProperty ( PropertyTag propTag ) : uint
propTag Microsoft.Protocols.TestSuites.Common.PropertyTag The specified property
return uint

TryGetLogonPropertyValue() protected method

This method is used to send the ROP of RopGetPropertiesSpecificRequest to get the specific property value.
protected TryGetLogonPropertyValue ( PropertyTag propTag ) : byte[]
propTag Microsoft.Protocols.TestSuites.Common.PropertyTag The specified property
return byte[]

TrySetLogonProperty() protected method

This method is used to send the ROP of RopSetPropertiesRequest to set the specific property.
protected TrySetLogonProperty ( TaggedPropertyValue propValue ) : uint
propValue Microsoft.Protocols.TestSuites.Common.TaggedPropertyValue The new property value
return uint

VerifyDataIsIDSETStructure() protected method

Check the data in ReadPerUserInformation is valid or not
protected VerifyDataIsIDSETStructure ( byte data ) : bool
data byte Byte array value
return bool

Property Details

domain protected_oe property

The domain name
protected string domain
return string

essdnOfUser1 protected_oe property

The essdn of the user whose mailbox is on server1
protected string essdnOfUser1
return string

essdnOfUser2 protected_oe property

The essdn of the user whose mailbox is on server2
protected string essdnOfUser2
return string

getIdFromLongTermIdRequest protected_oe property

RopIdFromLongTermId ROP request
protected RopIdFromLongTermIdRequest,Microsoft.Protocols.TestSuites.Common getIdFromLongTermIdRequest
return Microsoft.Protocols.TestSuites.Common.RopIdFromLongTermIdRequest

getIdFromLongTermIdResponse protected_oe property

RopIdFromLongTermId ROP response
protected RopIdFromLongTermIdResponse,Microsoft.Protocols.TestSuites.Common getIdFromLongTermIdResponse
return Microsoft.Protocols.TestSuites.Common.RopIdFromLongTermIdResponse

getOwningServersRequest protected_oe property

RopGetOwningServers ROP request
protected RopGetOwningServersRequest,Microsoft.Protocols.TestSuites.Common getOwningServersRequest
return Microsoft.Protocols.TestSuites.Common.RopGetOwningServersRequest

getOwningServersResponse protected_oe property

RopGetOwningServers ROP response
protected RopGetOwningServersResponse,Microsoft.Protocols.TestSuites.Common getOwningServersResponse
return Microsoft.Protocols.TestSuites.Common.RopGetOwningServersResponse

getPerUserGuidRequest protected_oe property

RopGetPerUserGuid ROP request
protected RopGetPerUserGuidRequest,Microsoft.Protocols.TestSuites.Common getPerUserGuidRequest
return Microsoft.Protocols.TestSuites.Common.RopGetPerUserGuidRequest

getPerUserGuidResponse protected_oe property

RopGetPerUserGuid ROP Response
protected RopGetPerUserGuidResponse,Microsoft.Protocols.TestSuites.Common getPerUserGuidResponse
return Microsoft.Protocols.TestSuites.Common.RopGetPerUserGuidResponse

getPerUserLongTermIdsRequest protected_oe property

RopGetPerUserLongTermIds ROP request
protected RopGetPerUserLongTermIdsRequest,Microsoft.Protocols.TestSuites.Common getPerUserLongTermIdsRequest
return Microsoft.Protocols.TestSuites.Common.RopGetPerUserLongTermIdsRequest

getPerUserLongTermIdsResponse protected_oe property

RopGetPerUserLongTermIds ROP response
protected RopGetPerUserLongTermIdsResponse,Microsoft.Protocols.TestSuites.Common getPerUserLongTermIdsResponse
return Microsoft.Protocols.TestSuites.Common.RopGetPerUserLongTermIdsResponse

getReceiveFolderRequest protected_oe property

RopGetReceiveFolder ROP request
protected RopGetReceiveFolderRequest,Microsoft.Protocols.TestSuites.Common getReceiveFolderRequest
return Microsoft.Protocols.TestSuites.Common.RopGetReceiveFolderRequest

getReceiveFolderResponse protected_oe property

RopGetReceiveFolder ROP response
protected RopGetReceiveFolderResponse,Microsoft.Protocols.TestSuites.Common getReceiveFolderResponse
return Microsoft.Protocols.TestSuites.Common.RopGetReceiveFolderResponse

getReceiveFolderTableRequest protected_oe property

RopGetReceiveFolderTable ROP request
protected RopGetReceiveFolderTableRequest,Microsoft.Protocols.TestSuites.Common getReceiveFolderTableRequest
return Microsoft.Protocols.TestSuites.Common.RopGetReceiveFolderTableRequest

getReceiveFolderTableResponse protected_oe property

RopGetReceiveFolderTable ROP response
protected RopGetReceiveFolderTableResponse,Microsoft.Protocols.TestSuites.Common getReceiveFolderTableResponse
return Microsoft.Protocols.TestSuites.Common.RopGetReceiveFolderTableResponse

getStoreStateRequest protected_oe property

RopGetStoreState ROP request
protected RopGetStoreStateRequest,Microsoft.Protocols.TestSuites.Common getStoreStateRequest
return Microsoft.Protocols.TestSuites.Common.RopGetStoreStateRequest

getStoreStateResponse protected_oe property

RopGetStoreState ROP response
protected RopGetStoreStateResponse,Microsoft.Protocols.TestSuites.Common getStoreStateResponse
return Microsoft.Protocols.TestSuites.Common.RopGetStoreStateResponse

insideObjHandle protected_oe property

Server object handle in the request
protected uint insideObjHandle
return uint

logonRequestForPrivateMailBox protected_oe property

The logon request for a private mail box
protected RopLogonRequest,Microsoft.Protocols.TestSuites.Common logonRequestForPrivateMailBox
return Microsoft.Protocols.TestSuites.Common.RopLogonRequest

logonRequestForPublicFolder protected_oe property

The logon request for public folder
protected RopLogonRequest,Microsoft.Protocols.TestSuites.Common logonRequestForPublicFolder
return Microsoft.Protocols.TestSuites.Common.RopLogonRequest

logonResponse protected_oe property

Logon response
protected RopLogonResponse,Microsoft.Protocols.TestSuites.Common logonResponse
return Microsoft.Protocols.TestSuites.Common.RopLogonResponse

longTermIdFromIdRequest protected_oe property

RopLongTermIdFromId ROP request
protected RopLongTermIdFromIdRequest,Microsoft.Protocols.TestSuites.Common longTermIdFromIdRequest
return Microsoft.Protocols.TestSuites.Common.RopLongTermIdFromIdRequest

longTermIdFromIdResponse protected_oe property

RopLongTermIdFromId ROP response
protected RopLongTermIdFromIdResponse,Microsoft.Protocols.TestSuites.Common longTermIdFromIdResponse
return Microsoft.Protocols.TestSuites.Common.RopLongTermIdFromIdResponse

messageMyClass protected_oe property

MessageClass "My.Class"
protected string messageMyClass
return string

messageMyClassToUpper protected_oe property

MessageClass "My.CLASS"
protected string messageMyClassToUpper
return string

outObjHandle protected_oe property

Server object handle in the response.
protected uint outObjHandle
return uint

outputBuffer protected_oe property

ROP output buffer
protected RopOutputBuffer outputBuffer
return RopOutputBuffer

oxcstorAdapter protected_oe property

The instance of the server adapter
protected IMS_OXCSTORAdapter oxcstorAdapter
return IMS_OXCSTORAdapter

passwordOfUserOfMailboxOnServer1 protected_oe property

The password of the user whose mailbox is on server1
protected string passwordOfUserOfMailboxOnServer1
return string

passwordOfUserOfMailboxOnServer2 protected_oe property

The password of the user for MailboxOnServer2
protected string passwordOfUserOfMailboxOnServer2
return string

publicDatabaseName1 protected_oe property

The identity of public database on the server1
protected string publicDatabaseName1
return string

publicFolderIsGhostedRequest protected_oe property

RopPublicFolderIsGhosted ROP request
protected RopPublicFolderIsGhostedRequest,Microsoft.Protocols.TestSuites.Common publicFolderIsGhostedRequest
return Microsoft.Protocols.TestSuites.Common.RopPublicFolderIsGhostedRequest

publicFolderIsGhostedResponse protected_oe property

RopPublicFolderIsGhosted ROP response
protected RopPublicFolderIsGhostedResponse,Microsoft.Protocols.TestSuites.Common publicFolderIsGhostedResponse
return Microsoft.Protocols.TestSuites.Common.RopPublicFolderIsGhostedResponse

readPerUserInformationRequest protected_oe property

RopReadPerUserInformation ROP request
protected RopReadPerUserInformationRequest,Microsoft.Protocols.TestSuites.Common readPerUserInformationRequest
return Microsoft.Protocols.TestSuites.Common.RopReadPerUserInformationRequest

readPerUserInformationResponse protected_oe property

RopReadPerUserInformation ROP response
protected RopReadPerUserInformationResponse,Microsoft.Protocols.TestSuites.Common readPerUserInformationResponse
return Microsoft.Protocols.TestSuites.Common.RopReadPerUserInformationResponse

returnStatus protected_oe property

Return status
protected bool returnStatus
return bool

secondSUTExistOrNot protected_oe property

A Boolean value indicates whether second system under test exists or not.
protected bool secondSUTExistOrNot
return bool

server1Name protected_oe property

The name of server1
protected string server1Name
return string

server2Name protected_oe property

The name of server2
protected string server2Name
return string

setReceiveFolderRequest protected_oe property

RopSetReceiveFolder ROP request
protected RopSetReceiveFolderRequest setReceiveFolderRequest
return RopSetReceiveFolderRequest

setReceiveFolderResponse protected_oe property

RopSetReceiveFolder ROP response
protected RopSetReceiveFolderResponse setReceiveFolderResponse
return RopSetReceiveFolderResponse

sutControlAdapter protected_oe property

The instance of the SUT control adapter
protected IMS_OXCSTORSUTControlAdapter sutControlAdapter
return IMS_OXCSTORSUTControlAdapter

transportByMAPIOrNot protected_oe property

A Boolean value indicates whether MAPI HTTP transport is set or not.
protected bool transportByMAPIOrNot
return bool

userDN protected_oe property

The essdn of the user
protected string userDN
return string

userNameOfMailboxOnServer1 protected_oe property

The user whose mailbox is on server1
protected string userNameOfMailboxOnServer1
return string

userNameOfMailboxOnServer2 protected_oe property

The user whose mailbox is on server2
protected string userNameOfMailboxOnServer2
return string

writePerUserInformationRequest protected_oe property

RopWritePerUserInformation ROP request
protected RopWritePerUserInformationRequest,Microsoft.Protocols.TestSuites.Common writePerUserInformationRequest
return Microsoft.Protocols.TestSuites.Common.RopWritePerUserInformationRequest

writePerUserInformationResponse protected_oe property

RopWritePerUserInformation ROP response
protected RopWritePerUserInformationResponse,Microsoft.Protocols.TestSuites.Common writePerUserInformationResponse
return Microsoft.Protocols.TestSuites.Common.RopWritePerUserInformationResponse