This project presents automated UI-tests for website https://av.by/. The project was completed using the following tecnology stacks:
- Chrome WebDriver.
- Selenium
- NUnit
- C#
The project is made in Microsoft Visual Studio Community 2019 Version 16.11.2. Programming language C#.
For running test you neeed following steps:
- https://github.com/igor-kadach/ui-tests-csharp-selenium-nunit - сlone the project to your repository.
- Selenium.WebDriver.ChromeDriver v.104.0.5112.7900 - download from NuGet Package Manager and install in the copied project.
- Seleium.WebDriver v.4.4.0 - download from NuGet Package Manager and install in the copied project.
- NUnit v.3.13.1 - download from NuGet Package Manager and install in the copied project.
Tests executed from UnitTest1.cs. in package "Tests". May need to be added following usings:
- using NUnit.Framework;
- using OpenQA.Selenium;
- using OpenQA.Selenium.Chrome;
- using System.Threading;
- using UITests.PageObjects;
For running CheckUploadPhotoTest test you need change constant named filePath which situated in TestDatas class. Assign a value to this constant your path, where situated picture what you want upload to site. For example: public const string filePath = "C:\forTest.jpg";
CheckUploadPhotoTest()
For running test CheckUploadPhotoTest() you should have any picture name forTest.jpg located in "C:\"; → C:\forTest.jpg
to be continued...