Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Custom annotaion in Jbehave

 
prem nd
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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>")
@Profile

public void login(){
....
.....
}

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

Thanks in advance.

Prem


 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic