diff options
author | Jesse Hallett <jesse@galois.com> | 2014-01-03 13:26:24 -0800 |
---|---|---|
committer | Jesse Hallett <jesse@galois.com> | 2014-01-03 15:55:16 -0800 |
commit | eee8ee81c683169914ed9dd8f6c514eab7811214 (patch) | |
tree | 5311b92fb638368f2a43857d0a2fd5d0c36e7852 /src/batchtools/rsTester/src/main/java/com | |
parent | 6d63c61bb97591c0e97f00e606468754f6180b80 (diff) |
Outputs message, xpath, and proper severity in batch run reports
Result extracts xpath from problem report
Retrieves msg and xpath from problem report
got severity working
Diffstat (limited to 'src/batchtools/rsTester/src/main/java/com')
-rw-r--r-- | src/batchtools/rsTester/src/main/java/com/galois/fiveui/Result.java | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/src/batchtools/rsTester/src/main/java/com/galois/fiveui/Result.java b/src/batchtools/rsTester/src/main/java/com/galois/fiveui/Result.java index 6c83c7b..e6f2253 100644 --- a/src/batchtools/rsTester/src/main/java/com/galois/fiveui/Result.java +++ b/src/batchtools/rsTester/src/main/java/com/galois/fiveui/Result.java @@ -19,6 +19,9 @@ package com.galois.fiveui; import org.openqa.selenium.WebDriver; +import java.util.regex.Matcher; +import java.util.regex.Pattern; + /** * A Result object encapsulates the result of running a rule set check on a URL * with a WebDriver. Results are organized into four categories: @@ -36,8 +39,9 @@ public class Result { private transient WebDriver _driver; private String _url; private String _ruleName; - private String _ruleDesc; - private String _prob; + private String _ruleDesc; + private String _prob; + private String _xpath = null; /** * Construct a new result of one of the four types. @@ -50,11 +54,12 @@ public class Result { * @param ruleDesc rule description * @param prob problem description */ - public Result(ResType type, WebDriver driver, String msg, String url, - String ruleName, String ruleDesc, String prob) { + public Result(ResType type, WebDriver driver, String msg, String xpath, + String url, String ruleName, String ruleDesc, String prob) { super(); _type = type; _msg = msg; + _xpath = xpath; _driver = driver; _url = url; _ruleName = ruleName; @@ -207,7 +212,6 @@ public class Result { } public String getXpath() { - // TODO Auto-generated method stub - return null; + return _xpath; } } |