Usage Service
Supported within:
Learn about your teams' usage and metrics through the axe DevTools Usage Service. The linked documentation provides more insight into this service if you're just getting started.
Disabled by default, you must opt in by providing your Deque-provided Organization ID
during setup to start collecting usage data.
Opt In
On your initialized AxeDevTools
object, set the organization ID prior to authenticating and running any scans.
axe.setOrgIdForUsageService("<ORG_ID>")
Full Example in Espresso
@test
fun runScanWithADTAndroid() {
axe.setOrgIdForUsageService("<ORG_ID>")
axe.connect("<DEQUE_API_KEY>")
rule.scenario.onActivity {
val scan = axe.scan(it)
Assert.assertNull(scan)
axe.tearDown()
}
}