This is a migrated thread and some comments may be shown as answers.

Unable to set cookies in Chrome

4 Answers 92 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Peter
Top achievements
Rank 1
Peter asked on 26 Apr 2012, 10:15 AM
Hello,

we are using the latest version of your testing framework, and are unable to set cookies when using Chrome (other browsers don't exhibit this problem)

string path = "/some/path/";
string root = "localhost:900";
 
var cookie = new Cookie(
                CookieName,
                CookieValue,
                path,
                root)
                {
                    Expires = DateTime.UtcNow.AddDays(CookieExpireInDays)
                };
 
TelerikProxy.ActiveBrowser.Cookies.SetCookie(cookie);
var userCookieAfterLogin = TelerikProxy.ActiveBrowser.Cookies.GetCookies("http://" + root + path);
CollectionAssert.IsNotEmpty(userCookieAfterLogin);

The last assertion always fails. The example you mention here does not exhibit this behavior. When I omit the port, and only use
string root = "localhost";
the problem still persists, however setting the root to loopback
string root = "127.0.0.1";
seems to work, as long as the port is omitted.

We would really appreciate if this issue could be fixed, as this is a major impediment that stops us from purchasing your Test Studio.

Thank you.

Regards,
Peter

4 Answers, 1 is accepted

Sort by
0
Cody
Telerik team
answered on 02 May 2012, 12:23 AM
Hello Peter,

I apologize for the delay responding back to you.

First of all, the port number is not part of the cookie. You should not be including it in the path. Why are you trying to use port in the path?

I have reproduced the problem using "localhost" and filed a bug on it here.  Can you just use "127.0.0.1" until we determine the root cause of this?

Greetings,
Cody
the Telerik team
Quickly become an expert in Test Studio, check out our new training sessions!
Test Studio Trainings
0
Cody
Telerik team
answered on 03 May 2012, 10:23 PM
Hello Peter,

I have some good news. I was able to escalate this problem with our software development for you. They were able to find and fix this bug today. A new build will come out tomorrow containing this fix. I can send you this build as a private build. DISCLAIMER: It has had a bare minimum of QA testing. There may be other undiscovered regression bugs in it. Alternatively you can wait until our next internal build, which will be about two weeks away.

All the best,
Cody
the Telerik team
Quickly become an expert in Test Studio, check out our new training sessions!
Test Studio Trainings
0
Peter
Top achievements
Rank 1
answered on 04 May 2012, 09:11 AM
Hello Cody,

thank you very much for your efforts, we would appreciate if you could provide the private build for us.

All the best,
Peter
0
Plamen
Telerik team
answered on 04 May 2012, 02:12 PM
Hello Peter,

Here's the link to download private build 2012.1.504. which contains the fix for Chrome.
https://www.dropbox.com/s/toe1nb29ellzp1z/Telerik.Testing.Framework.2012.1.504.msi 

Greetings,
Plamen
the Telerik team
Quickly become an expert in Test Studio, check out our new training sessions!
Test Studio Trainings
Tags
General Discussions
Asked by
Peter
Top achievements
Rank 1
Answers by
Cody
Telerik team
Peter
Top achievements
Rank 1
Plamen
Telerik team
Share this question
or