@Test public void testModifyTestElement() { System.out.println("modifyTestElement"); SteppingThreadGroup tg = new SteppingThreadGroup(); tg.setNumThreads(100); SteppingThreadGroupGui instance = new SteppingThreadGroupGui(); instance.modifyTestElement(tg); }
@Override public void modifyTestElement(TestElement te) { super.configureTestElement(te); if (te instanceof SteppingThreadGroup) { SteppingThreadGroup tg = (SteppingThreadGroup) te; tg.setProperty(SteppingThreadGroup.NUM_THREADS, totalThreads.getText()); tg.setThreadGroupDelay(initialDelay.getText()); tg.setInUserCount(incUserCount.getText()); tg.setInUserCountBurst(incUserCountBurst.getText()); tg.setInUserPeriod(incUserPeriod.getText()); tg.setOutUserCount(decUserCount.getText()); tg.setOutUserPeriod(decUserPeriod.getText()); tg.setFlightTime(flightTime.getText()); tg.setRampUp(rampUp.getText()); tg.setSamplerController((LoopController) loopPanel.createTestElement()); refreshPreview(); } }
SteppingThreadGroupGui extends AbstractThreadGroupGui { @Override public void modifyTestElement(TestElement te) { super.configureTestElement(te); if (te instanceof SteppingThreadGroup) { SteppingThreadGroup tg = (SteppingThreadGroup) te; tg.setProperty(SteppingThreadGroup.NUM_THREADS, totalThreads.getText()); tg.setThreadGroupDelay(initialDelay.getText()); tg.setInUserCount(incUserCount.getText()); tg.setInUserCountBurst(incUserCountBurst.getText()); tg.setInUserPeriod(incUserPeriod.getText()); tg.setOutUserCount(decUserCount.getText()); tg.setOutUserPeriod(decUserPeriod.getText()); tg.setFlightTime(flightTime.getText()); tg.setRampUp(rampUp.getText()); tg.setSamplerController((LoopController) loopPanel.createTestElement()); refreshPreview(); } } }
SteppingThreadGroupGui extends AbstractThreadGroupGui { @Override public void modifyTestElement(TestElement te) { super.configureTestElement(te); if (te instanceof SteppingThreadGroup) { SteppingThreadGroup tg = (SteppingThreadGroup) te; tg.setProperty(SteppingThreadGroup.NUM_THREADS, totalThreads.getText()); tg.setThreadGroupDelay(initialDelay.getText()); tg.setInUserCount(incUserCount.getText()); tg.setInUserCountBurst(incUserCountBurst.getText()); tg.setInUserPeriod(incUserPeriod.getText()); tg.setOutUserCount(decUserCount.getText()); tg.setOutUserPeriod(decUserPeriod.getText()); tg.setFlightTime(flightTime.getText()); tg.setRampUp(rampUp.getText()); tg.setSamplerController((LoopController) loopPanel.createTestElement()); refreshPreview(); } } SteppingThreadGroupGui(); }
SteppingThreadGroupGui extends AbstractThreadGroupGui { @Override public void modifyTestElement(TestElement te) { super.configureTestElement(te); if (te instanceof SteppingThreadGroup) { SteppingThreadGroup tg = (SteppingThreadGroup) te; tg.setProperty(SteppingThreadGroup.NUM_THREADS, totalThreads.getText()); tg.setThreadGroupDelay(initialDelay.getText()); tg.setInUserCount(incUserCount.getText()); tg.setInUserCountBurst(incUserCountBurst.getText()); tg.setInUserPeriod(incUserPeriod.getText()); tg.setOutUserCount(decUserCount.getText()); tg.setOutUserPeriod(decUserPeriod.getText()); tg.setFlightTime(flightTime.getText()); tg.setRampUp(rampUp.getText()); tg.setSamplerController((LoopController) loopPanel.createTestElement()); refreshPreview(); } } SteppingThreadGroupGui(); @Override void clearGui(); @Override String getLabelResource(); @Override String getStaticLabel(); @Override TestElement createTestElement(); @Override void modifyTestElement(TestElement te); @Override void configure(TestElement te); }
SteppingThreadGroupGui extends AbstractThreadGroupGui { @Override public void modifyTestElement(TestElement te) { super.configureTestElement(te); if (te instanceof SteppingThreadGroup) { SteppingThreadGroup tg = (SteppingThreadGroup) te; tg.setProperty(SteppingThreadGroup.NUM_THREADS, totalThreads.getText()); tg.setThreadGroupDelay(initialDelay.getText()); tg.setInUserCount(incUserCount.getText()); tg.setInUserCountBurst(incUserCountBurst.getText()); tg.setInUserPeriod(incUserPeriod.getText()); tg.setOutUserCount(decUserCount.getText()); tg.setOutUserPeriod(decUserPeriod.getText()); tg.setFlightTime(flightTime.getText()); tg.setRampUp(rampUp.getText()); tg.setSamplerController((LoopController) loopPanel.createTestElement()); refreshPreview(); } } SteppingThreadGroupGui(); @Override void clearGui(); @Override String getLabelResource(); @Override String getStaticLabel(); @Override TestElement createTestElement(); @Override void modifyTestElement(TestElement te); @Override void configure(TestElement te); static final String WIKIPAGE; }