com.lazerycode.jmeter
Class ErrorScanner

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

public class ErrorScanner
extends Object

Handles checking the jmeter xml logs for errors and failures.

Author:
Jon Roberts

Constructor Summary
ErrorScanner(boolean ignoreErrors, boolean ignoreFailures)
           
 
Method Summary
protected  boolean checkLineForErrors(String line)
          protected for testing
 int getErrorCount()
           
 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)
Method Detail

hasTestPassed

public boolean hasTestPassed(File file)
                      throws IOException
Check given file for errors

Parameters:
file -
Returns:
true of file doesn't contain errors
Throws:
IOException

getFailureCount

public int getFailureCount()
Returns:
failureCount

getErrorCount

public int getErrorCount()
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.