public void configure(TestElement el) { super.configure(el); SoapSampler sampler = (SoapSampler) el; urlField.setText(sampler.getURLData()); sendSoapAction.setSelected(sampler.getSendSOAPAction()); soapAction.setText(sampler.getSOAPAction()); soapXml.setText(sampler.getXmlData()); soapXmlFile.setFilename(sampler.getXmlFile()); useKeepAlive.setSelected(sampler.getUseKeepAlive());
if (c instanceof CounterConfig) { CounterConfig config = (CounterConfig) c; config.setStart(startField.getText()); // Bug 22820 if (endField.getText().length() > 0) { config.setEnd(endField.getText()); } config.setIncrement(incrField.getText()); config.setVarName(varNameField.getText()); config.setFormat(formatField.getText()); config.setIsPerUser(perUserField.isSelected());
Clone fragments detected by clone detection tool
File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/protocol/http/control/gui/SoapSamplerGui.java File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/modifiers/gui/CounterConfigGui.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
public void configure(TestElement el) {
2
		super.configure(el);
3
		SoapSampler sampler = (SoapSampler) el;
4
		url
1
if (c instanceof CounterConfig) {
2
			CounterConfig config = (CounterConfig) c;
3
			config.setStart(startField.getText());
5
Field.setText(sampler.getURLData());
4
			// Bug 22820 if (endField.getText(
6
		sendSoapAction.setSelected(sampler.getSendSOAPAction());
7
		soapAction.setText(sampler.getSOAPAction());
8
		soapXml.setText(sampler.getXmlData
5
).length() > 0)
6
			{
7
				config.setEnd(endField.getText());
8
			}
9
			config.setIncrement(incrField.getText());
9
());
10
			config.setVarName(varNameField.getText());
10
        soapXmlFile.setFilename(sampler.getXmlFile());
11
        
11
        useKeepAlive.setSelected(sampler.getUseKeepAlive
12
    config.setFormat(formatField.getText());
12
());
13
			config.setIsPerUser(perUserField.isSelected());
13
	
14
		
Summary
Number of common nesting structure subtrees0
Number of refactorable cases0
Number of non-refactorable cases0
Time elapsed for finding largest common nesting structure subtrees (ms)0.0
Clones location
Number of node comparisons0