1 18 19 package org.apache.jmeter.testelement; 20 21 import org.apache.jmeter.testelement.property.JMeterProperty; 22 import org.apache.jmeter.testelement.property.PropertyIterator; 23 import org.apache.jmeter.threads.JMeterContext; 24 25 29 30 public interface TestElement extends Cloneable 31 { 32 public final static String NAME = "TestElement.name"; 33 public final static String GUI_CLASS = "TestElement.gui_class"; 34 public final static String ENABLED = "TestElement.enabled"; 35 public final static String TEST_CLASS = "TestElement.test_class"; 36 37 public void addTestElement(TestElement child); 38 39 public void setProperty(String key,String value); 40 41 44 public boolean isRunningVersion(); 45 46 52 public boolean isTemporary(JMeterProperty property); 53 54 59 public void setTemporary(JMeterProperty property); 60 61 64 public boolean getPropertyAsBoolean(String key); 65 66 public long getPropertyAsLong(String key); 67 68 public int getPropertyAsInt(String key); 69 70 public float getPropertyAsFloat(String key); 71 72 80 public void setRunningVersion(boolean run); 81 82 86 public void recoverRunningVersion(); 87 88 91 public void clear(); 92 93 public String getPropertyAsString(String key); 94 95 99 public void setProperty(JMeterProperty property); 100 101 105 public JMeterProperty getProperty(String propName); 106 107 111 public PropertyIterator propertyIterator(); 112 113 public void removeProperty(String key); 114 115 117 public Object clone(); 118 119 122 public void traverse(TestElementTraverser traverser); 123 124 127 public JMeterContext getThreadContext(); 128 129 132 public void setThreadContext(JMeterContext threadContext); 133 134 137 public String getThreadName(); 138 139 142 public void setThreadName(String threadName); 143 144 148 public void threadStarted(); 149 150 154 public void threadFinished(); 155 156 163 public boolean canRemove(); 164 } 165 | Popular Tags |