C# Класс Microsoft.Protocols.TestSuites.MS_OFFICIALFILE.TestSuiteBase

Наследование: Microsoft.Protocols.TestTools.TestClassBase
Показать файл Открыть проект Примеры использования класса

Защищенные методы

Метод Описание
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.

Приватные методы

Метод Описание
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

Описание методов

ConstructAllCommonProperties() защищенный Метод

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[]
Результат Microsoft.Protocols.TestSuites.MS_OFFICIALFILE.RecordsRepositoryProperty[]

ConstructAllProperties() защищенный Метод

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[]
Результат Microsoft.Protocols.TestSuites.MS_OFFICIALFILE.RecordsRepositoryProperty[]

ConstructAllRequiredProperties() защищенный Метод

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[]
Результат Microsoft.Protocols.TestSuites.MS_OFFICIALFILE.RecordsRepositoryProperty[]

ConstructPartialRequiredProperties() защищенный Метод

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[]
Результат Microsoft.Protocols.TestSuites.MS_OFFICIALFILE.RecordsRepositoryProperty[]

GenerateRandomTextFileName() защищенный Метод

This method is used to generate random file name with "TXT" suffix.
protected GenerateRandomTextFileName ( ) : string
Результат string

GetOriginalSaveLocation() защищенный Метод

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.
Результат string

GetOriginalSaveLocation() защищенный Метод

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.
Результат string

TestCleanup() защищенный Метод

Clean up the test.
protected TestCleanup ( ) : void
Результат void