public final class AxeReporter extends Object
| Modifier and Type | Method and Description |
|---|---|
static String |
getAxeResultString()
gets the results in string format.
|
static boolean |
getReadableAxeResults(String typeOfScan,
org.openqa.selenium.WebDriver webDriver,
List<Rule> scannedResults)
Parses scanned accessibility results.
|
static <T> String |
serialize(T obj)
serialize the object to a string.
|
static void |
setAxeResultString(String newAxeResult)
sets the axe result string.
|
static void |
writeResultsToJsonFile(String outputFilePath,
Results output)
Writes a raw object out to a JSON file with the specified name.
|
static void |
writeResultsToTextFile(String outputFilePath,
Object output)
Writes a raw object out to a txt file with the specified name.
|
public static void setAxeResultString(String newAxeResult)
newAxeResult - axe result string to be setpublic static String getAxeResultString()
public static void writeResultsToTextFile(String outputFilePath, Object output)
outputFilePath - Object to write. Most useful if you pass in either the Builder.analyze()
response or the violations array it contains.output - the object to be written to the text filepublic static void writeResultsToJsonFile(String outputFilePath, Results output)
outputFilePath - Desired filename, sans extensionoutput - Object to write. Most useful if you pass in either the Builder.analyze() response
or the violations array it contains.public static <T> String serialize(T obj)
T - so the method can take in an objectobj - the object to be turned into a stringpublic static boolean getReadableAxeResults(String typeOfScan, org.openqa.selenium.WebDriver webDriver, List<Rule> scannedResults)
typeOfScan - Type of scanwebDriver - Web driver the scan was run onscannedResults - The scan resultsCopyright © 2023. All rights reserved.