1 | TestElement item = (TestElement) iter.next();↵ | | |
|
2 | if (item.isEnabled()) {↵ | | |
|
3 | // This is done for GUI runs in JMeterTreeModel.addSubTree()↵ | | |
|
4 | if (item instanceof ReportPlan) {↵ | | 1 | if (element instanceof TestPlan) {↵
|
5 | ReportPlan tp = (ReportPlan) item;↵ | | 2 | TestPlan tp = (TestPlan) ↵
|
6 | }↵ | | |
|
7 | // TODO handle ReplaceableControllers↵ | | |
|
8 | // if (item instanceof ReplaceableController)↵ | | |
|
9 | // {↵ | | |
|
10 | // System.out.println("Replaceable "+item.getClass().getName());↵ | | |
|
11 | // HashTree subTree↵ | | 3 | element;↵
|
12 | = tree.getTree(item);↵ | | 4 | Arguments args = tp.get↵
|
13 | //↵ | | |
|
14 | // if (subTree != null)↵ | | |
|
15 | // {↵ | | |
|
16 | // ReplaceableController rc =↵ | | |
|
17 | // (ReplaceableController) item;//.createTestElement();↵ | | |
|
18 | // rc.replace(subTree);↵ | | |
|
19 | // convertSubTree(subTree);↵ | | |
|
20 | // tree.replace(item, rc.getReplacement());↵ | | |
|
21 | // }↵ | | |
|
22 | // }↵ | | |
|
23 | // else↵ | | |
|
24 | {↵ | | |
|
25 | // System.out.println("NonReplaceable↵ | | |
|
26 | // "+item.getClass().getName());↵ | | |
|
27 | convertSubTree(tree.getTree(item));↵ | | |
|
28 | // TestElement testElement = item.createTestElement();↵ | | |
|
29 | // tree.replace(item, testElement);↵ | | |
|
30 | }↵ | | |
|
31 | } else {↵ | | |
|
32 | // System.out.println("Disabled "+item.getClass().getName());↵ | | |
|
33 | tree.remove(item);↵ | | |
|
34 | ↵ | | 5 | Arguments();↵
|
| | | 6 | if (myClass.isInstance(args)) {↵
|
| | | 7 | if (ascending) {↵
|
| | | 8 | elements.addFirst(args);↵
|
| | | 9 | } else {↵
|
| | | 10 | elements.add(args);↵
|
| | | 11 | }↵
|
| | | 12 | }↵
|
35 | } | | 13 | }
|