How can I save test case result in a variable whether it is passed or not after the test case execution is done?
问题 I am using selenium webdriver in visual studio Using NUNIT C#. The code of test case is public class MainProjectFile { private IWebDriver WDriver; private log4net.ILog Testlog; [TestInitialize] public void wd() { WDriver = Helper.GetWebDriver(helperconst.browserType.Chrome); Testlog = LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType); } [Priority(1)] [TestMethod] public void search() { Testlog.Info("Test ID:001, This test will select the criteria and update