如何在VSTS中删除Web测试中的cookie [英] How to delete cookies in web testing in VSTS

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

问题描述

Hello All,

Hello All,

我遇到了一个问题,当我在迭代我的网络请求时,由于cookie它认为网络请求是同一个会话。而becoz则无法识别形式中的少数对象。

I got stucked in one issue where when i am iterating my web requests, due to cookies it considers the web request as the same session. And becoz of that is not able to identify few objects in form.

我的问题是:如何在每次迭代后删除cookie。对于每次迭代,我的编码网络测试通过大约5个Webtest请求。

My question is : How can i delete the cookies after every iteration. For each iteration, my coded web test passes about 5 Webtestrequests.

任何想法?

谢谢。

推荐答案

是否在负载测试中运行Web测试? 如果是这样,在称为%new user的负载测试中,场景节点上存在一个属性。 将其设置为100,每个用户都将从没有cookie开始。
Is for running a web test within a load test?  If so there is a propery on the scenario node in a load test called % new user.  Set that to 100 and every user will start out with no cookies.


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

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