JMeter:如何在两次执行之间清理道具? [英] JMeter: How can the props be cleaned between executions?

查看:97
本文介绍了JMeter:如何在两次执行之间清理道具?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的测试计划中,我在道具内部设置了一个对象.但是,如果我连续第二次运行测试计划,则第二次执行它,则该对象具有第一次的值. 测试完成后,有什么方法可以清洁"道具? 我只能在每个线程执行后找到如何清理它.

In my test plan, I'm setting an object inside the props. But then, if I run the test plan twice in a row, the second time that I execute it, the object has the value of the first time. Is there any way to "clean" the props after the test has finished? I can only find how to clean it after each thread execution.

推荐答案

您可以使用props

在您的情况下将删除特定属性.

In your case props.remove("propName") will remove specific property.

您还可以使用

 ${__setProperty("propName", "newValue")}

这篇关于JMeter:如何在两次执行之间清理道具?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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