1 | void setClassname(String classname)↵ | | 1 | void set↵
|
2 | {↵ | | |
|
3 | setProperty(CLASSNAME, classname);↵ | | |
|
4 | ↵ | | 2 | XmlPathLoc(String path) {↵
|
| | | 3 | setProperty(XML_PATH_LOC, path);↵
|
5 | }↵ | | 4 | }↵
|
|
6 | /**↵ | | 5 | /**↵
|
7 | * Gets the Classname attribute of the JavaConfig object↵ | | 6 | * Get the ↵
|
8 | *↵ | | |
|
9 | ↵ | | 7 | path where XML messages are stored. this is the directory where↵
|
10 | * @return the Classname value↵ | | 8 | * ↵
|
11 | ↵ | | 9 | JMeter will randomly select a file.↵
|
12 | */↵ | | 10 | */↵
|
13 | public String getClassname()↵ | | 11 | public String get↵
|
14 | {↵ | | |
|
15 | return getPropertyAsString(CLASSNAME);↵ | | |
|
16 | }↵ | | |
|
17 | ↵ | | |
|
18 | /**↵ | | |
|
19 | * Set the string label used to create an instance of the↵ | | |
|
20 | * test with the string constructor.↵ | | |
|
21 | * @param constr↵ | | |
|
22 | ↵ | | 12 | XmlPathLoc() {↵
|
| | | 13 | return getPropertyAsString(XML_PATH_LOC);↵
|
| | | 14 | }↵
|
|
| | | 15 | /**↵
|
| | | 16 | * it's kinda obvious, but we state it anyways. Set the xml file with a↵
|
| | | 17 | * string path.↵
|
| | | 18 | * ↵
|
| | | 19 | * @param filename↵
|
23 | */↵ | | 20 | */↵
|
24 | public void setConstructorString(String constr)↵ | | 21 | public void set↵
|
25 | {↵ | | |
|
26 | setProperty(CONSTRUCTORSTRING,constr);↵ | | |
|
27 | }↵ | | |
|
28 | ↵ | | |
|
29 | ↵ | | 22 | XmlFile(String filename) {↵
|
| | | 23 | setProperty(XML_DATA_FILE, filename);↵
|
| | | 24 | }↵
|
|
30 | /**↵ | | 25 | /**↵
|
31 | * get the string passed to the string constructor↵ | | 26 | * Get the ↵
|
32 | ↵ | | 27 | file location of the xml file.↵
|
| | | 28 | * ↵
|
| | | 29 | * @return String file path.↵
|
33 | */↵ | | 30 | */↵
|
34 | public String getConstructorString()↵ | | 31 | public String get↵
|
35 | {↵ | | |
|
36 | ↵ | | 32 | XmlFile() {↵
|
37 | return getPropertyAsString(CONSTRUCTORSTRING);↵ | | 33 | return getPropertyAsString(↵
|
38 | ↵ | | 34 | XML_DATA_FILE);↵
|
39 | } | | 35 | }
|