Upload Results
Once the scan has finished it is automatically published to Axe Developer Hub.
const axeSettings = {
apiKey: "<DEQUE_APIKEY>",
projectId: "<DEQUE_PROJECT_ID>"
}
const result = await driver.execute('mobile: axeScan', axeSettings)You can disable posting scan results to reduce the number of network requests and improve scan speed. The default value of axeUploadResults is true. Set this value to false to disable the upload.
const axeSettings = {
apiKey: "<DEQUE_APIKEY>",
projectId: "<DEQUE_PROJECT_ID>",
axeUploadResults: false
}
const result = await driver.execute('mobile: axeScan', axeSettings)As part of the transition to Axe Developer Hub, the settings parameter uploadToDashboard is being deprecated. This boolean value was passed to mobile: axeScan within the axeSettings object.
The axeSettings object is now passed to mobile: axeStartSession, and it is here that you can set the value for axeUploadResults. The default value is true when your session is started with a projectId. If you want to disable posting scan results, set this value to false once at the start of a scan session rather than setting it in individual mobile: axeScan calls.
If you have existing mobile: axeScan calls in your tests where you have set a value for uploadToDashboard, this may not work as expected. If a session was started with a projectId and is uploading, a single scan cannot opt out.
About Axe Developer Hub
Axe Developer Hub is a central location where your whole team can view and manage accessibility issues found in your app.
From Axe Developer Hub you are able to:
- Find results for accessibility scans
- Share a scan/group of scans
- Decide which results matter most and adapt your tests
Learn more about Axe Developer Hub.
Share Results with Your Team
View, manage, and share results from Axe Developer Hub, where test runs will already be grouped by project ID. To create and share a direct link to your results in Developer Hub, you can follow this pattern - adding your own project ID:
https://axe.deque.com/axe-watcher/projects/<projectId>This takes you to a page where all recent runs for that projectId are listed.
What's Next?
At this point, you can navigate to the next screen in your app and take another scan.
