예제 #1
0
        internal String CheckLayoutPost(IWebDriver driver, string specFilePath, SectionFilter sectionFilter, string testTitle, string reportTitle, string reportPath, bool isReportEnabled = false)
        {
            RemoteWebDriver driver1  = (RemoteWebDriver)driver;
            Request         request1 = new Request();

            request1.Url           = RemoteWebDriverHelper.GetExecutorURLFromDriver(driver1).AbsoluteUri;
            request1.SessionId     = driver1.SessionId.ToString();
            request1               = GetSpecFilePath(specFilePath, request1);
            request1.SectionFilter = sectionFilter;
            request1.ReportEnabled = isReportEnabled;
            request1               = setupReportSettings(testTitle, reportTitle, reportPath, request1);
            return(ExecuteRequest(request1));
        }
예제 #2
0
        internal string CheckLayoutPost(IWebDriver driver1, string specPath, List <string> includedTags, string testTitle, string reportTitle, string reportPath, bool isReportEnabled = false)
        {
            RemoteWebDriver driver   = (RemoteWebDriver)driver1;
            Request         request1 = new Request();

            request1.Url           = RemoteWebDriverHelper.GetExecutorURLFromDriver(driver).AbsoluteUri;
            request1.SessionId     = driver.SessionId.ToString();
            request1               = GetSpecFilePath(specPath, request1);
            request1.IncludedTags  = includedTags;
            request1.ReportEnabled = isReportEnabled;
            request1               = setupReportSettings(testTitle, reportTitle, reportPath, request1);
            return(ExecuteRequest(request1));
        }