@Test public void testModifyTestElement() { System.out.println("modifyTestElement"); HTTPRawSampler sampler = new HTTPRawSampler(); HTTPRawSamplerGui instance = new HTTPRawSamplerGui(); instance.modifyTestElement(sampler); assertEquals("localhost", sampler.getHostName()); }
@Override public void modifyTestElement(TestElement sampler) { super.configureTestElement(sampler); if (sampler instanceof HTTPRawSampler) { HTTPRawSampler rawSampler = (HTTPRawSampler) sampler; rawSampler.setHostName(hostName.getText()); rawSampler.setPort(port.getText()); rawSampler.setUseKeepAlive(keepAlive.isSelected()); rawSampler.setTimeout(timeout.getText()); rawSampler.setRequestData(transformCRLF(requestData.getText())); rawSampler.setFileToSend(fileName.getText()); rawSampler.setParseResult(parseResult.isSelected()); } }
HTTPRawSamplerGui extends AbstractSamplerGui { @Override public void modifyTestElement(TestElement sampler) { super.configureTestElement(sampler); if (sampler instanceof HTTPRawSampler) { HTTPRawSampler rawSampler = (HTTPRawSampler) sampler; rawSampler.setHostName(hostName.getText()); rawSampler.setPort(port.getText()); rawSampler.setUseKeepAlive(keepAlive.isSelected()); rawSampler.setTimeout(timeout.getText()); rawSampler.setRequestData(transformCRLF(requestData.getText())); rawSampler.setFileToSend(fileName.getText()); rawSampler.setParseResult(parseResult.isSelected()); } } }
HTTPRawSamplerGui extends AbstractSamplerGui { @Override public void modifyTestElement(TestElement sampler) { super.configureTestElement(sampler); if (sampler instanceof HTTPRawSampler) { HTTPRawSampler rawSampler = (HTTPRawSampler) sampler; rawSampler.setHostName(hostName.getText()); rawSampler.setPort(port.getText()); rawSampler.setUseKeepAlive(keepAlive.isSelected()); rawSampler.setTimeout(timeout.getText()); rawSampler.setRequestData(transformCRLF(requestData.getText())); rawSampler.setFileToSend(fileName.getText()); rawSampler.setParseResult(parseResult.isSelected()); } } HTTPRawSamplerGui(); }
HTTPRawSamplerGui extends AbstractSamplerGui { @Override public void modifyTestElement(TestElement sampler) { super.configureTestElement(sampler); if (sampler instanceof HTTPRawSampler) { HTTPRawSampler rawSampler = (HTTPRawSampler) sampler; rawSampler.setHostName(hostName.getText()); rawSampler.setPort(port.getText()); rawSampler.setUseKeepAlive(keepAlive.isSelected()); rawSampler.setTimeout(timeout.getText()); rawSampler.setRequestData(transformCRLF(requestData.getText())); rawSampler.setFileToSend(fileName.getText()); rawSampler.setParseResult(parseResult.isSelected()); } } HTTPRawSamplerGui(); @Override String getStaticLabel(); @Override void configure(TestElement element); @Override TestElement createTestElement(); @Override void modifyTestElement(TestElement sampler); @Override void clearGui(); @Override String getLabelResource(); }
HTTPRawSamplerGui extends AbstractSamplerGui { @Override public void modifyTestElement(TestElement sampler) { super.configureTestElement(sampler); if (sampler instanceof HTTPRawSampler) { HTTPRawSampler rawSampler = (HTTPRawSampler) sampler; rawSampler.setHostName(hostName.getText()); rawSampler.setPort(port.getText()); rawSampler.setUseKeepAlive(keepAlive.isSelected()); rawSampler.setTimeout(timeout.getText()); rawSampler.setRequestData(transformCRLF(requestData.getText())); rawSampler.setFileToSend(fileName.getText()); rawSampler.setParseResult(parseResult.isSelected()); } } HTTPRawSamplerGui(); @Override String getStaticLabel(); @Override void configure(TestElement element); @Override TestElement createTestElement(); @Override void modifyTestElement(TestElement sampler); @Override void clearGui(); @Override String getLabelResource(); static final String WIKIPAGE; }