* @see org.apache.jmeter.gui.JMeterGUIComponent#modifyTestElement(TestElement)
*/
public void modifyTestElement(TestElement s) {
super.configureTestElement(s);
if (s instanceof OAuthSampler) {
OAuthSampler sampler = (OAuthSampler) s;
sampler.setConsumerKey(consumerKey.getText());
sampler.setConsumerSecret(consumerSecret.getText());
sampler.setRequestBody(body.getText());
sampler.setMethod(httpMethods.getText());
sampler.setUseKeepAlive(useKeepAlive.isSelected());
sampler.setAutoRedirects(automaticRedirect.isSelected());
sampler.setHostBaseUrl(hostBaseUrl.getText());
sampler.setResource(resource.getText());
sampler.setPortNumber(port.getText());
sampler.setRequestHeaders(headers.getText());
}
}