C# 클래스 Microsoft.Protocols.TestSuites.MS_ADMINS.TestSuiteBase

A class contains all helper methods used in test case level.
파일 보기 프로젝트 열기: OfficeDev/Interop-TestSuites 1 사용 예제들

공개 메소드들

메소드 설명
GenerateEmail ( int size ) : string

This method is used to generate random e-mail with the specified size.

GeneratePortalUrl ( int size ) : string

This method is used to generate random portal url with the specified size.

GenerateRandomNumber ( int minValue, int maxValue ) : int

This method is used to random generate an integer in the specified range.

GenerateRandomString ( int size ) : string

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

GenerateUniqueOwnerName ( ) : string

A method is used to generate owner name.

GenerateUniquePortalName ( ) : string

A method is used to generate portal name.

GenerateUniqueSiteTitle ( ) : string

A method is used to get a unique site title.

GenerateUrlPrefixWithAdminPort ( ) : string

This method is used to generate a url prefix with admin port number. The format should be "HTTP://[SUTComputerName]:[AdminHTTPPortNumber]/sites/" or "HTTPS://[SUTComputerName]:[AdminHTTPSPortNumber]/sites/".

GenerateUrlPrefixWithPortNumber ( ) : string

This method is used to generate a url prefix with port number. The format should be "HTTP://[SUTComputerName]:[HTTPPortNumber]/sites/" or "HTTPS://[SUTComputerName]:[HTTPSPortNumber]/sites/".

GenerateUrlWithoutPort ( int size ) : string

This method is used to generate random url without port number which includes [TransportType]://[SUTComputerName].

Initialize ( ITestSite site ) : void

A method used to initialize the TestSuiteBase with specified ITestSite instance.

메소드 상세

GenerateEmail() 공개 정적인 메소드

This method is used to generate random e-mail with the specified size.
public static GenerateEmail ( int size ) : string
size int A parameter represents the generated e-mail size.
리턴 string

GeneratePortalUrl() 공개 정적인 메소드

This method is used to generate random portal url with the specified size.
public static GeneratePortalUrl ( int size ) : string
size int A parameter represents the generated portal url size.
리턴 string

GenerateRandomNumber() 공개 정적인 메소드

This method is used to random generate an integer in the specified range.
public static GenerateRandomNumber ( int minValue, int maxValue ) : int
minValue int The inclusive lower bound of the random number returned.
maxValue int The exclusive upper bound of the random number returned.
리턴 int

GenerateRandomString() 공개 정적인 메소드

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

GenerateUniqueOwnerName() 공개 정적인 메소드

A method is used to generate owner name.
public static GenerateUniqueOwnerName ( ) : string
리턴 string

GenerateUniquePortalName() 공개 정적인 메소드

A method is used to generate portal name.
public static GenerateUniquePortalName ( ) : string
리턴 string

GenerateUniqueSiteTitle() 공개 정적인 메소드

A method is used to get a unique site title.
public static GenerateUniqueSiteTitle ( ) : string
리턴 string

GenerateUrlPrefixWithAdminPort() 공개 정적인 메소드

This method is used to generate a url prefix with admin port number. The format should be "HTTP://[SUTComputerName]:[AdminHTTPPortNumber]/sites/" or "HTTPS://[SUTComputerName]:[AdminHTTPSPortNumber]/sites/".
public static GenerateUrlPrefixWithAdminPort ( ) : string
리턴 string

GenerateUrlPrefixWithPortNumber() 공개 정적인 메소드

This method is used to generate a url prefix with port number. The format should be "HTTP://[SUTComputerName]:[HTTPPortNumber]/sites/" or "HTTPS://[SUTComputerName]:[HTTPSPortNumber]/sites/".
public static GenerateUrlPrefixWithPortNumber ( ) : string
리턴 string

GenerateUrlWithoutPort() 공개 정적인 메소드

This method is used to generate random url without port number which includes [TransportType]://[SUTComputerName].
public static GenerateUrlWithoutPort ( int size ) : string
size int A parameter represents the random string size.
리턴 string

Initialize() 공개 정적인 메소드

A method used to initialize the TestSuiteBase with specified ITestSite instance.
public static Initialize ( ITestSite site ) : void
site ITestSite A parameter represents ITestSite instance.
리턴 void