Skip to content

Health Software Common Practices

HSCP-R-015 · recipe · Accessibility and quality

Survey the accessibility of a native application at each version, screen by screen, from its UI tests

Written entry, version 0.3, checked on 2026-11-23.

At a glance

ImplementsHSCP-G-057 Measure and declare the accessibility of the service : Measuring and declaring the accessibility of the service, facet “check at each version”
CaseInstantiates: applies an existing practice to a context.
Contexta native Android or iOS application whose user journeys are already automated by UI tests (UIAutomator, Espresso, XCUITest), on a real device or an emulator
Surfaces
  • Web: not covered
  • Native app: covered
  • Documents: not covered
Verificationopen test HSCP-T-005 · review

Scope: Does not replace the audit. Between two audits, keeps a record of what the platforms' checking engines verify at each version, screen by screen.

Practices covered (7)
PracticeWhat the tool checksWhat remains for a human
HSCP-G-263 Give each image and non-text content a relevant alternativeEach informative or clickable image exposes a description to assistive technologies.Whether the description is relevant, and the choice between an informative and a decorative image.
HSCP-G-264 Make links, buttons and interactive components rendered and usableEach actionable element has an exposed name and a consistent role; no two actionable elements overlap.A label understandable out of context, use of a custom component with a screen reader.
HSCP-G-265 Leave the user in control of the consultationThe touch target of each active element reaches the platform's minimum size.Complex gestures without an alternative, time limits, stopping moving content.
HSCP-G-266 Do not convey information by colour alone and ensure sufficient contrastContrast of text and images of text against their background, in light and dark mode.Information conveyed by colour alone, text over a photo.
HSCP-G-267 Make forms and data entry accessibleEach input field has an exposed label.Clear error messages, format hints, authentication without a cognitive function test.
HSCP-G-270 Separate content from its presentation so that it stays readable when the user adapts itText stays whole when the system font size is set to maximum; the screen is replayed in landscape.Overall readability of the enlarged screen.
HSCP-G-271 Structure content and fill in the mandatory elementsThe reading order of assistive technologies does not loop and does not skip any element.A logical reading order, relevant screen titles.

When

A native application goes through the same regressions as a website, but no web tool sees it. Yet both systems provide their own checking engine, plugged into the UI tests. If the team already automates its user journeys, each screen reached by a test can be checked without writing a new journey.

How

  1. Write the list of screens checked, starting from the automated journeys: at least start-up, consent, authentication, each step of a care or data entry journey, help and the accessibility statement. Also state the screens that no test reaches.
  2. In the test, after each stable screen, run the system's engine: on Android, the Accessibility Test Framework through a UIAutomator or Espresso validator; on iOS 17 and later, the XCUITest accessibility audit. Collect the issues instead of failing the test, so that the journey runs to the end.
  3. Replay the screens of the main journey in contexts that change the rendering: system font at maximum, dark mode, landscape. Note the context of each check.
  4. Write one line per screen, check and context, in the survey format of HSCP-R-014: the day, the surface (android or ios), the screen, the context, the engine and its version, the device, the status, the criteria verified or in gap.
  5. Keep the traceability table, criterion by criterion of the mobile framework chosen: verified by the engine, in gap, not verifiable by an engine.
  6. Seal the survey as for the web: fingerprint of each item, dated description file.
  7. Make blocking a gap on a reliable check (missing name, contrast, target size) and write a decision for any gap left in place.

Examples

Contexts set before the test (Android, then iOS by launch argument):

adb shell settings put system font_scale 2.0
adb shell cmd uimode night yes
app.launchArguments += ["-UIPreferredContentSizeCategoryName", "UICTContentSizeCategoryAccessibilityXXXL"]

iOS audit that collects instead of failing:

var anomalies: [XCUIAccessibilityAuditIssue] = []
try app.performAccessibilityAudit { anomalie in
    anomalies.append(anomalie)
    return true // issue kept for the survey, the test continues
}

A line of the survey:

{"jour": "2026-11-23", "surface": "android", "page": "ecran:connexion", "controle": "atf", "contexte": "police-200", "outil": "accessibility-test-framework", "statut": "ecart", "bloquant": true, "wcag_ecarts": ["1.4.4"]}

These examples follow the engines' documentation; they have not been run for this recipe.

Verification

  • Review: reread the survey of each version, check that it covers the list of screens and contexts, and that each gap has a decision.
  • Automated check: the native survey has the same format as the web survey; an evidence tool can reread it and link each line to the criteria of the mobile framework.
  • Review: a full audit on a device, with TalkBack and VoiceOver, by a trained person. It alone gives a compliance rate.

Evidence produced

The sealed survey of each version, the list of screens, contexts and devices checked, and the written decision for each gap left in place.

Evidence items

Each item attests the recipe at a given date. Frequency given for a product in service.

  • Survey Dated accessibility survey, one line per screen, check and context, sealed by the fingerprints of its itemsFrequency: at each release · open test HSCP-T-005
  • Configuration or schema Versioned list of the screens, contexts and devices checked, with what is not checkedFrequency: at each release
  • Written record Written decision for each uncorrected gap: reason, due date, alternative offeredFrequency: on demand

References outside the catalogue

  • Accessibility Test Framework for Android (Apache 2.0 licence) and its integration with UIAutomator and Espresso, Android Developers documentation.
  • XCUITest accessibility audit, session "Perform accessibility audits for your app", WWDC 2023.
  • GTXiLib (Apache 2.0 licence), accessibility checks for XCTest tests.

Versions

Versions of the entry (French reference), most recent first
VersionStatusDate
0.3Draft2026-11-23
0.2Draft2026-11-23
0.1Draft2026-11-23

How to cite: “Health Software Common Practices”, HSCP-R-015, version 0.3, https://healthtechpractices.org/en/recettes/hscp-r-015/, under the CC BY-NC-SA 4.0 licence. Licence