1 | void setXmlPathLoc(String path) {↵ | | 1 | void setVarName(String name) {↵
|
2 | setProperty(XML_PATH_LOC, path);↵ | | 2 | setProperty(↵
|
3 | }↵ | | |
|
|
4 | /**↵ | | |
|
5 | * Get the path where XML messages are stored. this is the directory where↵ | | |
|
6 | * JMeter will randomly select a file.↵ | | |
|
7 | */↵ | | 3 | VAR_NAME, name);↵
|
| | | 4 | }↵
|
|
8 | public String getXmlPathLoc() {↵ | | 5 | public String getVarName() {↵
|
9 | return getPropertyAsString(XML_PATH_LOC);↵ | | 6 | return getPropertyAsString(↵
|
10 | }↵ | | |
|
|
11 | /**↵ | | |
|
12 | * it's kinda obvious, but we state it anyways. Set the xml file with a↵ | | |
|
13 | * string path.↵ | | |
|
14 | * ↵ | | |
|
15 | * @param filename↵ | | |
|
16 | */↵ | | |
|
17 | ↵ | | 7 | VAR_NAME);↵
|
| | | 8 | }↵
|
|
18 | public void setXmlFile(String filename) {↵ | | 9 | public void setFormat(String f↵
|
19 | setProperty(XML_DATA_FILE, filename);↵ | | |
|
20 | }↵ | | |
|
|
21 | /**↵ | | |
|
22 | * Get the file location of the xml file.↵ | | |
|
23 | * ↵ | | |
|
24 | * @return String file path.↵ | | |
|
25 | */↵ | | |
|
26 | public String getXmlFile() {↵ | | |
|
27 | ↵ | | 10 | ormat) {↵
|
| | | 11 | setProperty(FORMAT, format);↵
|
| | | 12 | }↵
|
|
| | | 13 | public String getFormat() {↵
|
28 | return getPropertyAsString(XML_DATA_FILE);↵ | | 14 | return getPropertyAsString(↵
|
29 | | | 15 | FORMAT);↵
|
| | | 16 |
|