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

A class contains all helper methods used in test case level.
Afficher le fichier Open project: OfficeDev/Interop-TestSuites Class Usage Examples

Méthodes publiques

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

Method Details

GenerateEmail() public static méthode

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

GeneratePortalUrl() public static méthode

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

GenerateRandomNumber() public static méthode

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

GenerateRandomString() public static méthode

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

GenerateUniqueOwnerName() public static méthode

A method is used to generate owner name.
public static GenerateUniqueOwnerName ( ) : string
Résultat string

GenerateUniquePortalName() public static méthode

A method is used to generate portal name.
public static GenerateUniquePortalName ( ) : string
Résultat string

GenerateUniqueSiteTitle() public static méthode

A method is used to get a unique site title.
public static GenerateUniqueSiteTitle ( ) : string
Résultat string

GenerateUrlPrefixWithAdminPort() public static méthode

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

GenerateUrlPrefixWithPortNumber() public static méthode

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

GenerateUrlWithoutPort() public static méthode

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

Initialize() public static méthode

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