org.apache.jmeter.processor.PostProcessor Java Examples
The following examples show how to use
org.apache.jmeter.processor.PostProcessor.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: TestCompilerParallel.java From jmeter-bzm-plugins with Apache License 2.0 | 5 votes |
private void addSamplePackage(Sampler sampler, SamplePackage samplePackage) { if (sampler instanceof AbstractTestElement) { knownElements.add((AbstractTestElement) sampler); } for (Assertion assertion : samplePackage.getAssertions()) { if (assertion instanceof AbstractTestElement) { knownElements.add((AbstractTestElement) assertion); } } for (ConfigTestElement config : samplePackage.getConfigs()) { knownElements.add(config); } for (PostProcessor postProcessor : samplePackage.getPostProcessors()) { if (postProcessor instanceof AbstractTestElement) { knownElements.add((AbstractTestElement) postProcessor); } } for (PreProcessor preProcessor : samplePackage.getPreProcessors()) { if (preProcessor instanceof AbstractTestElement) { knownElements.add((AbstractTestElement) preProcessor); } } for (Timer timer : samplePackage.getTimers()) { if (timer instanceof AbstractTestElement) { knownElements.add((AbstractTestElement) timer); } } }
Example #2
Source File: TreeClonerTG.java From jmeter-debugger with Apache License 2.0 | 5 votes |
private TestElement getAlteredElement(TestElement cloned) { boolean isWrappable = !(cloned instanceof TransactionController) && !(cloned instanceof TestFragmentController) && !(cloned instanceof ReplaceableController); TestElement userObject = cloned; if (!isWrappable) { log.debug("Forcing unwrapped: " + cloned); } else if (cloned instanceof AbstractThreadGroup) { userObject = new DebuggingThreadGroup(); userObject.setProperty(TestElement.GUI_CLASS, DebuggingThreadGroupGui.class.getCanonicalName()); } else if (cloned instanceof Controller) { userObject = getController(cloned); } else if (cloned instanceof PreProcessor) { userObject = new PreProcessorDebug(); } else if (cloned instanceof Timer) { userObject = new TimerDebug(); } else if (cloned instanceof Sampler) { userObject = new SamplerDebug(); } else if (cloned instanceof PostProcessor) { userObject = new PostProcessorDebug(); } else if (cloned instanceof Assertion) { userObject = new AssertionDebug(); } else if (cloned instanceof SampleListener) { userObject = new SampleListenerDebug(); } else { log.debug("Keeping element unwrapped: " + cloned); } return userObject; }
Example #3
Source File: TestPlanCheckTool.java From jmeter-plugins with Apache License 2.0 | 5 votes |
@Override public void addNode(Object node, HashTree subTree) { if (node instanceof AbstractThreadGroup) { tGroups++; } else if (node instanceof Controller) { controllers++; } else if (node instanceof Sampler) { samplers++; } else if (node instanceof AbstractListenerElement) { listeners++; } else if (node instanceof PreProcessor) { preProc++; } else if (node instanceof PostProcessor) { postProc++; } else if (node instanceof Assertion) { assertions++; } else if (node instanceof Timer) { timers++; } else if (node instanceof ConfigElement) { configs++; } else if (node instanceof TestPlan) { log.debug("Ok, we got the root of test plan"); } else if (node instanceof WorkBench) { log.debug("Ok, we got the root of test plan"); } else { log.warn("Strange object in tree: " + node); others++; } }