Tagging Results
Supported within:
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.
Tagging is only supported within automated testing. Tagged scans are made available for other team members within your organization.
Send a Scan with a Tag
Using the parameter withTags
, we're attaching a tag named "build:0.0.1" to the scan.
axeDevToolsUIKit Example
func testAccessibility() throws {
let viewFrame = CGRect(x: 0, y: 0, width: 200, height: 100)
guard let result = try axe?.run(onView: UIView(frame: viewFrame)) else {
XCTFail()
return
}
try axe?.postResult(result, withTags: ["build: 0.0.1"])
}
axeDevToolsXCUI Example
func testAccessibility() throws {
guard let result = try axe?.run(onElement: XCUIApplication()) else {
XCTFail()
return
}
try axe?.postResult(result, withTags: ["build: 0.0.1"])
}