Completed
Last Updated: 19 Dec 2013 16:24 by ADMIN
ADMIN
Plamen
Created on: 24 Apr 2013 08:16
Type: Bug Report
0
GetCookies method doesn't work against a specific website
When using the GetCookies method against this site: 
http://integration.telerik.com/automated-testing-tools/

Test Studio throws the following exception:

Failure Information: 
~~~~~~~~~~~~~~~
Exception thrown executing coded step: '[WebTest2_CodedStep] : @"New Coded Step'.
InnerException:
System.Net.CookieException: An error occurred when parsing the Cookie header for Uri 'http://integration.telerik.com/automated-testing-tools'. ---> System.Net.CookieException: Cookie format error.
   at System.Net.CookieContainer.CookieCutter(Uri uri, String headerName, String setCookieHeader, Boolean isThrow)
   --- End of inner exception stack trace ---
   at System.Net.CookieContainer.CookieCutter(Uri uri, String headerName, String setCookieHeader, Boolean isThrow)
   at System.Net.CookieContainer.SetCookies(Uri uri, String cookieHeader)
   at ArtOfTest.WebAii.ObjectModel.CookiesManager.BuildCookieContainer(Uri url, String cookieHeaders)
   at ArtOfTest.WebAii.ObjectModel.CookiesManager.GetCookies(Uri uri)
   at ArtOfTest.WebAii.ObjectModel.CookiesManager.GetCookies(String url)

To reproduce:
Sample test is attached to the internal bug description.
0 comments