Mobile SDKs are currently in beta. To learn more about joining the beta program, reach out to our team at beta@levelaccess.com.
On this page:
Overview
Run accessibility tests and review the test results on Android and iOS mobile applications using the Level Access mobile testing SDK and send the results to the platform.
Run the tests and submit your results
1. Test for assertions
To generate test results compatible with the Level Access Platform, you need to run all tests using the runAllTestsForAssertions() method. This method will return an array of assertion objects, which represent the results of the accessibility tests.
2. Get the reporting service
To submit test results to the Level Access Platform, retrieve an instance of the LevelAccessPlatformReportingService from Continuum. This service will allow you to manage scan sessions and submit your test results.
LevelAccessPlatformReportingService reportingService =
Continuum.LevelAccessPlatformReportingService;
3. Open a scan session
Before submitting any test results, you must open an active scan session. This can be done by calling the openScanSession() method on the reporting service instance and providing a session name.
reportingService.openScanSession("Your Scan Session Name");
4. Submit your results to the platform
After opening a scan session, submit the test results (Assertion objects) to the Level Access Platform by calling the submit() method on the reporting service. The results will be automatically tied to the URL of the current mobile app, and additional metadata such as the page title and screen dimensions will be recorded.
Assertion[] assertions = Continuum.getAssertions();
reportingService.submit(assertions);
5. Complete the scan session
When testing is complete, you can finalize the process by calling completeScanSession() on the reporting service instance. This ensures the scan session is properly closed.
reportingService.completeScanSession();
Comments
0 comments
Please sign in to leave a comment.