如何在cookie中为负载测试设置值 [英] How to set a value in the cookie for a load test

查看:85
本文介绍了如何在cookie中为负载测试设置值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我试图加载测试的应用程序通过javascript(客户端)在Cookie中设置一个值。

The Application I am trying to load-test sets a value in the Cookie via javascript (client side).


因此,记录的负载测试不会将此值填充到cookie中(它缺失)。为了使此应用程序按预期工作,它需要cookie中的这个值。

Because of this, the recorded load test does not populate this value into the cookie (it is missing). For this Application to work as expected, it needs this value in the cookie.


所以我的问题是,如何为正在发送的cookie添加值?

So my question is, how can I add a value to the cookie being sent?

推荐答案

嗨Stephen,

Hi Stephen,

感谢您的发帖。

这是关于网络性能测试吗? 

Is it about web performance testing? 

Web性能测试是在协议层驱动而不是实例化浏览器,因为Web性能测试在HTTP层工作。不要认为Web性能测试可以直接实现JS代码。

Web performance tests are driven at the protocol layer rather than instantiating a browser, since Web Performance Tests work at the HTTP layer.Don't think web performance test could implement JS code directly.

https://social.msdn.microsoft.com/Forums/vstudio/en-US/321b0385-7ac5-429c-9511-204fd7e6d84a/load -testing-a-web-app-that-includes-java-script?forum = vstest

 

问候,

Fletcher


这篇关于如何在cookie中为负载测试设置值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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