Carica i risultati sulla dashboard mobile
Invia i risultati alla dashboard
Utilizza i risultati della scansione per individuare errori di accessibilità e inviarli alla axe DevTools Mobile Dashboard.
try axe?.postResult(result)
Informazioni sulla dashboard
La axe DevTools Mobile Dashboard è una posizione centrale in cui l'intero team può visualizzare e gestire i problemi di accessibilità riscontrati nella tua app.
Dalla dashboard puoi:
- Trova risultati per scansioni di accessibilità
- Raggruppa scansioni
- Condividere una scansione/un gruppo di scansioni
- Filtrare le scansioni
- Decidi quali risultati sono più importanti e adatta i tuoi test
Per saperne di più, visita la documentazione per axe DevTools Mobile Dashboard .
Crea un URL del gruppo di scansione da axeDevToolsResultKey
Quando carichi la tua scansione sulla Dashboard Mobile, l'oggetto del risultato della scansione restituito dalla richiesta POST. axeDevToolsResultKey
Questo oggetto ha quattro proprietà: packageName
, userId
, resultId
e uuid
. Utilizzando la proprietà uuid
, puoi creare un URL per indirizzare a un gruppo di massimo 20 risultati nella Dashboard Mobile.
Utilizza quanto segue come guida per la struttura dell'URL di scansione:
\(dashboardBaseURL)/scans?uuids=\(uuidsSeperatedWithComma)
Esempio
var uuids: [String] = []
// Navigate to screen 1 and perform a scan
let scan1 = try axe.run(onBundleIdentifier: bundleId)
// Upload scan results to dashboard
let resultKey1 = try axe.postResult(scan1)
// Add UUID to array of UUIDs
uuids.append(resultKey1.uuid)
// Navigate to screen 2 and perform a scan
let scan2 = try axe.run(onBundleIdentifier: bundleId)
// Upload scan results to dashboard
let resultKey2 = try axe.postResult(scan2)
// Add UUID to array of UUIDs
uuids.append(resultKey2.uuid)
// Add more scans - UUID list limit is 20
// Join the UUIDs into a single comma separated String
let uuidsString = uuids.joined(separator: ",")
// Construct group scan URL
var components = URLComponents(string: "https://axe-mobile.deque.com")!
components.path = "/scans"
components.queryItems = [URLQueryItem(name: "uuids", value: uuidsString)]
let url = components.url!
// Output the URL in the Xcode console. (UUIDs should be full length)
print(url) // https://axe-mobile.deque.com/scans?uuids=xxx-xxx-xxx,yyy-yyy-yyy