网络测试中不支持过期的Cookie? [英] Cookies with expires not supported in webtests?

查看:87
本文介绍了网络测试中不支持过期的Cookie?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

 

我正在为使用ASP.NET Core和Azure B2C的应用程序设置负载测试。 

I am setting up at load test for an application that uses ASP.NET Core and Azure B2C. 

目前我在验证时遇到问题,因为在完成Azure B2C的往返旅程时,登录请求中设置的相关cookie丢失了。但是包含了Web应用程序关联cookie。

Currently I am having problems authenticating as the correlation cookie set in the login request is missing when the round trip to Azure B2C is completed. The web app affinity cookie is however included.







我可以从Set-Cookie标头值看到openid cookies包含exprires值,我怀疑这是原因。

I can see from the Set-Cookie header value that the openid cookies contain an exprires value, and I suspect that is the cause.

祝你好运

Espen Skaufel

Espen Skaufel

推荐答案

Web性能不直接支持cookie中的设置值,因为c ookie是服务器请求存储在浏览器客户端上的一段数据,可以通过Web服务器,
或客户端JavaScript进行修改 或者您可以创建自定义 
WebTestRequestPlugin 
实现它:

如何:创建Web性能测试插件

参考线程链接:

https://social.msdn.microsoft.com/Forums/en-US/cf2bf144-4e87-414f-8aa3-7731f9bc7b73/problem-with-custom-extraction-rule- and-cookies?forum = vstswebtest

 

问候, 

Fletcher  

Fletcher  


这篇关于网络测试中不支持过期的Cookie?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆