Share this page

NUnit3UnitTestBase Class
The base class of the classes provided by the Visual Studio template when creating an NUnit 3 test project.
Remarks
This class encapsulates all the functionality related to running tests and creating the HTML report.

C# Syntax

    public abstract class NUnit3UnitTestBase : UnitTestBase

Inheritance Hierarchy

System.Object
HP.LFT.UnitTesting.UnitTestSuiteBase
HP.LFT.UnitTesting.UnitTestBase
HP.LFT.UnitTesting.NUnit3UnitTestBase

Public Properties

| Name | Description
--- | --- | ---
| ALM | The default ALM data-source for data-driven tests. Use for NUnit 2.6x tests. (Inherited from HP.LFT.UnitTesting.UnitTestBase )
| Reporter | Returns the Reporter of type used for reporting events. (Inherited from HP.LFT.UnitTesting.UnitTestBase )

Top
Protected Methods

| Name | Description
--- | --- | ---
| GetAlternativeClassName | Returns the alternative Class name that is used whenever framework errors occur. (Inherited from HP.LFT.UnitTesting.UnitTestBase )
| GetAlternativeTestName | Returns the alternative Test name that is used whenever framework errors occur. (Inherited from HP.LFT.UnitTesting.UnitTestBase )
| GetClassName | This method is implemented in the Visual Studio templates to get the running class name provided by the selected framework (NUnit/MSTest) TestContext. (Inherited from HP.LFT.UnitTesting.UnitTestBase )
| GetConfigurationAssembly | Returns theSystem.Reflection.Assemblyfor the currently loaded configuration. (Inherited from HP.LFT.UnitTesting.UnitTestSuiteBase )
| GetFrameworkTestResult | This method is implemented in the Visual Studio templates to get the running test/class status provided by the selected framework (NUnit/MSTest) TestContext. (Inherited from HP.LFT.UnitTesting.UnitTestBase )
| GetReportConfiguration | Returns a HP.LFT.Report.Configuration.ReportConfigurationHP.LFT.UnitTesting.UnitTestSuiteBase . (Inherited from UnitTestSuiteBase.GetConfigurationAssembly instance with the values from the 'App.config' of the assembly returned by )
| GetSdkConfiguration | Returns an instance with the values from the 'App.config' of the assembly returned byUnitTestSuiteBase.GetConfigurationAssembly . (Inherited from HP.LFT.UnitTesting.UnitTestSuiteBase)
| GetTestName | This method is implemented in the Visual Studio templates to get the running test name provided by the selected framework (NUnit/MSTest) TestContext. (Inherited from HP.LFT.UnitTesting.UnitTestBase )
| GetTestParameters | This method is implemented in the Visual Studio template to get the running test parameters provided by MSTest TestContext. (Inherited from HP.LFT.UnitTesting.UnitTestBase )
| TestSetUp | This method is called by the Visual Studio templates' BasicSetUp, which runs before each test method. (Inherited from HP.LFT.UnitTesting.UnitTestBase )
| TestSuiteSetup | This method is called by the Visual Studio templates' GlobalSetup to initialize the test class. This method is called by the Visual Studio templates' GlobalSetup to initialize the test class. (Inherited from HP.LFT.UnitTesting.UnitTestBase )
| TestSuiteTearDown | Overridden. This method is called by the Visual Studio templates' GlobalTeardown to clean up the test class. This method is called by the Visual Studio templates' GlobalTeardown to clean up the NUnit 3 test class.
| TestTearDown | This method is called by the Visual Studio templates' BasicTearDown, which runs after each test method. (Inherited from HP.LFT.UnitTesting.UnitTestBase )

Top

Tips to improve your search results... OpenText™ Functional Testing for Developers .NET SDK Version: 25.2 OpenText™ Functional Testing for Developers SDK 25.2 All View Local Help Center View Online Help Center Version: