为什么在JMeter中将WorkBench显示为默认值 [英] Why WorkBench is shown as default in JMeter

查看:233
本文介绍了为什么在JMeter中将WorkBench显示为默认值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

打开JMeter 3.2 GUI WorkBench时始终存在

When opening JMeter 3.2 GUI WorkBench exists always

即使保存测试计划时,默认情况下也不保存WorkBench,也无法删除WorkBench.

WorkBench also can't be deleted although when saving Test Plan, WorkBench isn't saved by default.

对于新手来说,我们可以将逻辑和采样器添加到无法执行和保存的工作台上也令人困惑.

It's also confusing for newbies that we can add logic and samplers to WorkBench which won't be executed and saved.

我几乎从不使用WorkBench,所以我想知道为什么WorkBench在JMeter中很重要.

I almost never use WorkBench so I wanted to know why WorkBench is important in JMeter.

为什么WorkBench在JMeter中显示为默认设置,并且无法删除?

Why WorkBench is shown as default in JMeter and can't be deleted?

推荐答案

假设您有一家木铺.您有一个工作台,并且正在建造一个鸟舍(测试计划).有时,您需要掏出锯子(测试脚本记录器和记录控制器)和其他工具.您的长凳上有木头(唱片),尚不确定您属于鸟舍.当您离开木工车间时,您根本不在乎WorkBench上的任何东西,而只在乎您正在加工的鸟舍.当您回来时,您只想看到禽舍和一个空的工作台.因此,在您离开后,管家会把工具丢掉,并扔掉工作台上的所有废木.

Imagine you have a wood shop. You have a WorkBench and you are building a bird house (Test Plan). Sometimes, you need to get out your saws (Test Script Recorder and Recording Controller) and other tools. You have wood (recordings) on your bench that you aren't yet sure belongs on your bird house. When you leave your wood shop, you don't care about anything that is on your WorkBench you only care about the bird house you are working on. When you come back, you want to only see the birdhouse and an empty WorkBench. So after you leave, your housekeeper puts the tools away and throws away all the scrap wood you have on your workbench.

这就是思考的方式.首先,它是使用测试脚本记录器的地方.如果您不使用此工具,则工作台可能没有太大意义.当我一直在测试的系统进行升级时,有时我会打开自己拥有的JMeter脚本,并在WorkBench中进行新记录,然后与之前记录的内容进行比较,以查看API调用中是否进行了任何更改.它使事情保持整洁,因为您想要做的最后一件事是在测试计划中进行一些您不希望在那里进行的额外垃圾邮件.有时,当我调试某个调用时,我会将旧内容复制到工作台上,以防万一我在测试计划中弄乱了内容.

So that's how to think of it. Primarily, it is a place to use your Test Script Recorder. If you don't use this tool, the Workbench probably doesn't make as much sense. When a system I have been testing on does an upgrade, I sometimes will open the JMeter script I have and do a new recording to my WorkBench and then compare to what I had previously recorded to see if any changes in the API calls have been made. It keeps things tidy because the last thing you want is some extra junk call in your test plan that you didn't want there. Sometimes, when I'm debugging a certain call(s), I will copy the old stuff to the work bench, just incase I muck things up in the Test Plan.

这篇关于为什么在JMeter中将WorkBench显示为默认值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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