Update Scan Name
Supported within:
Scans uploaded to the dashboard automatically grab the View Controller's title or the title set in the navigation bar, if available. You can set the name based on other criteria before pushing a scan by using the withScanName
parameter within andPushResult
.
Updating a scan's name is only supported within automated testing.
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"], withScanName: "AUTOMATION")
}
axeDevToolsXCUI Example
func testAccessibility() throws {
guard let result = try axeDevTools?.run(onElement: XCUIApplication()) else {
XCTFail()
return
}
try axeDevTools?.postResult(result, withTags: ["build: 0.0.1"], withScanName: "AUTOMATION")
}