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

Inheritance: Microsoft.Protocols.TestTools.TestClassBase
Show file Open project: OfficeDev/Interop-TestSuites Class Usage Examples

Protected Methods

Method Description
ConstructAllCommonProperties ( ) : Microsoft.Protocols.TestSuites.MS_OFFICIALFILE.RecordsRepositoryProperty[]

This method is used to construct all the common properties _dlc_hold_url, _dlc_hold_comments, _dlc_hold_id, _dlc_hold_searchqquery and _dlc_hold_searchcontexturl.

ConstructAllProperties ( ) : Microsoft.Protocols.TestSuites.MS_OFFICIALFILE.RecordsRepositoryProperty[]

This method is used to construct the required record repository properties that is configured in the PropertyConfig.xml file and all the common properties _dlc_hold_url, _dlc_hold_comments, _dlc_hold_id, _dlc_hold_searchqquery and _dlc_hold_searchcontexturl.

ConstructAllRequiredProperties ( ) : Microsoft.Protocols.TestSuites.MS_OFFICIALFILE.RecordsRepositoryProperty[]

This method is used to construct the required record repository properties that is configured in the PropertyConfig.xml file.

ConstructPartialRequiredProperties ( ) : Microsoft.Protocols.TestSuites.MS_OFFICIALFILE.RecordsRepositoryProperty[]

This method is used to construct the required record repository properties that is configured in the PropertyConfig.xml file. But not all the record repository properties will be returned, the first property will be skipped to return partial required properties.

GenerateRandomTextFileName ( ) : string

This method is used to generate random file name with "TXT" suffix.

GetOriginalSaveLocation ( string libraryUrl ) : string

This method is used to construct the full file URL in the give library with a random file name.

GetOriginalSaveLocation ( string libraryUrl, string suggestedFileName ) : string

This method is used to construct the full file URL in the give library with the suggested file name.

TestCleanup ( ) : void

Clean up the test.

Private Methods

Method Description
ClassCleanup ( ) : void
ClassInitialize ( Microsoft.VisualStudio.TestTools.UnitTesting.TestContext testContext ) : void
DeserializePropertyConfig ( ) : PropertyConfig

This method is used de-serialize the properties from the configurable file PropertyConfig.xml.

TestSuiteBaseInitialize ( ) : void

Method Details

ConstructAllCommonProperties() protected method

This method is used to construct all the common properties _dlc_hold_url, _dlc_hold_comments, _dlc_hold_id, _dlc_hold_searchqquery and _dlc_hold_searchcontexturl.
protected ConstructAllCommonProperties ( ) : Microsoft.Protocols.TestSuites.MS_OFFICIALFILE.RecordsRepositoryProperty[]
return Microsoft.Protocols.TestSuites.MS_OFFICIALFILE.RecordsRepositoryProperty[]

ConstructAllProperties() protected method

This method is used to construct the required record repository properties that is configured in the PropertyConfig.xml file and all the common properties _dlc_hold_url, _dlc_hold_comments, _dlc_hold_id, _dlc_hold_searchqquery and _dlc_hold_searchcontexturl.
protected ConstructAllProperties ( ) : Microsoft.Protocols.TestSuites.MS_OFFICIALFILE.RecordsRepositoryProperty[]
return Microsoft.Protocols.TestSuites.MS_OFFICIALFILE.RecordsRepositoryProperty[]

ConstructAllRequiredProperties() protected method

This method is used to construct the required record repository properties that is configured in the PropertyConfig.xml file.
protected ConstructAllRequiredProperties ( ) : Microsoft.Protocols.TestSuites.MS_OFFICIALFILE.RecordsRepositoryProperty[]
return Microsoft.Protocols.TestSuites.MS_OFFICIALFILE.RecordsRepositoryProperty[]

ConstructPartialRequiredProperties() protected method

This method is used to construct the required record repository properties that is configured in the PropertyConfig.xml file. But not all the record repository properties will be returned, the first property will be skipped to return partial required properties.
protected ConstructPartialRequiredProperties ( ) : Microsoft.Protocols.TestSuites.MS_OFFICIALFILE.RecordsRepositoryProperty[]
return Microsoft.Protocols.TestSuites.MS_OFFICIALFILE.RecordsRepositoryProperty[]

GenerateRandomTextFileName() protected method

This method is used to generate random file name with "TXT" suffix.
protected GenerateRandomTextFileName ( ) : string
return string

GetOriginalSaveLocation() protected method

This method is used to construct the full file URL in the give library with a random file name.
protected GetOriginalSaveLocation ( string libraryUrl ) : string
libraryUrl string Specify the library URL in which the file exists.
return string

GetOriginalSaveLocation() protected method

This method is used to construct the full file URL in the give library with the suggested file name.
protected GetOriginalSaveLocation ( string libraryUrl, string suggestedFileName ) : string
libraryUrl string Specify the library URL in which the file exists.
suggestedFileName string Specify the suggested file name.
return string

TestCleanup() protected method

Clean up the test.
protected TestCleanup ( ) : void
return void