public void BeforeTest()
        {
            DriverContext.CurrentDirectory = AppDomain.CurrentDomain.BaseDirectory;
            DriverContext.TestTitle        = scenarioContext.ScenarioInfo.Title;
            LogTest.LogTestStarting(DriverContext);
            DriverContext.Start();
            DriverContext.WindowMaximize();
            scenarioContext["DriverContext"] = DriverContext;

            ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12;
        }
Exemplo n.º 2
0
 public void BeforeTest()
 {
     driverContext                  = new DriverContext();
     dr                             = driverContext;
     customReportMetadata           = ReportDetails(TestContext.FullyQualifiedTestClassName);
     testSuite.ApplicationName      = customReportMetadata[4];
     testSuite.environmentName      = customReportMetadata[0];
     testSuite.ClientID             = customReportMetadata[3];
     testSuite.SuiteName            = customReportMetadata[1];
     testSuite.buildVersion         = customReportMetadata[2];
     DriverContext.CurrentDirectory = AppDomain.CurrentDomain.BaseDirectory;
     DriverContext.TestTitle        = TestContext.TestName;
     LogTest.LogTestStarting(driverContext);
     if ((!TestContext.FullyQualifiedTestClassName.ToString().Contains("API")) & (!TestContext.FullyQualifiedTestClassName.ToString().Contains("IO")) & (!OrderExecutionTests.ordTestSuiteName.Contains("API")))
     {
         DriverContext.Start();
     }
 }