Tagging Results
Not for use with personal data
Tagging is a helpful feature to organize, share and search for scans within the axe DevTools Mobile Dashboard. Some helpful tags for your team may be the team name, build number, simulator version, etc.
Send a Scan with a Tag
In the following example, we're using the parameter withTags
and attaching a tag named "build: 0.0.1"
to the scan.
func testAccessibility() throws {
guard let result = try axe?.run(onElement: XCUIApplication()) else {
XCTFail()
return
}
try axe?.postResult(result, withTags: ["build: 0.0.1"])
}