Исключение Selenium webdriver. HTTP -запрос на сервер удаленного WebDriver для URL XYZC#

Место общения программистов C#
Ответить Пред. темаСлед. тема
Anonymous
 Исключение Selenium webdriver. HTTP -запрос на сервер удаленного WebDriver для URL XYZ

Сообщение Anonymous »

Итак, я пытаюсь настроить набор для тестирования селена с использованием C# и NUNIT. Все, казалось, работает нормально, пока моя продолжительность теста не стала длиться> 6 минут в длину. В настоящее время в настоящее время любые тесты более 6 минут заканчиваются с ошибкой, как указано в заголовке. "openqa.selenium.webdriverexception: http -запрос на сервер удаленного Webdriver для URL http: // localhost: 52821/session/f88e9cd6e93e8a3ef98796aaf87d14dd/url treamed после 90 секунд. /> Протестируемые страницы, однако, представляют собой живые производственные веб -сайты, ничто не протестировано на локальном хосте. Иногда тест проходит в течение 6 минут и останавливается в другое время 13 минут или где -либо между ними. Часто это даже доходит до последней страницы теста и бросит ошибку туда. Странно, если я разделяю страницы, это работает нормально. Однако, когда тест терпит неудачу таким образом, Chromedriver не выходит, и страница остается открытой, когда обстановка крутится, как и ожидание запроса. Я хочу знать, что это происходит. Я переустановил обоих и одинаковую проблему. Все пакеты Nuget, которые я использую, также обновлены. Поэтому я включу все, что, я думаю, является актуальным.
Я использовал подход Singleton (Just Fyi)
code

setup

Код: Выделить всё

[SetUpFixture]
[TestFixture]
public class Setup
{
IWebDriver driver;

//Runs before ANY test is run
//provies a place to set up configs for a testing env
[OneTimeSetUp]
public void RunBeforeAllTests()
{
driver = WebDriverSingleton.GetInstance();
}

//Will run after every test has been completed
//clean up
[OneTimeTearDown]
public void RunAfterAllTests()
{
WebDriverSingleton.Terminate();
}
}
Driver
public class Driver
{
public IWebDriver driver;

public Driver()
{
this.driver = WebDriverSingleton.GetInstance();
}

public void Start()
{
driver = WebDriverSingleton.GetInstance();
driver.Manage().Window.Maximize();
}
public void End()
{
driver.Close();
//WebDriverSingleton.Terminate();
}
public void GoTo(string url)
{
this.driver.Url = url;
}

public IWebElement GetElementBy(string method, string selector)
{
WebDriverWait wait = new WebDriverWait(driver, TimeSpan.FromMilliseconds(20000));
try
{
switch (method)
{
case "tag":
return wait.Until(ExpectedConditions.ElementIsVisible(By.TagName(selector)));
case "xpath":
return wait.Until(ExpectedConditions.ElementIsVisible(By.XPath(selector)));
case "css":
return wait.Until(ExpectedConditions.ElementIsVisible(By.CssSelector(selector)));
case "id":
return wait.Until(ExpectedConditions.ElementIsVisible(By.Id(selector)));
default:
return null;
}
}catch (Exception ex)
{
Assert.Fail("FAILURE! last page: " + this.driver.Url + "\n" + ex.Message);
return null;
}

}

public string GetTextBy(string method, string selector)
{
WebDriverWait wait = new(driver, TimeSpan.FromMilliseconds(10000));
//{
// didnt seem to work :/
// PollingInterval = TimeSpan.FromSeconds(5),
//};

switch (method)
{
case "tag":
return wait.Until(ExpectedConditions.ElementIsVisible(By.TagName(selector))).Text;
case "xpath":
return wait.Until(ExpectedConditions.ElementIsVisible(By.XPath(selector))).Text;
case "css":
return wait.Until(ExpectedConditions.ElementIsVisible(By.CssSelector(selector))).Text;
case "id":
return wait.Until(ExpectedConditions.ElementIsVisible(By.Id(selector))).Text;
default:
return null;
}
}
}

singleton
public sealed class WebDriverSingleton
{
private static IWebDriver instance = null;
private WebDriverSingleton() { }

public static IWebDriver GetInstance()
{
if(instance == null)
{
ChromeOptions options = new();
options.BrowserVersion = "100.0.4896.6000";
options.AddArgument("no-sandbox");
instance = new ChromeDriver(Environment.CurrentDirectory, options, TimeSpan.FromSeconds(90));
}

return instance;
}

public static void Terminate()
{
instance.Close();
instance.Quit();
instance.Dispose();
instance = null;
}

}

тестовый класс, где выпущенная проблема
[TestFixture]
public class PowerSupplyTests
{
readonly Driver driver = new Driver();
private readonly Common Common = new();
public List ProductPages { get; set; }
public string TestDomain { get; set; }
public string CurrLang { get; set; }
// for now only 1 language comparison can be run at a time
public List LanguagesToTest = new List()
{
/*"DE","ES", */ "FR"/*, "IT"*/
};
public List ProductPageListOldTechSpecTable = new List()
{
"/products/industrial-power-supply/quint-1-phase-xt.shtml",
"/products/industrial-power-supply/quint-3-phase.shtml",
//"/products/industrial-power-supply/trio-3-phase.shtml"
};
public List ProductPageListBasicDataTable = new List()
{
"/products/industrial-din-rail-power-supplies.shtml",
};
public List P r o d u c t P a g e L i s t S i n g l e P r o d u c t = n e w L i s t & l t ; s t r i n g & g t ; ( ) < b r / > { < b r / > & q u o t ; / p r o d u c t s / i n d u s t r i a l - p o w e r - s u p p l y / q u i n t - h i g h - i n p u t . s h t m l & q u o t ; , < b r / > & q u o t ; / p r o d u c t s / i n d u s t r i a l - p o w e r - s u p p l y / q u i n t - p s - 1 2 d c - 1 2 d c - 8 - 2 9 0 5 0 0 7 8 . s h t m l & q u o t ; , < b r / > & q u o t ; / p r o d u c t s / i n d u s t r i a l - p o w e r - s u p p l y / q u i n t - p s - 1 2 d c - 2 4 d c - 5 - 2 3 2 0 1 3 1 8 . s h t m l & q u o t ; , < b r / > & q u o t ; / p r o d u c t s / i n d u s t r i a l - p o w e r - s u p p l y / q u i n t - p s - 1 a c - 1 2 d c - 1 5 - 2 9 0 4 6 0 8 8 . s h t m l & q u o t ; , < b r / > & q u o t ; / p r o d u c t s / i n d u s t r i a l - p o w e r - s u p p l y / q u i n t - p s - 1 a c - 1 2 d c - 2 0 - 2 8 6 6 7 2 1 8 . s h t m l & q u o t ; , < b r / > & q u o t ; / p r o d u c t s / i n d u s t r i a l - p o w e r - s u p p l y / q u i n t - p s - 1 a c - 2 4 d c - 1 . 3 - p t - 2 9 0 9 5 7 5 8 . s h t m l & q u o t ; , < b r / > & q u o t ; / p r o d u c t s / i n d u s t r i a l - p o w e r - s u p p l y / q u i n t - p s - 1 a c - 2 4 d c - 1 . 3 - s c - 2 9 0 4 5 9 7 8 . s h t m l & q u o t ; , < b r / > & q u o t ; / p r o d u c t s / i n d u s t r i a l - p o w e r - s u p p l y / q u i n t - p s - 1 a c - 2 4 d c - 1 0 - 2 9 0 4 6 0 1 8 . s h t m l & q u o t ; , < b r / > & q u o t ; / p r o d u c t s / i n d u s t r i a l - p o w e r - s u p p l y / q u i n t - p s - 1 a c - 2 4 d c - 2 . 5 - 2 9 0 9 5 7 6 8 . s h t m l & q u o t ; , < b r / > & q u o t ; / p r o d u c t s / i n d u s t r i a l - p o w e r - s u p p l y / q u i n t - p s - 1 a c - 2 4 d c - 2 . 5 - s c - 2 9 0 4 5 9 8 8 . s h t m l & q u o t ; , < b r / > & q u o t ; / p r o d u c t s / i n d u s t r i a l - p o w e r - s u p p l y / q u i n t - p s - 1 a c - 2 4 d c - 2 0 - 2 9 0 4 6 0 2 8 . s h t m l & q u o t ; , < b r / > & q u o t ; / p r o d u c t s / i n d u s t r i a l - p o w e r - s u p p l y / q u i n t - p s - 1 a c - 2 4 d c - 3 . 5 - 2 8 6 6 7 4 7 8 . s h t m l & q u o t ; , < b r / > & q u o t ; / p r o d u c t s / i n d u s t r i a l - p o w e r - s u p p l y / q u i n t - p s - 1 a c - 2 4 d c - 3 . 8 - p t - 2 9 0 9 5 7 7 8 . s h t m l & q u o t ; , < b r / > & q u o t ; / p r o d u c t s / i n d u s t r i a l - p o w e r - s u p p l y / q u i n t - p s - 1 a c - 2 4 d c - 3 . 8 - s c - 2 9 0 4 5 9 9 8 . s h t m l & q u o t ; , < b r / > & q u o t ; / p r o d u c t s / i n d u s t r i a l - p o w e r - s u p p l y / q u i n t - p s - 1 a c - 2 4 d c - 4 0 - 2 8 6 6 7 8 9 8 . s h t m l & q u o t ; , < b r / > & q u o t ; / p r o d u c t s / i n d u s t r i a l - p o w e r - s u p p l y / q u i n t - p s - 1 a c - 2 4 d c - 5 - 2 9 0 4 6 0 0 8 . s h t m l & q u o t ; , < b r / > & q u o t ; / p r o d u c t s / i n d u s t r i a l - p o w e r - s u p p l y / q u i n t - p s - 1 a c - 4 8 d c - 1 0 - 2 9 0 4 6 1 1 8 . s h t m l & q u o t ; , < b r / > & q u o t ; / p r o d u c t s / i n d u s t r i a l - p o w e r - s u p p l y / q u i n t - p s - 1 a c - 4 8 d c - 2 0 - 2 8 6 6 6 9 5 8 . s h t m l & q u o t ; , / / h e r e f o r I T < b r / > & q u o t ; / p r o d u c t s / i n d u s t r i a l - p o w e r - s u p p l y / q u i n t - p s - 1 a c - 4 8 d c - 5 - 2 9 0 4 6 1 0 8 . s h t m l & q u o t ; , < b r / > & q u o t ; / p r o d u c t s / i n d u s t r i a l - p o w e r - s u p p l y / q u i n t - p s - 2 4 d c - 1 2 d c - 8 - 2 3 2 0 1 1 5 8 . s h t m l & q u o t ; , < b r / > & q u o t ; / p r o d u c t s / i n d u s t r i a l - p o w e r - s u p p l y / q u i n t - p s - 2 4 d c - 2 4 d c - 1 0 - 2 3 2 0 0 9 2 8 . s h t m l & q u o t ; , < b r / > & q u o t ; / p r o d u c t s / i n d u s t r i a l - p o w e r - s u p p l y / q u i n t - p s - 2 4 d c - 2 4 d c - 1 0 - c o - 2 3 2 0 5 5 5 8 . s h t m l & q u o t ; , < b r / > & q u o t ; / p r o d u c t s / i n d u s t r i a l - p o w e r - s u p p l y / q u i n t - p s - 2 4 d c - 2 4 d c - 2 0 - 2 3 2 0 1 0 2 8 . s h t m l & q u o t ; , / / < b r / > & q u o t ; / p r o d u c t s / i n d u s t r i a l - p o w e r - s u p p l y / q u i n t - p s - 2 4 d c - 2 4 d c - 2 0 - c o - 2 3 2 0 5 6 8 8 . s h t m l & q u o t ; , < b r / > & q u o t ; / p r o d u c t s / i n d u s t r i a l - p o w e r - s u p p l y / q u i n t - p s - 2 4 d c - 2 4 d c - 5 - 2 3 2 0 0 3 4 8 . s h t m l & q u o t ; , < b r / > & q u o t ; / p r o d u c t s / i n d u s t r i a l - p o w e r - s u p p l y / q u i n t - p s - 2 4 d c - 2 4 d c - 5 - c o - 2 3 2 0 5 4 2 8 . s h t m l & q u o t ; , < b r / > & q u o t ; / p r o d u c t s / i n d u s t r i a l - p o w e r - s u p p l y / q u i n t - p s - 2 4 d c - 4 8 d c - 5 - 2 3 2 0 1 2 8 8 . s h t m l & q u o t ; , < b r / > & q u o t ; / p r o d u c t s / i n d u s t r i a l - p o w e r - s u p p l y / q u i n t - p s - 4 8 d c - 2 4 d c - 5 - 2 3 2 0 1 4 4 8 . s h t m l & q u o t ; , < b r / > & q u o t ; / p r o d u c t s / i n d u s t r i a l - p o w e r - s u p p l y / q u i n t - p s - 4 8 d c - 4 8 d c - 5 - 2 9 0 5 0 0 8 8 . s h t m l & q u o t ; , < b r / > & q u o t ; / p r o d u c t s / i n d u s t r i a l - p o w e r - s u p p l y / q u i n t - p s - 6 0 - 7 2 d c - 2 4 d c - 1 0 - 2 9 0 5 0 0 9 8 . s h t m l & q u o t ; , < b r / > & q u o t ; / p r o d u c t s / i n d u s t r i a l - p o w e r - s u p p l y / q u i n t - p s - 6 0 - 7 2 d c - 2 4 d c - 1 0 - c o - 2 9 0 5 0 1 1 8 . s h t m l & q u o t ; , < b r / > & q u o t ; / p r o d u c t s / i n d u s t r i a l - p o w e r - s u p p l y / q u i n t - p s - 9 6 - 1 1 0 d c - 2 4 d c - 1 0 - 2 9 0 5 0 1 0 8 . s h t m l & q u o t ; , < b r / > & q u o t;/products/industrial-power-supply/quint-ps-96-110dc-24dc-10-co-29050128.shtml",
"/products/industrial-power-supply/step-ps-1ac-12dc-1.5-28685678.shtml",
"/products/industrial-power-supply/step-ps-1ac-12dc-1.5-fl-28685548.shtml",
"/products/industrial-power-supply/step-ps-1ac-12dc-1-28685388.shtml",
"/products/industrial-power-supply/step-ps-1ac-12dc-3-28685708.shtml",
"/products/industrial-power-supply/step-ps-1ac-12dc-5-28685838.shtml",
"/products/industrial-power-supply/step-ps-1ac-15dc-4-28686198.shtml",
"/products/industrial-power-supply/step-ps-1ac-24dc-0.5-28685968.shtml",
"/products/industrial-power-supply/step-ps-1ac-24dc-0.75-28686358.shtml",
"/products/industrial-power-supply/step-ps-1ac-24dc-0.75-fl-28686228.shtml",
"/products/industrial-power-supply/step-ps-1ac-24dc-1.75-28686488.shtml",
"/products/industrial-power-supply/step-ps-1ac-24dc-2.5-28686518.shtml",
"/products/industrial-power-supply/step-ps-1ac-24dc-3.5-29049458.shtml",
"/products/industrial-power-supply/step-ps-1ac-24dc-3.8-c2lps-28686778.shtml",
"/products/industrial-power-supply/step-ps-1ac-24dc-4.2-28686648.shtml",
"/products/industrial-power-supply/step-ps-1ac-48dc-2-28686808.shtml",//
"/products/industrial-power-supply/step-ps-1ac-5dc-16.5-28685418.shtml",
"/products/industrial-power-supply/step-ps-1ac-5dc-2-23205138.shtml",
"/products/industrial-power-supply/step-ps-48ac-24dc-0.5-28687168.shtml",
"/products/industrial-power-supply/trio-dc-dc-high-input.shtml",
"/products/industrial-power-supply/trio-ps-2g-1ac-12dc-10-29031588.shtml",
"/products/industrial-power-supply/trio-ps-2g-1ac-12dc-5-c2lps-29031578.shtml",
"/products/industrial-power-supply/trio-ps-2g-1ac-24dc-10-29031498.shtml",
"/products/industrial-power-supply/trio-ps-2g-1ac-24dc-10-b+d-29031458.shtml",
"/products/industrial-power-supply/trio-ps-2g-1ac-24dc-20-29031518.shtml",
"/products/industrial-power-supply/trio-ps-2g-1ac-24dc-3-c2lps-29031478.shtml",
"/products/industrial-power-supply/trio-ps-2g-1ac-24dc-5-29031488.shtml",
"/products/industrial-power-supply/trio-ps-2g-1ac-24dc-5-b+d-29031448.shtml",
"/products/industrial-power-supply/trio-ps-2g-1ac-48dc-10-29031608.shtml",
"/products/industrial-power-supply/trio-ps-2g-1ac-48dc-5-29031598.shtml",
"/products/industrial-power-supply/uno-2-phase.shtml",
"/products/industrial-power-supply/uno-dc-dc.shtml",
"/products/industrial-power-supply/uno-ps-1ac-12dc-100w-29029978.shtml",
"/products/industrial-power-supply/uno-ps-1ac-12dc-30w-29029988.shtml",
"/products/industrial-power-supply/uno-ps-1ac-15dc-100w-29030028.shtml",
"/products/industrial-power-supply/uno-ps-1ac-15dc-30w-29030008.shtml",
"/products/industrial-power-supply/uno-ps-1ac-15dc-55w-29030018.shtml",
"/products/industrial-power-supply/uno-ps-1ac-24dc-100w-29029938.shtml",
"/products/industrial-power-supply/uno-ps-1ac-24dc-150w-29043768.shtml",
"/products/industrial-power-supply/uno-ps-1ac-24dc-240w-29043728.shtml",
"/products/industrial-power-supply/uno-ps-1ac-24dc-30w-29029918.shtml",
"/products/industrial-power-supply/uno-ps-1ac-24dc-60w-29029928.shtml",
"/products/industrial-power-supply/uno-ps-1ac-24dc-90w-c2lps-29029948.shtml",
"/products/industrial-power-supply/uno-ps-1ac-48dc-100w-29029968.shtml",
"/products/industrial-power-supply/uno-ps-1ac-48dc-60w-29029958.shtml",
"/products/industrial-power-supply/uno-ps-1ac-5dc-25w-29043748.shtml",
"/products/industrial-power-supply/uno-ps-1ac-5dc-40w-29043758.shtml"
};

[SetUp]
public void Start()
{
driver.Start();
ProductPages = new List();
}
[Test]
public void TestAllPages()
{
LanguagesToTest.ForEach((lang) =>
{
CurrLang = lang;
switch (lang)
{
case "DE":
TestDomain = Common.GermanDomain;
break;
case "ES":
TestDomain = Common.SpanishDomain;
break;
case "FR":
TestDomain = Common.FrenchDomain;
break;
case "IT":
TestDomain = Common.ItalianDomain;
break;
}
ProductPageListBasicDataTable.ForEach((p) =>
{
ProductPage newPage = new ProductPage(driver, p);
TestDocumentationTab(newPage);
TestOrderDetailsTabBasicTable(newPage);
});
ProductPageListOldTechSpecTable.ForEach((p) =>
{
ProductPage newPage = new ProductPage(driver, p);
TestDocumentationTab(newPage);
TestOrderDetailsTabOldSpecTable(newPage);
});
ProductPageListSingleProduct.ForEach((p) =>
{
ProductPage newPage = new ProductPage(driver, p);
TestDocumentationTab(newPage);
TestOrderDetailTabSingleProduct(newPage);
});
});
}

public void TestDocumentationTab(ProductPage productPage)
{
productPage.GoToProduct(Common.EnglishDomain);
productPage.OpenDocumentationTab();
string enSrc = productPage.CaptureIframeSrc("idoc");
enSrc = enSrc.Substring(enSrc.IndexOf("products"));
productPage.GoToProduct(TestDomain);
productPage.OpenDocumentationTab();
string comparisonSrc = productPage.CaptureIframeSrc("idoc");
comparisonSrc = comparisonSrc.Substring(comparisonSrc.IndexOf("products"));
if (!enSrc.Equals(comparisonSrc))
Assert.Fail("Page " + productPage.PageUrl + " documentation sources do not match! \n "+ enSrc + "\n" + comparisonSrc + " failure found in lang: " + CurrLang);
}

public void TestOrderDetailsTabBasicTable(ProductPage productPage)
{
List enProducts = new List();
List comparisonProducts = new List();
productPage.GoToProduct(Common.EnglishDomain);
productPage.OpenOrderingDetailsTab();
enProducts = productPage.OrderDetailsTabModel.GetProductsFromBasicDataTable();

productPage.GoToProduct(TestDomain);
productPage.OpenOrderingDetailsTab();
comparisonProducts = productPage.OrderDetailsTabModel.GetProductsFromBasicDataTable();
if (enProducts.Count != comparisonProducts.Count)
Assert.Fail("Product Table Quantites do not match!");
for (int i = 0; i < enProducts.Count; i++)
{
if (!enProducts.Equals(comparisonProducts))
Assert.Fail("Product Tables do not match! \n" + "Failure occurred on page: " + productPage.PageUrl + "\nIn Lang: " + CurrLang);
}
}
public void TestOrderDetailsTabOldSpecTable(ProductPage productPage)
{
List enProducts = new List();
List testProducts = new List();
productPage.GoToProduct(Common.EnglishDomain);
productPage.OpenOrderingDetailsTab();
enProducts = productPage.OrderDetailsTabModel.GetProductsFromTechSpecDataTable();
productPage.GoToProduct(TestDomain);
productPage.OpenOrderingDetailsTab();
testProducts = productPage.OrderDetailsTabModel.GetProductsFromTechSpecDataTable();
if (enProducts.Count != testProducts.Count)
Assert.Fail("Product Table Quantites do not match!");
for (int i = 0; i < enProducts.Count; i++)
{
if (!enProducts.Equals(testProducts))
Assert.Fail( CurrLang + " Product Tables do not match!");
}
}

public void TestOrderDetailTabSingleProduct(ProductPage productPage)
{
Product enProduct = new Product();
Product testProducts = new Product();
productPage.GoToProduct(Common.EnglishDomain);
productPage.OpenOrderingDetailsTab();
enProduct = productPage.OrderDetailsTabModel.GetSingleProductFromTab();
productPage.GoToProduct(TestDomain);
productPage.OpenOrderingDetailsTab();
testProducts = productPage.OrderDetailsTabModel.GetSingleProductFromTab();
Assert.IsNotNull(enProduct.productId);
Assert.IsNotNull(testProducts.productId);
if (!enProduct.Equals(testProducts))
Assert.Fail("Products Do Not Match!\nEN: " + enProduct.productId[0] + "\n" + CurrLang + ": " + testProducts.productId[0]);
}

[TearDown]
public void End()
{
driver.End();
}
}
< /code>
Наконец, журнал ошибок < /p>
 TestAllPages
 Source: powerSupplyTests.cs line 125
 Duration: 11.1 min

Message: 
OpenQA.Selenium.WebDriverException : The HTTP request to the remote WebDriver server for URL http://localhost:52821/session/f88e9cd6 ... 7d14dd/url timed out after 90 seconds.
----> System.Threading.Tasks.TaskCanceledException : The request was canceled due to the configured HttpClient.Timeout of 90 seconds elapsing.
----> System.TimeoutException : The operation was canceled.
----> System.Threading.Tasks.TaskCanceledException : The operation was canceled.
----> System.IO.IOException : Unable to read data from the transport connection: The I/O operation has been aborted because of either a thread exit or an application request..
----> System.Net.Sockets.SocketException : The I/O operation has been aborted because of either a thread exit or an application request.
TearDown : OpenQA.Selenium.WebDriverException : The HTTP request to the remote WebDriver server for URL http://localhost:52821/session/f88e9cd6 ... 4dd/window timed out after 90 seconds.
----> System.Threading.Tasks.TaskCanceledException : The request was canceled due to the configured HttpClient.Timeout of 90 seconds elapsing.
----> System.TimeoutException : The operation was canceled.
----> System.Threading.Tasks.TaskCanceledException : The operation was canceled.
----> System.IO.IOException : Unable to read data from the transport connection: The I/O operation has been aborted because of either a thread exit or an application request..
----> System.Net.Sockets.SocketException : The I/O operation has been aborted because of either a thread exit or an application request.

Stack Trace: 
HttpCommandExecutor.Execute(Command commandToExecute)
DriverServiceCommandExecutor.Execute(Command commandToExecute)
WebDriver.Execute(String driverCommandToExecute, Dictionary`2 parameters)
WebDriver.set_Url(String value)
Driver.GoTo(String url) line 36
ProductPage.GoToProduct(String baseUrl) line 48
PowerSupplyTests.TestDocumentationTab(ProductPage productPage) line 172
PowerSupplyTests.b__19_3(String p) line 160
List`1.ForEach(Action`1 action)
PowerSupplyTests.b__19_0(String lang) line 157
List`1.ForEach(Action`1 action)
PowerSupplyTests.TestAllPages() line 127
--TaskCanceledException
HttpClient.SendAsyncCore(HttpRequestMessage request, HttpCompletionOption completionOption, Boolean async, Boolean emitTelemetryStartStop, CancellationToken cancellationToken)
HttpCommandExecutor.MakeHttpRequest(HttpRequestInfo requestInfo)
HttpCommandExecutor.Execute(Command commandToExecute)
--TimeoutException
--TaskCanceledException
HttpConnection.SendAsyncCore(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
HttpConnectionPool.SendWithRetryAsync(HttpRequestMessage request, Boolean async, Boolean doRequestAuth, CancellationToken cancellationToken)
RedirectHandler.SendAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
HttpClient.SendAsyncCore(HttpRequestMessage request, HttpCompletionOption completionOption, Boolean async, Boolean emitTelemetryStartStop, CancellationToken cancellationToken)
--IOException
AwaitableSocketAsyncEventArgs.ThrowException(SocketError error, CancellationToken cancellationToken)
AwaitableSocketAsyncEventArgs.GetResult(Int16 token)
HttpConnection.SendAsyncCore(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
--SocketException
--TearDown
HttpCommandExecutor.Execute(Command commandToExecute)
DriverServiceCommandExecutor.Execute(Command commandToExecute)
WebDriver.Execute(String driverCommandToExecute, Dictionary`2 parameters)
WebDriver.Close()
Driver.End() line 31
PowerSupplyTests.End() line 237
--TaskCanceledException
HttpClient.SendAsyncCore(HttpRequestMessage request, HttpCompletionOption completionOption, Boolean async, Boolean emitTelemetryStartStop, CancellationToken cancellationToken)
HttpCommandExecutor.MakeHttpRequest(HttpRequestInfo requestInfo)
HttpCommandExecutor.Execute(Command commandToExecute)
--TimeoutException
--TaskCanceledException
HttpConnection.SendAsyncCore(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
HttpConnectionPool.SendWithRetryAsync(HttpRequestMessage request, Boolean async, Boolean doRequestAuth, CancellationToken cancellationToken)
RedirectHandler.SendAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
HttpClient.SendAsyncCore(HttpRequestMessage request, HttpCompletionOption completionOption, Boolean async, Boolean emitTelemetryStartStop, CancellationToken cancellationToken)
--IOException
AwaitableSocketAsyncEventArgs.ThrowException(SocketError error, CancellationToken cancellationToken)
AwaitableSocketAsyncEventArgs.GetResult(Int16 token)
HttpConnection.FillAsync(Boolean async)
HttpConnection.ReadNextResponseHeaderLineAsync(Boolean async, Boolean foldedHeadersAllowed)
HttpConnection.SendAsyncCore(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
--SocketException



Подробнее здесь: https://stackoverflow.com/questions/719 ... server-for
Реклама
Ответить Пред. темаСлед. тема

Быстрый ответ

Изменение регистра текста: 
Смайлики
:) :( :oops: :roll: :wink: :muza: :clever: :sorry: :angel: :read: *x)
Ещё смайлики…
   
К этому ответу прикреплено по крайней мере одно вложение.

Если вы не хотите добавлять вложения, оставьте поля пустыми.

Максимально разрешённый размер вложения: 15 МБ.

  • Похожие темы
    Ответы
    Просмотры
    Последнее сообщение

Вернуться в «C#»