Brian Sweeney wrote:From the mail lists, it seems the issue is that jmeter is based on java 1.4 and therefore can't use annotations. I don't think there is a quick fix out of the box. But if you download the code, the method used to find classes that extend TestCase is pretty clever and easy to copy/modify to into a method that finds methods annotated with @Test. I'm not sure how difficult it will be to construct and execute the tests because I haven't gotten that far, yet. Hopefully when I do, I can get it checked-in to a 1.5-specific branch.
Yep, it seems that it actually is taking less code to hunt down the @Before and @After annotations and invoke the test method.
And looking for @Test annotations to populate the drop down in the configurator page was not that hard either.
Haven't got it to work completely yet. Can't get all the results to work the way I want. I'll publish the results on my blogg when I do and tell you all.