com.lazerycode.jmeter
Class ErrorScanner
java.lang.Object
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)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ErrorScanner
public ErrorScanner(boolean ignoreErrors,
boolean ignoreFailures)
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.