Click or drag to resize
AutomatedTests Class
Base class for advanced tests
Inheritance Hierarchy

Namespace: CMS.Tests
Assembly: CMS.Tests (in CMS.Tests.dll) Version: 9.0.0
Syntax
C#
public class AutomatedTests : IMSTestSetup, 
	IDisposable

The AutomatedTests type exposes the following members.

Constructors
  NameDescription
Protected methodAutomatedTests
Constructor
Top
Fields
  NameDescription
Protected fieldStatic memberAPP_KEY_LICENSE_KEY
Name of app key for license key that is used in isolated integration tests.
Protected fieldStatic memberDATA_FOLDER
Path to the data folder. Default is "Data\\"
Top
Properties
  NameDescription
Public propertyCurrentTestName
Current test name
Protected propertyStatic memberFirstTest
Returns true if the test is the first one executed in this fixture
Protected propertyStatic memberFirstTestInDomain
Returns true if the test is the first one executed on current domain
Protected propertyStatic memberGlobalTestsConfig Obsolete.
Global configuration file for tests (Tests.config located in root directory)
Public propertyLastTestName
Last test name
Top
Methods
  NameDescription
Public methodAddExtender
Adds the test extender
Public methodCleanUpBase
Cleans test base (Restore static context)
Protected methodStatic memberCleanUpDataContext
Cleans up the data context
Public methodCleanUpFixtureBase
Initializes the text fixture for all tests
Protected methodStatic memberCleanUpTestClass
Cleans up the MSTest class after all tests.
Public methodDispose
Disposes the object
Protected methodEndApplication
Performs application end
Protected methodStatic memberGetSolutionFolderPath Obsolete.
Gets a path to the root folder of the Kentico solution provided that it contains a test project with current test.
Protected methodStatic memberGetTestAppSetting Obsolete.
Gets the app setting from test configuration file
Protected methodStatic memberGetTestConnectionString Obsolete.
Gets the connection string of the given name from test configuration file
Protected methodGetTestExtenders
Gets the current test extenders
Protected methodInitApplication
Performs application initialization if not already initialized
Public methodInitBase
Inits test base (Ensures static context, reset handlers)
Public methodInitFixtureBase
Initializes the text fixture for all tests
Protected methodStatic memberInitializeTestClass
Initialize MSTest class for all tests.
Public methodResetAppState
Resets the application state
Protected methodRunExtenderActionTCurrentLevel
Gets the current test extenders
Protected methodTestMilestone
Milestone
Top
See Also