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/protocol/java/control/gui/BSFSamplerGui.java | |||
Method name: void modifyTestElement(TestElement)
|
Method name: void modifyTestElement(TestElement)
|
|||
Number of AST nodes: 7 | Number of AST nodes: 7 | |||
1 | Soap↵ | 1 | te.clear();↵ | |
2 | this.configureTestElement(te);↵ | |||
2 | Sampler sampler = (SoapSampler) s;↵ | 3 | BSFSampler sampler = (BSFSampler) te;↵ | |
3 | sampler.setURLData(urlField.getText());↵ | 4 | sampler.setFilename(filename.getText());↵ | |
4 | sampler.setXmlData(soapXml.getText());↵ | 5 | sampler.set↵ | |
5 | sampler.setXmlFile(soapXmlFile.getFilename());↵ | 6 | ScriptLanguage((String) langField.getSelectedItem());↵ | |
6 | sampler.setSOAPAction(soapAction.getText());↵ | 7 | sampler.setParameters(parameters.getText());↵ | |
7 | sampler.setSendSOAPAction(sendSoapAction.isSelected());↵ | 8 | sampler.setS↵ | |
8 | sampler.setUseKeepAlive(useKeepAlive.isSelected()); | 9 | cript(scriptField.getText()); | |
See real code fragment | See real code fragment |
Number of common nesting structure subtrees | 1 |
Number of refactorable cases | 0 |
Number of non-refactorable cases | 1 |
Time elapsed for finding largest common nesting structure subtrees (ms) | 0.0 |
Clones location | Clones are in different classes having the same super class |
Number of node comparisons | 49 |
Number of mapped statements | 5 |
Number of unmapped statements in the first code fragment | 2 |
Number of unmapped statements in the second code fragment | 2 |
Time elapsed for statement mapping (ms) | 0.0 |
Clone type | Type 2 |
ID | Statement | ID | Statement | |||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 1 | te.clear(); | ||||||||||||||||||||||||||||
| 2 | this.configureTestElement(te); | ||||||||||||||||||||||||||||
3 | SoapSampler sampler = (SoapSampler)s; |
| 3 | BSFSampler sampler = (BSFSampler)te; | ||||||||||||||||||||||||||
4 | sampler.setURLData(urlField.getText()); |
| 5 | sampler.setScriptLanguage((String)langField.getSelectedItem()); | ||||||||||||||||||||||||||
5 | sampler.setXmlData(soapXml.getText()); |
| 4 | sampler.setFilename(filename.getText()); | ||||||||||||||||||||||||||
6 | sampler.setXmlFile(soapXmlFile.getFilename()); |
| 6 | sampler.setParameters(parameters.getText()); | ||||||||||||||||||||||||||
7 | sampler.setSOAPAction(soapAction.getText()); |
| 7 | sampler.setScript(scriptField.getText()); | ||||||||||||||||||||||||||
8 | sampler.setSendSOAPAction(sendSoapAction.isSelected()); | | ||||||||||||||||||||||||||||
9 | sampler.setUseKeepAlive(useKeepAlive.isSelected()); | |
Row | Violation |
---|---|
1 | Expression sampler.setURLData(urlField.getText()) cannot be parameterized, because it has dependencies to/from statements that will be extracted |
2 | Expression sampler.setScriptLanguage((String)langField.getSelectedItem()) cannot be parameterized, because it has dependencies to/from statements that will be extracted |
3 | Expression sampler.setURLData(urlField.getText()) is a void method call, and thus it cannot be parameterized |
4 | Expression sampler.setScriptLanguage((String)langField.getSelectedItem()) is a void method call, and thus it cannot be parameterized |
5 | Expression sampler.setXmlData(soapXml.getText()) cannot be parameterized, because it has dependencies to/from statements that will be extracted |
6 | Expression sampler.setFilename(filename.getText()) cannot be parameterized, because it has dependencies to/from statements that will be extracted |
7 | Expression sampler.setXmlData(soapXml.getText()) is a void method call, and thus it cannot be parameterized |
8 | Expression sampler.setFilename(filename.getText()) is a void method call, and thus it cannot be parameterized |
9 | Expression sampler.setXmlFile(soapXmlFile.getFilename()) cannot be parameterized, because it has dependencies to/from statements that will be extracted |
10 | Expression sampler.setParameters(parameters.getText()) cannot be parameterized, because it has dependencies to/from statements that will be extracted |
11 | Expression sampler.setXmlFile(soapXmlFile.getFilename()) is a void method call, and thus it cannot be parameterized |
12 | Expression sampler.setParameters(parameters.getText()) is a void method call, and thus it cannot be parameterized |
13 | Expression sampler.setSOAPAction(soapAction.getText()) cannot be parameterized, because it has dependencies to/from statements that will be extracted |
14 | Expression sampler.setScript(scriptField.getText()) cannot be parameterized, because it has dependencies to/from statements that will be extracted |
15 | Expression sampler.setSOAPAction(soapAction.getText()) is a void method call, and thus it cannot be parameterized |
16 | Expression sampler.setScript(scriptField.getText()) is a void method call, and thus it cannot be parameterized |
17 | Clone fragment #1 returns variables sampler , while Clone fragment #2 returns variables |