On 04/03/2010, GPS. <[email protected]> wrote:
>
>  From the usermanual:
>
>  "rather than use Jmeter's test interface, it scans the jar files for classes
>  extending junit's
>  TestCase class. This means any class or subclass"
>
>  I have an annotated test class, which runs via SpringJUnit4ClassRunner.
>
>  @RunWith(SpringJUnit4ClassRunner.class)
>  @ContextConfiguration
>  public class TestingClientTest {
>         ....
>         @Autowired
>         private ServiceClient client;
>         ....
>   }
>
>  Runs great via Eclipse.
>
>  Can this be load tested with jMeter somehow?

No, JMeter 2.3.4 only supports JUnit 3, which requires classes to
extend the TestCase class.

The next version of JMeter will support some aspects of JUnit 4:
@Before
@After
@Test (expected and timeout)

but it won't recognise those other annotations.
In particular it does not recognise the @RunWith JUnit4 annotation.

>  Thanks!
>
>
>  --
>  View this message in context: 
> http://old.nabble.com/JMeter-JUnit-Sampler-tp27783514p27783514.html
>  Sent from the JMeter - User mailing list archive at Nabble.com.
>
>
>  ---------------------------------------------------------------------
>  To unsubscribe, e-mail: [email protected]
>  For additional commands, e-mail: [email protected]
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to