01: package com.canoo.webtest.extension.applet;
02:
03: import com.canoo.webtest.steps.Step;
04:
05: /**
06: * @author Denis N. Antonioli
07: * @webtest.nested
08: * category="Extension"
09: * name="parameterRef"
10: * description="Pass a set of properties to a scenario."
11: */
12: public class ParameterRef {
13: private String fName;
14: private String fRegex;
15: private String fPropertyType;
16:
17: public ParameterRef() {
18: fPropertyType = Step.PROPERTY_TYPE_DEFAULT;
19: }
20:
21: public ParameterRef(final String name, final String regex,
22: final String propertyType) {
23: fName = name;
24: fRegex = regex;
25: fPropertyType = propertyType;
26: }
27:
28: public String getName() {
29: return fName;
30: }
31:
32: /**
33: * @webtest.parameter
34: * required="yes"
35: * description="The name of the parameter in the scenario."
36: */
37: public void setName(String name) {
38: fName = name;
39: }
40:
41: public String getRegex() {
42: return fRegex;
43: }
44:
45: /**
46: * @webtest.parameter
47: * required="yes"
48: * description="A pattern to select properties to pass to the scenario."
49: */
50: public void setRegex(String regex) {
51: fRegex = regex;
52: }
53:
54: public String getPropertyType() {
55: return fPropertyType;
56: }
57:
58: /**
59: * @webtest.parameter
60: * required="no"
61: * description="The kind of properties to include. Either \"ant\" or \"dynamic\"."
62: * default="The \"defaultPropertyType\" as specified in the \"config\" element is used."
63: */
64: public void setPropertyType(String propertyType) {
65: fPropertyType = propertyType;
66: }
67: }
|