File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Testing and the fly likes Custom annotaion in Jbehave Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » Testing
Bookmark "Custom annotaion in Jbehave" Watch "Custom annotaion in Jbehave" New topic

Custom annotaion in Jbehave

prem nd

Joined: Apr 23, 2012
Posts: 4
Hi Friends,

I am basically trying to capture the execution time of each Steps method in jbehave framework. For doing so, I have created custom Annotation with the help of Spring AOP and AspectJ. Using custom annotation, I could able to capture the performance time of the methods with the basic Spring application.

After this, I incorporated the files which are relevant to custom annotation with Jbehave framework. Now, I am trying to capture the execution time in the console which is not happening(But, with normal spring Application, I could get the execution time details in console). When I debug the code, the custom annotation is not triggering to call Aspect methods.

Below is the sample step file with @Profile annotation.

@Given("I log into mail account as user <username> with password <password>")

public void login(){

Could you please give some solution/idea to get the @profile annotation works with Jbehave?.

Thanks in advance.


I agree. Here's the link:
subject: Custom annotaion in Jbehave
It's not a secret anymore!