Add sampler is missing in jmeter UI

huangapple go评论79阅读模式
英文:

Add sampler is missing in jmeter UI

问题

我是一个JMeter新手。我看到的关于JMeter的所有教程都谈到了在JMX脚本中添加采样器的内容。然而,在JMeter的用户界面中,我找不到“添加 -> 采样器”的选项。我尝试了JMeter 5.6.2、JMeter 3.3和JMeter 2.13。

我正在Mac OS Ventura(Apple M2处理器)上运行JMeter。使用的是OpenJDK 17。

英文:

I am a jmeter rookie. All the tutorials I am seeing about jmeter talk about adding sampler to the jmx script. However, I don't see Add -> Sampler option in the jmeter UI. I have tried jmeter 5.6.2, jmeter 3.3 and jmeter 2.13.

Add sampler is missing in jmeter UI

I am running jmeter on mac os ventura (Apple M2 processor). Using openjdk 17.

答案1

得分: 1

首先,您需要在测试计划下选择您喜欢的线程组(通过选择添加->线程(用户)),然后您可以向线程组添加取样器。

英文:

First you need to add Thread Group of your choice under Test Plan(By choosing Add->Threads(Users)), then you can add Samplers to Thread Group.

答案2

得分: 1

你需要首先添加一个线程组,然后通过上下文菜单可用于添加sampler(采样器)的选项:

Add sampler is missing in jmeter UI

还要注意,你可以使用HTTP(S)测试脚本记录器JMeter Chrome扩展来记录你的测试场景。

英文:

You need to add a Thread Group first, then the option for adding a sampler will be available via context menu:

Add sampler is missing in jmeter UI

Also be aware that you can just record your test scenario using HTTP(S) Test Script Recorder or JMeter Chrome Extension.

答案3

得分: 1

抽样器不能添加到根测试计划元素中,它们必须添加到线程组容器中。首先,在您的测试计划中添加一个线程组:

然后,您可以根据需要添加抽样器。这些将作为子元素包含在线程组中:

JMeter提供许多类型的线程组。根据您对负载测试的意图,您可以使用以下任何线程组来包含您的抽样器:

  • 线程组(默认)
  • 逐步线程组
  • 终极线程组
  • 并发线程组
  • 到达线程组
  • 自由形式到达线程组
  • 开放模型线程组

针对您的特定用例,您需要选择最适合您测试目标的线程组。对于简单的概念验证测试,通常默认线程组就足够了。如果您需要扩展您的测试,或者需要探索更复杂的情景,您的测试可能会从高级线程组中受益。

英文:

Samplers cannot be added to the root test plan element. They must be added to a thread group container. First, add a thread group to your test plan:

Add sampler is missing in jmeter UI

Then, you can add samplers as desired. These will be contained within the thread group as child elements:

Add sampler is missing in jmeter UI

JMeter offers many types of thread groups. Depending on what your intentions are for your load test, you may use any of the following thread groups to contain your samplers:

  • Thread Group (default)
  • Stepping Thread Group
  • Ultimate Thread Group
  • Concurrency Thread Group
  • Arrivals Thread Group
  • Free-Form Arrivals Thread Group
  • Open Model Thread Group

For your specific use case, you will need to select the best thread group that matches your testing goals. For simple proof-of-concept tests, the default thread group will usually suffice. If you need to scale your test, or need to probe more complex scenarios, your test might benefit from an advanced thread group.

huangapple
  • 本文由 发表于 2023年8月5日 00:18:55
  • 转载请务必保留本文链接:https://go.coder-hub.com/76837651.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定