UFT Pro (LeanFT) .NET SDK Reference, Version 14.03
UnitTestBase Class Methods


Protected Methods
 NameDescription
Protected MethodGetAlternativeClassNameReturns the alternative Class name that is used whenever framework errors occur.  
Protected MethodGetAlternativeTestNameReturns the alternative Test name that is used whenever framework errors occur.  
Protected MethodGetClassNameThis method is implemented in LeanFT Visual Studio templates to get the running class name provided by the selected framework (NUnit/MSTest) TestContext.  
Protected MethodGetConfigurationAssemblyReturns the System.Reflection.Assembly for the currently loaded configuration. (Inherited from HP.LFT.UnitTesting.UnitTestSuiteBase)
Protected MethodGetFrameworkTestResultThis method is implemented in LeanFT Visual Studio templates to get the running test/class status provided by the selected framework (NUnit/MSTest) TestContext.  
Protected MethodGetReportConfigurationReturns a HP.LFT.Report.Configuration.ReportConfiguration instance with the values from the 'App.config' of the assembly returned by UnitTestSuiteBase.GetConfigurationAssembly. (Inherited from HP.LFT.UnitTesting.UnitTestSuiteBase)
Protected MethodGetSdkConfigurationReturns an instance with the values from the 'App.config' of the assembly returned by UnitTestSuiteBase.GetConfigurationAssembly. (Inherited from HP.LFT.UnitTesting.UnitTestSuiteBase)
Protected MethodGetTestNameThis method is implemented in LeanFT Visual Studio templates to get the running test name provided by the selected framework (NUnit/MSTest) TestContext.  
Protected MethodGetTestParametersThis method is implemented in LeanFT Visual Studio template to get the running test parameters provided by MSTest TestContext.  
Protected MethodTestSetUpThis method is called by LeanFT Visual Studio templates' BasicSetUp, which runs before each test method.  
Protected MethodTestSuiteSetupOverridden. 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 MethodTestSuiteTearDownThis method is called by LeanFT Visual Studio templates' GlobalTeardown to clean up the test class. (Inherited from HP.LFT.UnitTesting.UnitTestSuiteBase)
Protected MethodTestTearDownThis method is called by LeanFT Visual Studio templates' BasicTearDown, which runs after each test method.  
Top
See Also

Reference

UnitTestBase Class
HP.LFT.UnitTesting Namespace