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: 8.2.23
Syntax
C#
public class AutomatedTests : IDisposable

The AutomatedTests type exposes the following members.

Constructors
Methods
  NameDescription
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
Public methodDispose
Disposes the object
Protected methodGetClassAndAssemblyCategories
Get categories assigned to current test class and assembly.
Protected methodStatic memberGetSolutionFolderPath
Gets a path to the root folder of the Kentico solution provided that it contains a test project with current test.
Protected methodStatic memberGetTestAppSetting
Gets the app setting from the
Protected methodStatic memberGetTestConnectionString
Gets the connection string of the given name from test configuration file
Public methodInitBase
Inits test base (Ensures static context, reset handlers)
Public methodInitFixtureBase
Initializes the text fixture for all tests
Top
Extension Methods
  NameDescription
Public Extension MethodAsValue
Converts object to a query value which can be used as a query parameter
(Defined by QueryExtensions.)
Public Extension MethodGetAPIString
Gets the string by the specified resource key
(Defined by CoreExtensions.)
Public Extension MethodGetString
Gets the string by the specified resource key
(Defined by CoreExtensions.)
Public Extension MethodToBoolean
Returns the boolean representation of an object or default value if not.
(Defined by CoreExtensions.)
Public Extension MethodToDateTime
Returns the DateTime representation of an object or default value if not.
(Defined by CoreExtensions.)
Public Extension MethodToDouble
Returns the double representation of an object or default value if not.
(Defined by CoreExtensions.)
Public Extension MethodToGuid
Returns the Guid representation of an object or default value if not.
(Defined by CoreExtensions.)
Public Extension MethodToInteger
Returns the integer representation of an object or default value if not.
(Defined by CoreExtensions.)
Public Extension MethodToString
Returns the string representation of an object or default value if not.
(Defined by CoreExtensions.)
Top
Fields
  NameDescription
Protected fieldStatic memberAPP_KEY_EXCLUDED_CATEGORIES
Name of app key for excluded categories
Protected fieldStatic memberAPP_KEY_RESTRICTED_CATEGORIES
Name of app key for restricted categories
Top
Properties
  NameDescription
Protected propertyStatic memberGlobalTestsConfig
Global configuration file for tests (Tests.config located in root directory)
Public propertyLockContext Obsolete.
If true, the test locks the context
Public propertyUniqueStaticContext Obsolete.
If true, the test uses it's own unique static context. Note that this only applies to static variables defined through CMSStatic and CMSStaticObject.
Top
See Also