[ 
https://issues.apache.org/jira/browse/WICKET-4960?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13548608#comment-13548608
 ] 

Rob Audenaerde edited comment on WICKET-4960 at 1/9/13 4:04 PM:
----------------------------------------------------------------

Hi Martin,

Thanks for your reply, I will look into it.

To elaborate on the use case:

The expected result will be some form of logging (csv, log4j, json..), where 
the output is the action, the input, etc.. This will be very useful information 
as you can follow the path the user is taking through the application. This is 
very valuable information when analyzing the use of the application. 

As extra, this could be used as input in test in the WicketTester; for example 
when testing a form.  

FormTester formTester = tester.newFormTester("form");
formTester.setValue("myformfield", "Hello Sailor");

The 'Hello Sailor' part, the 'myformfield' and the 'form' could be taken right 
out of the logging that is created by someone actually performing these 
actions. This is somewhat similar to the way Selenium is able to 'record' 
actions.   
                
      was (Author: robau):
    Hi Martin,

Thanks you your reply, I will look into it.

To elaborate on the use case:

The expected result will be some form of logging (csv, log4j, json..), where 
the output is the action, the input, etc.. This will be very useful information 
as you can follow the path the user is taking through the application. This is 
very valuable information when analyzing the use of the application. 

As extra, this could be used as input in test in the WicketTester; for example 
when testing a form.  

FormTester formTester = tester.newFormTester("form");
formTester.setValue("myformfield", "Hello Sailor");

The 'Hello Sailor' part, the 'myformfield' and the 'form' could be taken right 
out of the logging that is created by someone actually performing these 
actions. This is somewhat similar to the way Selenium is able to 'record' 
actions.   
                  
> Easier logging of UI interactions  
> -----------------------------------
>
>                 Key: WICKET-4960
>                 URL: https://issues.apache.org/jira/browse/WICKET-4960
>             Project: Wicket
>          Issue Type: Improvement
>          Components: wicket
>    Affects Versions: 6.4.0
>            Reporter: Rob Audenaerde
>            Priority: Minor
>
> As developer I wish to log all the user activity in my wicket application, so 
> that I can use this information to trace error, generate tests and logs. (See 
> also 
> http://stackoverflow.com/questions/14094755/logging-user-actions-in-wicket)
> Currently, this can be achieved by either: 
> - subclassing all UI components and handle their: onSubmits, onClicks, 
> onChanged() ... etc. It is impossible for BookmarkablePageLinks and easier 
> for Ajax components (especially when using the onEvent since Wicket 1.5).
> - attaching a logging behaviour and try to do something with the onRequest()
> - AOP and create intersections on the methods above.
> What I would really like is a Behavior that can be attached to components 
> that can intercept/log the user interactions. Currently this is impossible, 
> so it would require some rewriting.   
> The main benefits would be the logging. If the logging is of a consistent 
> format, I think it could also be used to drive the WicketTester, making 
> creating tests a lot easier.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to