aspose file tools*
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


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Engineering » Testing
Bookmark "Custom annotaion in Jbehave" Watch "Custom annotaion in Jbehave" New topic
Author

Custom annotaion in Jbehave

prem nd
Greenhorn

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>")
@Profile

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

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

Thanks in advance.

Prem


 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Custom annotaion in Jbehave