Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/applitools/example-selenium-csharp-nunit
Applitools Example: Selenium in C# with NUnit
https://github.com/applitools/example-selenium-csharp-nunit
applitools applitools-example applitools-eyes applitools-tutorial csharp dotnet execution-cloud nunit selenium selenium-webdriver test-automation tutorial ultrafast-grid visual-testing webdriver
Last synced: about 1 month ago
JSON representation
Applitools Example: Selenium in C# with NUnit
- Host: GitHub
- URL: https://github.com/applitools/example-selenium-csharp-nunit
- Owner: applitools
- License: apache-2.0
- Created: 2019-04-01T22:55:36.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2024-03-07T10:11:39.000Z (10 months ago)
- Last Synced: 2024-04-14T04:52:37.904Z (8 months ago)
- Topics: applitools, applitools-example, applitools-eyes, applitools-tutorial, csharp, dotnet, execution-cloud, nunit, selenium, selenium-webdriver, test-automation, tutorial, ultrafast-grid, visual-testing, webdriver
- Language: C#
- Homepage: https://applitools.com/tutorials/quickstart/web/selenium/csharp/nunit
- Size: 107 KB
- Stars: 0
- Watchers: 8
- Forks: 9
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Applitools Example: Selenium in C# with NUnit
This is the example project for the [Selenium C# NUnit tutorial](https://applitools.com/tutorials/quickstart/web/selenium/csharp/nunit).
It shows how to start automating visual tests
with [Applitools Eyes](https://applitools.com/platform/eyes/)
and using [Selenium WebDriver](https://www.selenium.dev/) in C#.It uses:
* [C#](https://learn.microsoft.com/en-us/dotnet/csharp/) as the programming language
* [Selenium WebDriver](https://www.selenium.dev/) for browser automation
* [Google Chrome](https://www.google.com/chrome/downloads/) as the local browser for testing
* [NuGet](https://www.nuget.org/) for dependency management
* [NUnit](https://nunit.org/) as the core test framework
* [Applitools Eyes](https://applitools.com/platform/eyes/) for visual testingIt can also run tests with:
* [Applitools Ultrafast Grid](https://applitools.com/platform/ultrafast-grid/) for cross-browser execution
* [Applitools Execution Cloud](https://applitools.com/platform/execution-cloud/) for self-healing remote WebDriver sessionsTo run this example project, you'll need:
1. An [Applitools account](https://auth.applitools.com/users/register), which you can register for free.
2. A good C# editor, such as [Microsoft Visual Studio](https://visualstudio.microsoft.com/)
or [Visual Studio Code](https://code.visualstudio.com/docs/languages/csharp).
3. The [.NET 7](https://dotnet.microsoft.com/en-us/download/dotnet/7.0) SDK (which may come bundled with Visual Studio).
4. An up-to-date version of [Google Chrome](https://www.google.com/chrome/downloads/).
5. A corresponding version of [ChromeDriver](https://chromedriver.chromium.org/downloads).The main test case is [`AcmeBankTest.cs`](Applitools.Example.Tests/AcmeBankTest.cs).
By default, the project will run tests with Ultrafast Grid but not Execution Cloud.
You can change these settings in the test class.To execute tests, set the `APPLITOOLS_API_KEY` environment variable
to your [account's API key](https://applitools.com/tutorials/guides/getting-started/registering-an-account).You can run the tests through Test Explorer in Visual Studio,
or you can run tests from the command line using the following `dotnet` commands:```
dotnet build
dotnet test
```**For full instructions on running this project, take our
[Selenium C# NUnit tutorial](https://applitools.com/tutorials/quickstart/web/selenium/csharp/nunit)!**