Package org.xwiki.test.ui
Class WCAGUtils
- java.lang.Object
-
- org.xwiki.test.ui.WCAGUtils
-
public class WCAGUtils extends Object
Helper methods for validating WCAG, not related to a specific Page Object. Also made available to tests classes.- Since:
- 15.2RC1
- Version:
- $Id: 2e9d84c3482ff03d44a1625c1bb6a84d0a3ffaf2 $
-
-
Constructor Summary
Constructors Constructor Description WCAGUtils()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
assertWCAGResults()
Assert that the results of the different WCAG failing checks are all empty.void
changeWCAGTestMethod(String testMethodName)
Change the current WCAG test method for reporting.void
endWCAGValidation()
Ends the validation process for WCAG.WCAGContext
getWCAGContext()
Get the WCAG context for the test suite.void
setupWCAGValidation(boolean wcag, String testClassName)
void
writeWCAGResults()
Writes the WCAG validation results into a report file.
-
-
-
Method Detail
-
setupWCAGValidation
public void setupWCAGValidation(boolean wcag, String testClassName)
- Parameters:
wcag
- true if WCAG tests must be executed, false otherwisetestClassName
- the PO class name to use for logging and reporting
-
changeWCAGTestMethod
public void changeWCAGTestMethod(String testMethodName)
Change the current WCAG test method for reporting.- Parameters:
testMethodName
- the test method name to update
-
getWCAGContext
public WCAGContext getWCAGContext()
Get the WCAG context for the test suite.- Returns:
- the WCAG Context
-
endWCAGValidation
public void endWCAGValidation() throws IOException
Ends the validation process for WCAG.- Throws:
IOException
-
writeWCAGResults
public void writeWCAGResults() throws IOException
Writes the WCAG validation results into a report file.- Throws:
IOException
- if the directory creation fails
-
assertWCAGResults
public void assertWCAGResults()
Assert that the results of the different WCAG failing checks are all empty.
-
-