UnitTestBase Class
The base class of the LeanFT Visual Studio template classes that are provided when creating a new LeanFT test project.
Remarks
This class encapsulates all the functionality related to running LeanFT tests and creating the LeanFT HTML report.

C# Syntax

public abstract class UnitTestBase : UnitTestSuiteBase 
Inheritance Hierarchy

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

Public Properties
  Name Description
Public Property ALM The default ALM data-source for data-driven LeanFT tests. Use for NUnit 2.6x tests.  
Public Property static (Shared in Visual Basic) ALMStatic The static ALM data-source for data-driven LeanFT tests. Use for NUnit 3.x tests.  
Public Property Reporter Returns the Reporter of type used for reporting events.  
Top
Protected Methods
  Name Description
Protected Method GetAlternativeClassName Returns the alternative Class name that is used whenever framework errors occur.  
Protected Method GetAlternativeTestName Returns the alternative Test name that is used whenever framework errors occur.  
Protected Method GetClassName This method is implemented in LeanFT Visual Studio templates to get the running class name provided by the selected framework (NUnit/MSTest) TestContext.  
Protected Method GetConfigurationAssembly Returns theSystem.Reflection.Assemblyfor the currently loaded configuration. (Inherited from HP.LFT.UnitTesting.UnitTestSuiteBase )
Protected Method GetFrameworkTestResult This method is implemented in LeanFT Visual Studio templates to get the running test/class status provided by the selected framework (NUnit/MSTest) TestContext.  
Protected Method 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 )
Protected Method GetSdkConfiguration Returns an instance with the values from the 'App.config' of the assembly returned byUnitTestSuiteBase.GetConfigurationAssembly . (Inherited from HP.LFT.UnitTesting.UnitTestSuiteBase)
Protected Method GetTestName This method is implemented in LeanFT Visual Studio templates to get the running test name provided by the selected framework (NUnit/MSTest) TestContext.  
Protected Method GetTestParameters This method is implemented in LeanFT Visual Studio template to get the running test parameters provided by MSTest TestContext.  
Protected Method TestSetUp This method is called by LeanFT Visual Studio templates' BasicSetUp, which runs before each test method.  
Protected Method TestSuiteSetup Overridden. This method is called by LeanFT Visual Studio templates' GlobalSetup to initialize the test class. This method is called by LeanFT Visual Studio templates' GlobalSetup to initialize the test class.  
Protected Method TestSuiteTearDown This method is called by LeanFT Visual Studio templates' GlobalTeardown to clean up the test class. (Inherited from HP.LFT.UnitTesting.UnitTestSuiteBase )
Protected Method TestTearDown This method is called by LeanFT Visual Studio templates' BasicTearDown, which runs after each test method.  
Top