com.canoo.webtest.interfaces
Interface IWebtestCustomizer

All Known Implementing Classes:
DefaultWebtestCustomizer

public interface IWebtestCustomizer

This interface is intended for users that need to customize WebTest. When a WebtestTask is executed, it will look at Project.getReference(String) with the key KEY for a IWebtestCustomizer. If a IWebtestCustomizer is found, its methods will be called (see methods descriptions). If now reference is found, a DefaultWebtestCustomizer will be instantiated and used.

Important note: if you use this interface, please notify WebTest committers in order to document it directly in this file. When changes are needed, this will allow to know who really uses which methods.


Field Summary
static String KEY
          The key that should be used to place a IWebtestCustomizer as project reference.
 
Method Summary
 StepExecutionListener createExecutionListener(WebtestTask wt)
          Called to create the execution listener that will be responsible for the collection of the results.
 com.gargoylesoftware.htmlunit.WebClient customizeWebClient(com.gargoylesoftware.htmlunit.WebClient wc)
          Called after the creation of the WebClient
 

Field Detail

KEY

static final String KEY
The key that should be used to place a IWebtestCustomizer as project reference.

See Also:
Constant Field Values
Method Detail

createExecutionListener

StepExecutionListener createExecutionListener(WebtestTask wt)
Called to create the execution listener that will be responsible for the collection of the results.

Parameters:
wt - the <webtest> task
Returns:

customizeWebClient

com.gargoylesoftware.htmlunit.WebClient customizeWebClient(com.gargoylesoftware.htmlunit.WebClient wc)
Called after the creation of the WebClient

Parameters:
wc - a standard instance
Returns:
the same instance with extra configuration or a new one (at your own risk, please respect the normal configuration possibilities)

Copyright © 2001-2007 Canoo Engineering AG, Basel. All rights reserved.