如何清除loadrunner中的cookie 12.50 [英] How to clear cookies in loadrunner 12.50

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

问题描述

Im quiet new to load runner。 Im使用其版本12.50社区版。我使用协议truclient为web。为了删除cookies,我应该做什么loadrunner在与浏览器进行交互时积累了

解决方案

如tserg42建议, TruClient的开发脚本中单独的步骤,用于在Javascript操作中添加Utils.clearCookies()命令。



请在下面的屏幕截图中添加上面



步骤1





第3步



点击右上角的JS图标,参数编辑器将可用于提供javascript命令。输入所需的命令 - Utils.clearCookies()。








此外,您还可以从运行时设置 - >查看在每个迭代中模拟新用户复选框。重播 - >在每次迭代中模拟新用户




Im quiet new to load runner. Im using its edtion 12.50 community edition. I am using protocol truclient for web. What should i do in order to delete cookies loadrunner has accumulated while doing interaction with browser

解决方案

As suggested by tserg42, you could add a separate step inside your "Develop Script" of TruClient for adding the "Utils.clearCookies()" command inside a Javascript action.

Please find the screenshots below for adding the above

Step 1

Drag the marked step on to the script

Step 2

Step 3

Upon clicking the "JS" icon at the right corner, the arguments editor would be available for providing javascript commands. Key in the required commands - "Utils.clearCookies()".


Additionally, you can also check "Simulate new user on each iteration" checkbox from Runtime Settings --> Replay --> Simulate new user on each iteration

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

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