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

Inheritance: Microsoft.Protocols.TestTools.TestClassBase
Afficher le fichier Open project: OfficeDev/Interop-TestSuites Class Usage Examples

Méthodes protégées

Méthode 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

Méthode 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 méthode

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[]
Résultat Microsoft.Protocols.TestSuites.MS_OFFICIALFILE.RecordsRepositoryProperty[]

ConstructAllProperties() protected méthode

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[]
Résultat Microsoft.Protocols.TestSuites.MS_OFFICIALFILE.RecordsRepositoryProperty[]

ConstructAllRequiredProperties() protected méthode

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[]
Résultat Microsoft.Protocols.TestSuites.MS_OFFICIALFILE.RecordsRepositoryProperty[]

ConstructPartialRequiredProperties() protected méthode

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[]
Résultat Microsoft.Protocols.TestSuites.MS_OFFICIALFILE.RecordsRepositoryProperty[]

GenerateRandomTextFileName() protected méthode

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

GetOriginalSaveLocation() protected méthode

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.
Résultat string

GetOriginalSaveLocation() protected méthode

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.
Résultat string

TestCleanup() protected méthode

Clean up the test.
protected TestCleanup ( ) : void
Résultat void