The moose likes Testing and the fly likes Custom annotaion in Jbehave Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Engineering » Testing
Reply 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://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Custom annotaion in Jbehave
 
Similar Threads
kerberos/spnego authentication for an app which uses spring framework and jboss server
Struts 2 security options
how do you integrate Jbehave with selenium code for a simple login page?
kerberos/spnego authentication for an app which uses spring framework and jboss server
kerberos/spnego authentication for an app which uses spring framework and jboss server