01: // Copyright © 2002-2005 Canoo Engineering AG, Switzerland.
02: package com.canoo.webtest.steps;
03:
04: import com.canoo.webtest.interfaces.IBrowserAction;
05:
06: /**
07: * Base class for steps performing some action(s) on the "browser". <p/> Steps
08: * which cause a new response to be created should set the resultFilename.
09: *
10: * @author Marc Guillemot
11: */
12: public abstract class AbstractBrowserAction extends Step implements
13: IBrowserAction {
14: /**
15: * @webtest.parameter
16: * required="no"
17: * skip="yes"
18: * description="A shorthand: <em>save='prefixName'</em> is the same as
19: * <em>savePrefix='prefixName' saveResponse='true'</em>."
20: */
21: public void setSave(final String prefix) {
22: // nothing as StepExecutionListener reads it from attributes
23: // but needs to be here to allow Ant to "set" it
24: }
25:
26: /**
27: * @webtest.parameter required="no"
28: * default="the 'savePrefix' parameter as specified in <config>."
29: * description="A name prefix can be specified for making a permanent copy of
30: * received responses. A unique number and the file extension (depending on the
31: * MIME-Type) will be appended. The <em>resultpath</em> attribute of the
32: * <config> element is used for determining the location of the saved result."
33: */
34: public void setSavePrefix(final String prefix) {
35: // nothing as StepExecutionListener reads it from attributes
36: // but needs to be here to allow Ant to "set" it
37: }
38:
39: /**
40: * @webtest.parameter required="no"
41: * description="Whether to make a permanent copy of received responses.
42: * Overrides the default value set in the <config> element."
43: */
44: public void setSaveResponse(final String response) {
45: // nothing as StepExecutionListener reads it from attributes
46: // but needs to be here to allow Ant to "set" it
47: }
48: }
|