1 | void setTest(String newTest) {↵ | | 1 | void setXmlPathLoc(String path) {↵
|
2 | this.setProperty(TEST, newTest);↵ | | 2 | setProperty(↵
|
3 | }↵ | | |
|
|
4 | /*************************************************************************↵ | | 3 | XML_PATH_LOC, path);↵
|
| | | 4 | }↵
|
|
5 | **↵ | | 5 | /**↵
|
6 | * Gets the test attribute of the LDAPSampler object↵ | | 6 | * Get the ↵
|
7 | * ↵ | | 7 | path where XML messages are stored. this is the directory where↵
|
8 | * @return The test value (Add,Modify,Delete and search)↵ | | 8 | * ↵
|
9 | *************************************************************************↵ | | 9 | JMeter will randomly select a file.↵
|
10 | */↵ | | 10 | */↵
|
11 | public String getTest() {↵ | | 11 | public String getXmlPathLoc() {↵
|
12 | return getPropertyAsString(TEST);↵ | | 12 | return getPropertyAsString(XML_PATH_LOC);↵
|
13 | }↵ | | 13 | }↵
|
|
14 | /***************************************************************************↵ | | 14 | /**↵
|
15 | * Sets the attributes of the LdapConfig object↵ | | |
|
16 | * ↵ | | |
|
17 | * @param newAttrs↵ | | |
|
18 | * The new attributes value↵ | | |
|
19 | *************************************************************************↵ | | |
|
| | | 15 | * it's kinda obvious, but we state it anyways. Set the xml file with a↵
|
| | | 16 | * string path.↵
|
| | | 17 | * ↵
|
| | | 18 | * @param filename↵
|
20 | */↵ | | 19 | */↵
|
21 | public void setAttrs(String newAttrs) {↵ | | 20 | public void setXmlFile(String filename) {↵
|
22 | this.setProperty(ATTRIBS, newAttrs);↵ | | 21 | setProperty(↵
|
23 | }↵ | | |
|
|
24 | /*************************************************************************↵ | | 22 | XML_DATA_FILE, filename);↵
|
| | | 23 | }↵
|
|
25 | **↵ | | 24 | /**↵
|
26 | * Gets the attributes of the LDAPSampler object↵ | | 25 | * Get the ↵
|
27 | * ↵ | | |
|
28 | * @return The attributes↵ | | |
|
29 | *************************************************************************↵ | | 26 | file location of the xml file.↵
|
| | | 27 | * ↵
|
| | | 28 | * @return String file path.↵
|
30 | */↵ | | 29 | */↵
|
31 | public String getAttrs() {↵ | | 30 | public String getXmlFile() {↵
|
32 | return getPropertyAsString(ATTRIBS);↵ | | 31 | return getPropertyAsString(XML_DATA_FILE);↵
|
33 | | | 32 |
|