- Visual Studio 2019 or Visual Studio 2017 with .NET Framework 4.7.2
- MS Edge Browser v83.0.478.45
- Chrome Browser v83
- Firefox Browser > v60
- Clone the repository
git clone https://github.com/kpmck/ApplitoolsHackathon_2020.git
- Set Applitools API Key one of two ways:
- Hard-code it on line 16 (
config.SetApiKey("");
) in the ApplitoolsHackathon_2020\Applitools.Tests\base\ApplitoolsBaseTestClass.cs class - Create an environment variable key APPLITOOLS_API_KEY and make its value your Applitools API key.
- Hard-code it on line 16 (
- Navigate to the ApplitoolsHackathon_2020 directory and open ApplitoolsHackathon_2020.sln
- You may need to Restore NuGet packages.
- Build the solution. Close Visual Studio.
- Navigate to the ApplitoolsHackathon_2020 directory.
- Run TestRunner.bat file.
- When it prompts you, indicate which version and method you wish to run the test:
- mod_1 => Modern tests will be executed against version 1 of the site
- mod_2 => Modern tests will be executed against version 2 of the site
- trad_1 => Traditional tests will be executed against version 1 of the site
- trad_2 => Traditional tests will be executed against version 2 of the site
- NUnit console runner will execute tests and indicate completion. Traditional tests will output to their respective results .txt file in the ApplitoolsHackathon_2020 directory.
- Navigate to the ApplitoolsHackathon_2020 directory.
- Open Visual Studio and execute desired tests in Visual Studio's Test Explorer. Each test is smart enough to determine which site it should run against!
- NOTE: Only traditional tests will output to their respective results .txt file in the ApplitoolsHackathon_2020 directory.