apache / jmeter

Apache JMeter open-source load testing tool for analyzing and measuring the performance of a variety of services
https://jmeter.apache.org/
Apache License 2.0
7.97k stars 2.02k forks source link

Issues with using Junit Sampler #6247

Open GaoQD opened 2 months ago

GaoQD commented 2 months ago

Expected behavior

When adding Junit Sampler, you can choose Classname and Test Method

Actual behavior

When adding Junit Sampler, Classname and Test Method cannot be selected

Steps to reproduce the problem

  1. Add thread group
  2. Add JUnit Request
  3. Select Classname and Test Method
  4. image

JMeter Version

5.6.3

Java Version

java 11.0.15.1 2022-04-22 LTS

OS Version

macos sonoma 14.4

Ninja-Cyborg commented 2 months ago

From the empty Package filter field, I believe you haven't followed the step. Here is the full step from official documentation: https://jmeter.apache.org/usermanual/junitsampler_tutorial.html#usage btw once you copy jars to jmeter/lib/junit, restart JMeter if already open.