@Override public void testStarted(String host) { if (testListener != null) { testListener.testStarted(host); } }
@Override public void testStarted() { if (testListener != null) { testListener.testStarted(); } }
private void notifyTestListenersOfStart(SearchByClass<TestStateListener> testListeners) { for (TestStateListener tl : testListeners.getSearchResults()) { if (tl instanceof TestBean) { TestBeanHelper.prepare((TestElement) tl); } if (host == null) { tl.testStarted(); } else { tl.testStarted(host); } } }
/** * This will notify test listeners directly within the Proxy that the 'test' * (here meaning the proxy recording) has started. */ private void notifyTestListenersOfStart() { JMeterTreeModel treeModel = getJmeterTreeModel(); JMeterTreeNode myNode = treeModel.getNodeOf(this); if(myNode != null) { Enumeration<?> kids = myNode.children(); while (kids.hasMoreElements()) { JMeterTreeNode subNode = (JMeterTreeNode)kids.nextElement(); if (subNode.isEnabled()) { TestElement testElement = subNode.getTestElement(); if (testElement instanceof TestStateListener) { ((TestStateListener) testElement).testStarted(); } } } } }