Examples of SampleEvent


Examples of org.apache.jmeter.samplers.SampleEvent

        } catch (ArrayIndexOutOfBoundsException e) {
            log.warn("Insufficient columns to parse field '" + field
                    + "' at line " + lineNumber);
            throw new JMeterError(e);
        }
        return new SampleEvent(result, "", hostname);
    }
View Full Code Here

Examples of org.apache.jmeter.samplers.SampleEvent

                }
                result.setSampleLabel("["+result.getSampleLabel()+"]");
            }
        }
        // SampleEvent is not passed JMeterVariables, because they don't make sense for Proxy Recording
        notifySampleListeners(new SampleEvent(result, "WorkBench")); // TODO - is this the correct threadgroup name?
    }
View Full Code Here

Examples of org.apache.jmeter.samplers.SampleEvent

            // If child of TransactionController is a ThroughputController and TPC does
            // not sample its children, then we will have this
            // TODO Should this be at warn level ?
            log.warn("Could not fetch SamplePackage");
        } else {
            SampleEvent event = new SampleEvent(res, threadContext.getThreadGroup().getName(),threadVars, true);
            // We must set res to null now, before sending the event for the transaction,
            // so that we can ignore that event in our sampleOccured method
            res = null;
            // bug 50032
            if (!getThreadContext().isReinitializingSubControllers()) {
View Full Code Here

Examples of org.apache.jmeter.samplers.SampleEvent

    }
  }

  private void notifyListeners(SampleResult result)
  {
    SampleEvent event = new SampleEvent(result, group.getName());
    Iterator iter = listeners.iterator();
    while (iter.hasNext())
    {
      SampleListener item = (SampleListener)iter.next();
      item.sampleOccurred(event);
View Full Code Here

Examples of org.apache.jmeter.samplers.SampleEvent

      }
    }
  }

  private void notifyListeners(List listeners, SampleResult result) {
    SampleEvent event = new SampleEvent(result, threadGroup.getName());
    notifier.notifyListeners(event, listeners);

  }
View Full Code Here

Examples of org.apache.jmeter.samplers.SampleEvent

      }
    }
  }

  private void notifyListeners(List listeners, SampleResult result) {
    SampleEvent event = new SampleEvent(result, controller.getPropertyAsString(TestElement.NAME));
    notifier.notifyListeners(event, listeners);

  }
View Full Code Here

Examples of org.apache.jmeter.samplers.SampleEvent

                log.debug("Sample excluded based on url or content-type: " + result.getUrlAsString() + " - " + result.getContentType());
            }
            result.setSampleLabel("["+result.getSampleLabel()+"]");
        }
        // SampleEvent is not passed JMeterVariables, because they don't make sense for Proxy Recording
        notifySampleListeners(new SampleEvent(result, "WorkBench")); // TODO - is this the correct threadgroup name?
    }
View Full Code Here

Examples of org.apache.jmeter.samplers.SampleEvent

                log.debug("Sample excluded based on url or content-type: " + result.getUrlAsString() + " - " + result.getContentType());
            }
            result.setSampleLabel("["+result.getSampleLabel()+"]");
        }
        // SampleEvent is not passed JMeterVariables, because they don't make sense for Proxy Recording
        notifySampleListeners(new SampleEvent(result, "WorkBench")); // TODO - is this the correct threadgroup name?
    }
View Full Code Here

Examples of org.apache.jmeter.samplers.SampleEvent

            }
        }
    }

    private void notifyListeners(List<SampleListener> listeners, SampleResult result) {
        SampleEvent event = new SampleEvent(result, threadGroup.getName(), threadVars);
        notifier.notifyListeners(event, listeners);

    }
View Full Code Here

Examples of org.apache.jmeter.samplers.SampleEvent

            // not
            // If so, then need to check whether the reader is at EOF
            SimpleDateFormat dateFormat = new SimpleDateFormat(DEFAULT_DATE_FORMAT_STRING);
            while ((parts = csvReadFile(dataReader, delim)).length != 0) {
                lineNumber++;
                SampleEvent event = CSVSaveService
                        .makeResultFromDelimitedString(parts, saveConfig,
                                lineNumber, dateFormat);
                if (event != null) {
                    final SampleResult result = event.getResult();
                    if (ResultCollector.isSampleWanted(result.isSuccessful(),
                            errorsOnly, successOnly)) {
                        visualizer.add(result);
                    }
                }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.