This is sample Test Automation framework designed using Selenium WebDriver, NUnit and C#. And in this framework we will see some basic working examples for learning.
* This automation framework is designed using NUnit.
* C# is used as programming language.
* Reporting is implemented using `` npm module. This generates the report in html. Also it captures the screenshots.
* Download and install Chrome or Firefox browser.
* Download and install [.NET 5.0](https://dotnet.microsoft.com/download/dotnet/5.0)
* Download and install any Text Editor like Visual Code
* Install Extension in Visual Code
* [PackSharp](https://marketplace.visualstudio.com/items?itemName=elsnoman.packsharp)
* [C#](https://marketplace.visualstudio.com/items?itemName=ms-dotnettools.csharp)
* Clone the repository into a folder
* `PackSharp: Create New Project` > select `Class Library` > call the Project "Framework"
* `PackSharp: Create New Project` > select `Class Library` > call the Project "Royale"
* `PackSharp: Create New Project` > select `NUnit 3 Test Project` > call the Project "Royale.Tests"
* `PackSharp: Create New Project` > select `Solution File` > call the Project "StatsRoyale"
NOTE: The Solution (.sln) file will manage the Project (.csproj) files while the Project files handle their own packages and dependencies. As you add things, this is all handled for you! Very cool.
* `$ dotnet sln add Framework`
* `$ dotnet sln add Royale`
* `$ dotnet sln add Royale.Tests`
* `$ dotnet build`
* `$ dotnet clean`
* `$ dotnet test`
* This will run all the tests, but you only have one right now. It should pass.
* Check version of docker `docker --version`
* Go to `http://hub.docker.com/`
* Search for selenium images
* Pull images
* `docker pull selenium/hub`
* `docker pull selenium/chrome`
* `docker pull selenium/chrome-debug`
* `docker pull selenium/firefox`
* `docker pull selenium/firefox-debug`
* Check all the version in your system `docker images`
* `docker-compose up -d`
* `docker ps -a`
* `http://localhost:4444/grid/console`
* `docker-compose restart`
* `docker-compose down`
* https://codemag.com/Article/2009101/Interactive-Unit-Testing-with-.NET-Core-and-VS-Code