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

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

Protected Methods

Method Description
CreateContentType ( string contentTypeDisplayName ) : string

Create a ContentType.

GenerateContentTypeProperties ( ) : UpdateContentTypeContentTypeProperties

Generate contentType properties.

GenerateDeleteFieldsDefinition ( ) : DeleteFieldsDefinition

Get a list of fields to be deleted on the content type.

GenerateInvalidDisplayName ( CONST_CHARS invalidString ) : string

Generate invalid display name for operation CreateContentType.

GenerateInvalidUrl ( string relatedInvalidUrl ) : string

Get invalid URL.

GenerateNewFields ( ) : AddOrUpdateFieldsDefinition

Generate newField parameter with specified newFieldOption.

GenerateNewFieldsForUpdate ( ) : AddOrUpdateFieldsDefinition

Generate newField parameter with specified newFieldOption.

GenerateRandomString ( int size ) : string

This method is used to generate random string in the range A-Z with the specified string size.

GenerateUpdateFields ( ) : AddOrUpdateFieldsDefinition

Generate updateFields parameter with specified newFieldOption.

GetErrorCode ( string errorString ) : string

Extract error code from error string.

GetSoapVersion ( ) : SoapProtocolVersion

Get Soap version.

InitPrivateVariables ( ) : void

Initialize variables using for test case class.

InitUpdateColumn ( ) : void

Do initialization for Updated columns with new fields.

TestCleanup ( ) : void

Clean up the test.

Private Methods

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

Method Details

CreateContentType() protected method

Create a ContentType.
protected CreateContentType ( string contentTypeDisplayName ) : string
contentTypeDisplayName string Display name will store in server.
return string

GenerateContentTypeProperties() protected method

Generate contentType properties.
protected GenerateContentTypeProperties ( ) : UpdateContentTypeContentTypeProperties
return UpdateContentTypeContentTypeProperties

GenerateDeleteFieldsDefinition() protected method

Get a list of fields to be deleted on the content type.
protected GenerateDeleteFieldsDefinition ( ) : DeleteFieldsDefinition
return Microsoft.Protocols.TestSuites.Common.DeleteFieldsDefinition

GenerateInvalidDisplayName() protected method

Generate invalid display name for operation CreateContentType.
protected GenerateInvalidDisplayName ( CONST_CHARS invalidString ) : string
invalidString CONST_CHARS InValid sign.
return string

GenerateInvalidUrl() protected method

Get invalid URL.
protected GenerateInvalidUrl ( string relatedInvalidUrl ) : string
relatedInvalidUrl string Invalid related URL
return string

GenerateNewFields() protected method

Generate newField parameter with specified newFieldOption.
protected GenerateNewFields ( ) : AddOrUpdateFieldsDefinition
return Microsoft.Protocols.TestSuites.Common.AddOrUpdateFieldsDefinition

GenerateNewFieldsForUpdate() protected method

Generate newField parameter with specified newFieldOption.
protected GenerateNewFieldsForUpdate ( ) : AddOrUpdateFieldsDefinition
return Microsoft.Protocols.TestSuites.Common.AddOrUpdateFieldsDefinition

GenerateRandomString() protected method

This method is used to generate random string in the range A-Z with the specified string size.
protected GenerateRandomString ( int size ) : string
size int A parameter represents the generated string size.
return string

GenerateUpdateFields() protected method

Generate updateFields parameter with specified newFieldOption.
protected GenerateUpdateFields ( ) : AddOrUpdateFieldsDefinition
return Microsoft.Protocols.TestSuites.Common.AddOrUpdateFieldsDefinition

GetErrorCode() protected method

Extract error code from error string.
protected GetErrorCode ( string errorString ) : string
errorString string An error string from soap exception.
return string

GetSoapVersion() protected method

Get Soap version.
protected GetSoapVersion ( ) : SoapProtocolVersion
return SoapProtocolVersion

InitPrivateVariables() protected method

Initialize variables using for test case class.
protected InitPrivateVariables ( ) : void
return void

InitUpdateColumn() protected method

Do initialization for Updated columns with new fields.
protected InitUpdateColumn ( ) : void
return void

TestCleanup() protected method

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