Пример #1
0
        public void SetupTest(TestEnvInfo testEnvInfo)
        {
            StringBuilder verificationErrors = new StringBuilder();

            verificationErrors.AppendLine(System.Environment.NewLine);
            verificationErrors.AppendLine("#####################  Test Header ####################");
            verificationErrors.AppendLine(" baseURL:            " + testEInfo.testClassName);
            verificationErrors.AppendLine(" baseURL:            " + testEnvInfo.baseURL);
            verificationErrors.AppendLine(" GUID:               " + testEnvInfo.guid);
            verificationErrors.AppendLine(" CurrentBrowser:     " + testEnvInfo.parentBrowser);
            verificationErrors.AppendLine(" TestUser:           "******" TestPassword:       "******" TestEmail:          " + testEnvInfo.email);
            verificationErrors.AppendLine(" Timeout:            " + testEnvInfo.implicitTimeout + " sec");
            verificationErrors.AppendLine(" StartTime:          " + DateTime.Now.ToString());
            verificationErrors.AppendLine("#######################################################");
            //loggerInfo loggerInfo = new WDGL.loggerInfo();

            loggerInfo.Instance.LogInfo(verificationErrors.ToString());
            loggerInfo.Instance.LogInfo("Start SetupTest");
            StartRecordingVideo();
            _driver = testEnvInfo.StratDriver();
            _driver.Manage().Timeouts().ImplicitlyWait(TimeSpan.FromSeconds(Convert.ToInt16(testEnvInfo.implicitTimeout)));
            string baseURL = testEnvInfo.GetURL();
        }
Пример #2
0
        public void SetupTest(TestEnvInfo testEnvInfo)
        {
            _driver = testEnvInfo.StratDriver();
            _driver.Manage().Timeouts().ImplicitlyWait(TimeSpan.FromSeconds(Convert.ToInt16(testEnvInfo.timeout)));
            string        baseURL            = testEnvInfo.GetURL();
            StringBuilder verificationErrors = new StringBuilder();

            AutomationLogging.className   = testEnvInfo.testClassName;
            AutomationLogging.currentGuid = testEnvInfo.guid;
            verificationErrors.AppendLine(System.Environment.NewLine +
                                          ":::::    GUID: " + testEnvInfo.guid);
            verificationErrors.AppendLine(":::::    Timeout: " + testEnvInfo.timeout + " sec");
            verificationErrors.AppendLine(":::::    ParentBrowser: " + testEnvInfo.parentBrowser);
            verificationErrors.AppendLine(":::::    TestUser: "******":::::    TestPassword: "******":::::    TestEmail: " + testEnvInfo.testEmail);
            verificationErrors.AppendLine(":::::    baseURL: " + testEnvInfo.baseURL);
            verificationErrors.AppendLine(":::::    DeleteOldLogfiles: " + testEnvInfo.deleteOldLogFiles);
            loggerInfo.Instance.LogInfo(verificationErrors.ToString());
        }