コード例 #1
0
 public virtual void InitTest()
 {
     try
     {
         trace.Log(CurrentTestName);
         CreateApp();
         NavigateToHomePage();
     }
     catch
     {
         CloseApp();
         throw;
     }
 }
コード例 #2
0
        public virtual string CurrentTestName => TestContext.TestName; // NUnit => replace or override this method with: TestContext.CurrentContext.Test.Name

        protected TestsBase()
        {
            trace = new TracingService(GetType(), Constants.DefaultTraceSource);
            trace.Log("Init Tracing Service - Success");
        }