com.lazerycode.jmeter
Class ErrorScanner

java.lang.Object
  extended by com.lazerycode.jmeter.ErrorScanner

public class ErrorScanner
extends Object

Handles checking a JMeter results file in XML format for errors and failures.

Author:
Jon Roberts

Constructor Summary
ErrorScanner(boolean ignoreErrors, boolean ignoreFailures, org.apache.maven.plugin.logging.Log log)
           
 
Method Summary
protected  boolean checkLineForErrors(String line)
          protected for testing
 int getErrorCount()
          TODO: what are errors?
 int getFailureCount()
           
 boolean hasTestPassed(File file)
          Check given file for errors
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ErrorScanner

public ErrorScanner(boolean ignoreErrors,
                    boolean ignoreFailures,
                    org.apache.maven.plugin.logging.Log log)
Method Detail

hasTestPassed

public boolean hasTestPassed(File file)
                      throws org.apache.maven.plugin.MojoExecutionException
Check given file for errors

Parameters:
file -
Returns:
true of file doesn't contain errors
Throws:
org.apache.maven.plugin.MojoExecutionException

getFailureCount

public int getFailureCount()
Returns:
failureCount

getErrorCount

public int getErrorCount()
TODO: what are errors?

Returns:
errorCount

checkLineForErrors

protected boolean checkLineForErrors(String line)
protected for testing

Parameters:
line -
Returns:
boolean
Throws:
org.apache.maven.plugin.MojoFailureException


Copyright © 2012. All Rights Reserved.