}
public TestElement createTestElement()
{
ConfigTestElement element = new ConfigTestElement();
this.configureTestElement(element);
Arguments args = (Arguments) argsPanel.createTestElement();
HTTPArgument.convertArgumentsToHTTP(args);
element.setProperty(
new TestElementProperty(HTTPSampler.ARGUMENTS, args));
element.setProperty(HTTPSampler.DOMAIN, domain.getText());
element.setProperty(HTTPSampler.PORT, port.getText());
element.setProperty(HTTPSampler.PROTOCOL, protocol.getText());
element.setProperty(HTTPSampler.METHOD,
(post.isSelected() ? "POST" : "GET"));
element.setProperty(HTTPSampler.PATH, path.getText());
element.setProperty(new BooleanProperty(HTTPSampler.FOLLOW_REDIRECTS,
followRedirects.isSelected()));
element.setProperty(new BooleanProperty(HTTPSampler.AUTO_REDIRECTS,
autoRedirects.isSelected()));
element.setProperty(new BooleanProperty(HTTPSampler.USE_KEEPALIVE,
useKeepAlive.isSelected()));
return element;
}