Install with Visual Studio
Leverage the integration options that exist within Visual Studio
There are several prerequisites for a successful installation of axe DevTools. The page highlighting your installation options lists them.
Installing and axe DevTools in Visual Studio requires you to extend NuGet to include Deque's Agora artifact repository.
Step 1: Open your project in Visual Studio
Step 2: Open the package source options via:
Tools → Options → NuGet Package Manager → Package Sources and select
+ to add a new Package source:
Step 3: Select the new Package Source in the Available package sources: list and then use the
... button to populate the new Package source fields:
Step 4: Select
Update to save the new package source details. Select
OK to dismiss the options dialog.
Your Deque representative will provide you with Agora login credentials. To access your API key, log into Agora and click on the welcome banner in the top right corner. From there, you'll be able to copy your API key.
Step 5: Right click on
Dependencies in the the solution explorer to display the context menu and select
Manage NuGet Packages:
Step 6: Select
Artifactory from the package source drop-down list. The Connect to agora.dequecloud.com login modal displays. Populate the username field with the email address you used to log in to Agora and the API key you copied as the password. Check the remember my password box and select ok to complete the login process:
Step 7: Switch to the browse tab when you are logged in to Artifactory. Select the axe-devtools-selenium package
Step 8: Select Install and then select OK to accept the preview changes listed in the modal that displays.
The NuGet output panel displays the installation status of the package. Expand the packages folder in the solution explorer to verify successful installation of the axe-devtools-selenium package:
Step 7: Close the NugGet panel. Select your project in the solution explorer and access the context menu and select
Step 8: Select your project in the solution explorer, open the context menu, and select run tests to run all the tests in your project:
Visual Studio generates a number of files specific to the current user upon building a project. These files are visible in the windows file explorer where the project and solution are saved. Generated files include
obj folders in the project folder, and a
\Users\username\AppData\Roaming\NuGet\NuGet.config file. There is no need to store the generated files in source repository, especially if the new project is intended for use by multiple users to test your project.
Run the tests in your Visual Studio project by selecting the project name in the solution explorer and accessing the context menu to select run tests.