Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/applitools/example-selenium-csharp-xunit
Applitools Example: Selenium in C# with xUnit.net
https://github.com/applitools/example-selenium-csharp-xunit
applitools applitools-example applitools-eyes applitools-tutorial csharp dotnet execution-cloud selenium selenium-webdriver test-automation testing tutorial ultrafast-grid visual-testing webdriver xunit
Last synced: about 4 hours ago
JSON representation
Applitools Example: Selenium in C# with xUnit.net
- Host: GitHub
- URL: https://github.com/applitools/example-selenium-csharp-xunit
- Owner: applitools
- License: apache-2.0
- Created: 2022-12-30T00:32:37.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2023-06-21T02:14:27.000Z (over 1 year ago)
- Last Synced: 2024-04-14T04:52:37.900Z (7 months ago)
- Topics: applitools, applitools-example, applitools-eyes, applitools-tutorial, csharp, dotnet, execution-cloud, selenium, selenium-webdriver, test-automation, testing, tutorial, ultrafast-grid, visual-testing, webdriver, xunit
- Language: C#
- Homepage: https://applitools.com/tutorials/quickstart/web/selenium/csharp/xunit
- Size: 32.2 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Applitools Example: Selenium in C# with xUnit.net
This is the example project for the [Selenium C# xUnit.net tutorial](https://applitools.com/tutorials/quickstart/web/selenium/csharp/xunit).
It shows how to start automating visual tests
with [Applitools Eyes](https://applitools.com/platform/eyes/)
and [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
* [xUnit.net](https://xUnit.net/) 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# xUnit.net tutorial](https://applitools.com/tutorials/quickstart/web/selenium/csharp/xunit)!**