Tagging Results

Link to Tagging Results copied to clipboard

Supported within:
axeDevTools UIKit framework axeDevTools XCUI framework

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

Unit Tests
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

UI Tests
func testAccessibility() throws {
    guard let result = try axe?.run(onElement: XCUIApplication()) else {
        XCTFail()
        return
    }
    try axe?.postResult(result, withTags: ["build: 0.0.1"])
}