public void Test() { StackFrame stackFrame = new StackFrame(); MethodBase methodBase = stackFrame.GetMethod(); TestContext.CurrentContext.Test.Properties.Add("testCase", methodBase.Name); TWebDriver driver = new TWebDriver(); driver.Navigate().GoToUrl("http://www.google.com"); }
public void Test() { StackFrame stackFrame = new StackFrame(); MethodBase methodBase = stackFrame.GetMethod(); _testCase = methodBase.Name; TWebDriver driver = new TWebDriver(); driver.Navigate().GoToUrl("http://www.google.com"); }