accessibility testing announcements from google io 2015

6
Google IO Accessibility Ted Drake, Intuit Accessibility

Upload: ted-drake

Post on 03-Aug-2015

175 views

Category:

Technology


3 download

TRANSCRIPT

Page 1: Accessibility testing announcements from Google IO 2015

Google IO AccessibilityTed Drake, Intuit Accessibility

Page 2: Accessibility testing announcements from Google IO 2015

Testing

Major announcements were made about automated accessibility tests being incorporated into Espresso and Roblectric

Page 3: Accessibility testing announcements from Google IO 2015

Espresso 2.2+• Standardized a11y unit tests available

@Beforepublic void setUp() { AccessibilityChecks.enable();}

Espresso: https://developer.android.com/tools/testing-support-library/index.html#EspressoAccessibilityChecks: http://developer.android.com/reference/android/support/test/espresso/contrib/AccessibilityChecks.html

Enabling AccessibilityChecks will run through the app and check for accessibility errors.Auto updates with latest tests from Google

Page 4: Accessibility testing announcements from Google IO 2015

Robolectric• Also include AccessibilityChecks

@Test

@AccessibilityCheckspublic void testFooBar…

Sample Result:

View is missing speakable text needed for a screen reader

java.lang.RuntimeException: View has accessibility issues.

Robolectric: http://robolectric.org/Robolectric + AccessibilityChecks: https://github.com/robolectric/robolectric/blob/master/robolectric-annotations/src/main/java/org/robolectric/annotation/AccessibilityChecks.java

Page 5: Accessibility testing announcements from Google IO 2015

This is not yet available. It’s an app that you install on the device. It adds a floating button to the screen. You then open an app and press the button. This generates a full report of accessibility issues and should include web view issues.

Page 6: Accessibility testing announcements from Google IO 2015

Pressing the test button triggers a full report.This is not yet available. I don’t know if you can export the report. I believe it can detect errors within a web view.