Enable customization of StepExecutionListener & WebClient
---------------------------------------------------------

         Key: WT-466
         URL: http://webtest-community.canoo.com/jira/browse/WT-466
     Project: WebTest
        Type: New Feature

    Versions: Future versions    
 Environment: R1720
    Reporter: Ardeshir Arfaian
 Attachments: Patch_R1720.zip

Source code level feature to enable customization of StepExecutionListener & 
WebClient

Benefits:
*) better extensibility
*) possibility to customize StepExecutionListener (custom processing of step 
results)
*) possibility to customize WebClient (e.g. wrap WebConnection)

Proposed changes:
*) New method in StepExecutionListener
                public void webtestFinished();
*) New interface:
                public interface WebtestCustomizer {
                        StepExecutionListener 
createExecutionListener(WebtestTask wt);
                        WebClient customizeWebClient(WebClient wc);
                }
*) New class (does today's work)
    public class DefaultWebtestCustomizer implements WebtestCustomizer {...}
*) changes to class WebtestTask
                WebtestTask checks 
getProject().getReference("wt.webtestCustomizer") for a WebtestCustomizer to 
use, if none exists it instantiates a new DefaultWebtestCustomizer

*) changes to class WebtestTask
                Configuration checks 
getProject().getReference("wt.webtestCustomizer") for a WebtestCustomizer to 
use, if none exists it instantiates a new DefaultWebtestCustomizer

*) new getter in class Configuration
                public final Context getContext();


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://webtest-community.canoo.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira

_______________________________________________
WebTest mailing list
WebTest@lists.canoo.com
http://lists.canoo.com/mailman/listinfo/webtest

Reply via email to