关于Webtest的问题 [英] Question regarding Webtest
问题描述
我在Visual Studio 2015中创建了一个webtest场景,我看到了一些关于cookie的奇怪行为。
我收到以下这样的cookie设置
Set-Cookie:_session_id = xxxxxxxxxxxxxxxx;仅Http;安全; 。域= LT; somedomain>。< topleveldomain取代;路径= /; expires =星期二,2017年3月28日12:25:34 -0000; HttpOnly
正如你所看到的那样,它似乎是某种破坏性的cookie,因为属性HTTPOnly在cookie上被设置了2次。 / p>
Webbrowser似乎正常使用这样的cookie,但是一旦我尝试使用visual studio中的场景,就不会在下一个请求发送到网络服务器时发送cookie。因此,视觉工作室似乎对这个饼干的不正确性造成了三倍的影响。
所以我向你们提问社区是否在Visual Studio中有一种方法可以改变这种行为?
如果Visual Studio中有可能的设置,我将非常感激。谢谢
嗨Sjaak,
你呢在您回放Web性能测试期间获取任何错误消息?
您可以使用Fiddler记录URL并检查cookie值,然后导出Web性能测试,以及然后在你的VS ide中运行它,再次检查结果。
谢谢,
杰克
I have created a webtest scenario within Visual Studio 2015 and I have seen some odd behavior regarding a cookie.
When I receive the following cookie set like this
Set-Cookie: _session_id=xxxxxxxxxxxxxxxx; HttpOnly;Secure; domain=.<somedomain>.<topleveldomain>; path=/; expires=Tue, 28 Mar 2017 12:25:34 -0000; HttpOnly
As you can see it seems like a some kind of currupt cookie as the property HTTPOnly is being set 2 times on the cookie.
Webbrowser seems to work normally with a cookie like this but as soon I try this with a scenario within visual studio the cookie is not being sent on the next request to the webserver. So it seems visual studio triples over the not correctness of this cookie
So my question to you guys in the community is there a way within Visual Studio to change this behavior ?
I would be really grateful if there is a setting possible within Visual Studio. Thank you
Hi Sjaak,
Do you get any error messages during you playback the web performance test in your side?
You could use the Fiddler to record the URL and check the cookie value, and then export a web performance test, and then run it in your VS ide, check the result again.
Thanks,
Jack
这篇关于关于Webtest的问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!