@Test public void testDelay_Prop() { System.out.println("delay from property"); String load = "const(10,10s) line(10,100,1m) step(5,25,5,1h)"; JMeterUtils.setProperty(VariableThroughputTimer.DATA_PROPERTY, load); VariableThroughputTimer instance = new VariableThroughputTimer(); JMeterUtils.setProperty(VariableThroughputTimer.DATA_PROPERTY, ""); JMeterProperty result = instance.getData(); assertEquals("[[10, 10, 10], [10, 100, 60], [5, 5, 3600], [10, 10, 3600], [15, 15, 3600], [20, 20, 3600], [25, 25, 3600]]", result.toString()); }
public JMeterProperty getData() { if (overrideProp != null) { return overrideProp; } return getProperty(DATA_PROPERTY); }
VariableThroughputTimer extends AbstractTestElement implements Timer, NoThreadClone, TestStateListener { public JMeterProperty getData() { if (overrideProp != null) { return overrideProp; } return getProperty(DATA_PROPERTY); } }
VariableThroughputTimer extends AbstractTestElement implements Timer, NoThreadClone, TestStateListener { public JMeterProperty getData() { if (overrideProp != null) { return overrideProp; } return getProperty(DATA_PROPERTY); } VariableThroughputTimer(); }
VariableThroughputTimer extends AbstractTestElement implements Timer, NoThreadClone, TestStateListener { public JMeterProperty getData() { if (overrideProp != null) { return overrideProp; } return getProperty(DATA_PROPERTY); } VariableThroughputTimer(); synchronized long delay(); void setData(CollectionProperty rows); JMeterProperty getData(); Pair<Double, Long> getRPSForSecond(final double elapsedSinceStartOfTestSec); @Override void testStarted(); @Override void testStarted(String string); @Override void testEnded(); @Override void testEnded(String string); }
VariableThroughputTimer extends AbstractTestElement implements Timer, NoThreadClone, TestStateListener { public JMeterProperty getData() { if (overrideProp != null) { return overrideProp; } return getProperty(DATA_PROPERTY); } VariableThroughputTimer(); synchronized long delay(); void setData(CollectionProperty rows); JMeterProperty getData(); Pair<Double, Long> getRPSForSecond(final double elapsedSinceStartOfTestSec); @Override void testStarted(); @Override void testStarted(String string); @Override void testEnded(); @Override void testEnded(String string); static final String DATA_PROPERTY; static final int DURATION_FIELD_NO; static final int FROM_FIELD_NO; static final int TO_FIELD_NO; }