Carica Risultati
Carica i risultati delle scansioni in una posizione centrale dove l'intero team può visualizzare e gestire i problemi di accessibilità riscontrati durante i test.
try axe?.postResult(result) In futuro, il Dashboard di Axe DevTools Mobile verrà sostituito completamente da Axe Developer Hub. Durante la transizione, tuttavia, puoi trovare i risultati sia sul Dashboard che nel Developer Hub.
Informazioni su Axe Developer Hub
Axe Developer Hub è una posizione centrale dove l'intero team può visualizzare e gestire i problemi di accessibilità riscontrati nella tua app.
Con Developer Hub puoi:
- Trovare i risultati delle scansioni di accessibilità
- Condividere una scansione/un gruppo di scansioni
- Decidere quali risultati sono più importanti e adattare i tuoi test
Condividi Risultati con il Tuo Team
Per creare un link diretto ai tuoi risultati nel Developer Hub, puoi seguire questo schema - aggiungendo il tuo ID di progetto:
https://axe.deque.com/axe-watcher/projects/<project_ID>Questo ti porta a una pagina dove sono elencate tutte le esecuzioni recenti per quell'ID progetto.
Crea un URL di Gruppo di Scansioni per il Mobile Dashboard
Quando carichi la tua scansione nel Mobile Dashboard, il risultato della scansione ritornato dalla richiesta POST ha l'oggetto axeDevToolsResultKey. Questo oggetto ha quattro proprietà: packageName, userId, resultId e uuid. Usando la proprietà uuid, puoi creare un URL che indirizza a un gruppo di fino a 20 risultati sul Dashboard.
Usa il seguente come guida per la struttura dell'URL della 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