jmeter-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ajaykumar Vasireddy <>
Subject Before method of junit rule is not being called.
Date Fri, 05 Jul 2013 10:54:25 GMT

when using the JMeter for running Junit tests, the annotation @Rule is not 
working.The before method that is declared in the Rule class is not being 

For Example:

    public TestHelper testtHelper = new TestHelper(); // Initialiazation 
of many required classes are done here.

The above rule is being used in the test class.

And the rule itself is as follows:

public class TestHelper extends ExternalResource {

    protected void before() throws Throwable {
        itHelper = new IntegrationTestHelper();

    protected void after() {
        try {
        } catch (Exception e) {

Any hints why the @Rule annotation is not working and the before methods 
are not being called.

Thanking you.

Kind Regards,

Ajaykumar Vasireddy | Agfa HealthCare
Developer Process Planning | HE/Clinical Research Solutions
T  +49 651 8247 585 | F  +49 651 8247 100

Agfa HealthCare GmbH, Monaiser Straße 11, 54294 Trier, Germany
Geschäftsführer: Winfried Post (Vorsitzender), Michael Strüter, Dieter 
Nels | Sitz der Gesellschaft: Bonn, Amtsgericht Bonn, HRB-Nr. 9069 | 
Ust.-IDNr. DE 172711289
Click on link to read important disclaimer: 
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message