Class TestSuite
Provides functionality to create, load, save, and run a test suite.
public sealed class TestSuite : TestSuiteEntryContainer, ITestSuite
- Inheritance
-
TestSuite
- Implements
- Inherited Members
- Extension Methods
Constructors
TestSuite(string)
public TestSuite(string name)
Parameters
namestring
Fields
TestSuiteExtension
public static readonly string TestSuiteExtension
Field Value
Properties
Checked
[Browsable(false)]
public bool Checked { get; set; }
Property Value
ContainerType
[Browsable(false)]
public Type ContainerType { get; set; }
Property Value
Current
Gets the current test suite.
[Browsable(false)]
public static ITestSuite Current { get; }
Property Value
CurrentTestContainer
Gets the current 'test case' or 'smart folder'.
public static ITestContainer CurrentTestContainer { get; }
Property Value
DataBindingManager
[Browsable(false)]
public DataBindingManager DataBindingManager { get; }
Property Value
DataConnectorCaches
Gets the data connectors of the test suite.
[Browsable(false)]
public IList<DataCache> DataConnectorCaches { get; }
Property Value
DataConnectorManager
[Browsable(false)]
public DataConnectorManager DataConnectorManager { get; }
Property Value
DefaultOwnerName
[Browsable(false)]
public string DefaultOwnerName { get; }
Property Value
FileName
[Browsable(false)]
public string FileName { get; set; }
Property Value
HasDirtyModules
[Browsable(false)]
public bool HasDirtyModules { get; set; }
Property Value
IsDirty
[Browsable(false)]
public bool IsDirty { get; }
Property Value
IsReadOnly
[Browsable(false)]
public bool IsReadOnly { get; set; }
Property Value
ParameterMasks
Gets the parameter masks of the test suite.
[Browsable(false)]
public IDictionary<string, string> ParameterMasks { get; }
Property Value
- IDictionary<string, string>
The test suite parameters.
Parameters
Gets the parameters of the test suite.
[Browsable(false)]
public IDictionary<string, string> Parameters { get; }
Property Value
- IDictionary<string, string>
The test suite parameters.
ReferencedAssemblies
[Browsable(false)]
public IList<string> ReferencedAssemblies { get; set; }
Property Value
ReportLevel
[TypeConverter(typeof(TestSuiteReportLevelConverter))]
public ReportLevel ReportLevel { get; set; }
Property Value
ReportSettings
Gets all the settings for the Report.
[Browsable(false)]
public ReportSettings ReportSettings { get; }
Property Value
- ReportSettings
The report settings.
RunConfigurations
Gets the run configurations of the test suite.
[Browsable(false)]
public IList<TestSuiteRunConfig> RunConfigurations { get; }
Property Value
- IList<TestSuiteRunConfig>
The run configurations.
RunLabel
Gets the run label of the test suite.
[Browsable(false)]
public string RunLabel { get; set; }
Property Value
- string
The test suite run label.
SelectedRunConfig
Gets the selected run configuration of the test suite.
[Browsable(false)]
public TestSuiteRunConfig SelectedRunConfig { get; }
Property Value
- TestSuiteRunConfig
The selected run configuration.
ShowProgressDialog
public bool ShowProgressDialog { get; set; }
Property Value
ShowTestModuleFullPath
public bool ShowTestModuleFullPath { get; set; }
Property Value
TestSuiteEntry
[Browsable(false)]
public TestSuiteEntryContainer TestSuiteEntry { get; }
Property Value
UserRunLabel
public string UserRunLabel { get; set; }
Property Value
WarnUnboundVariables
[TypeConverter(typeof(WarnUnboundVariablesConverter))]
public bool? WarnUnboundVariables { get; set; }
Property Value
- bool?
WorkingDirectory
Gets or sets the working directory for the test suite.
[Browsable(false)]
public static string WorkingDirectory { get; set; }
Property Value
- string
The working directory.
Methods
CreateFromFile(string)
public static TestSuite CreateFromFile(string fileName)
Parameters
fileNamestring
Returns
CreateFromXmlNode(XmlNode, bool)
public static TestSuite CreateFromXmlNode(XmlNode node, bool captureChangeState)
Parameters
nodeXmlNodecaptureChangeStatebool
Returns
DoGetFactoryIdentifier()
[Browsable(false)]
protected override string DoGetFactoryIdentifier()
Returns
GetAllTestSuiteEntries()
[Browsable(false)]
public IList<TestSuiteEntry> GetAllTestSuiteEntries()
Returns
GetNewUniqueName<T>(string, Opt<T>)
public string GetNewUniqueName<T>(string name, Opt<T> existing) where T : TestSuiteEntry
Parameters
namestringexistingOpt<T>
Returns
Type Parameters
T
GetTestContainer(string)
Gets the 'test case' or 'smart folder' with the specified name from the test suite.
public ITestContainer GetTestContainer(string name)
Parameters
namestringThe test 'test case' or 'smart folder'.
Returns
- ITestContainer
The 'test case' or 'smart folder' with the specified name or
nullif there is no test container with such a name within the test suite.
GetTestSuitesDirectory()
Gets the default path for test suits.
public static string GetTestSuitesDirectory()
Returns
- string
The default path for test suits.
IsNameUsed<T>(string, Opt<T>)
public bool IsNameUsed<T>(string name, Opt<T> existing) where T : TestSuiteEntry
Parameters
namestringexistingOpt<T>
Returns
Type Parameters
T
Run()
public int Run()
Returns
Run(string, string, Dictionary<string, string>)
public int Run(string runConfigName, string runLabel, Dictionary<string, string> parameters)
Parameters
runConfigNamestringrunLabelstringparametersDictionary<string, string>
Returns
SaveToFile(Stream, bool)
public string SaveToFile(Stream stream, bool forceSaveAs)
Parameters
Returns
SerializeToXml(XmlNode)
public void SerializeToXml(XmlNode node)
Parameters
nodeXmlNode
ThrowIfNameNotOk(string)
protected override void ThrowIfNameNotOk(string value)
Parameters
valuestring
ToXmlDoc()
public XmlDoc ToXmlDoc()
Returns
- XmlDoc
Events
TestSuiteCompleted
public static event EventHandler TestSuiteCompleted
Event Type
TestSuiteStarting
public static event EventHandler TestSuiteStarting