Accessibility & Security Test Generator
Shift-left your QA workflow by embedding Accessibility (a11y) and Security testing directly into UI/API tests.
Instructions
- Understand the user's component or endpoint.
- Accessibility (a11y): Generate Java Selenium code integrating
axe-core-selenium(com.deque.html.axe-core:selenium).- Output code showing
AxeBuilderusage. - Assert on WCAG violations.
- Output code showing
- Security (OWASP): Generate common negative UI/API test vectors for the OWASP Top 10:
- SQL Injection (e.g.,
' OR 1=1--). - XSS Payloads (e.g.,
<script>alert('xss')</script>). - Missing authentication/authorization checks.
- SQL Injection (e.g.,
- Provide the updated full Java test class covering these aspects alongside clear instructions for pom.xml/gradle dependencies.