Skip to content

esosam/NUnit-Automation-Code-Challenge

Repository files navigation

NUnit-Automation-Code-Challenge

NUnit Automation Code Challenge

Microsoft Test NUnit project | .Net Core 3.1

Demo to create a code challenge solution for testing automation covering the following: C# Using POM and Page Factory NUnit Using a JSON configuration file Use Assertions Using base classes interfaces and abstract class

NuGet pckgs: Selenium WebDriver Selenium WebDriver ChromeDriver Selenium Support NUnit 3 NUnit3Adapter System.Configuration.ConfigurationManager Newtonsoft.Json DotNetSeleniumExtras Microsot.Net.Test.SDK

Automation Steps: Go to https://www.microsoft.com/en-us/ Validate all menu items are present (Office - Windows - Surface - Xbox - Deals - Support) Go to Windows Once in Windows page, click on Windows 10 Menu Print all Elements in the dropdown Go to Search next to the shopping cart Search for Visual Studio Print the price for the 3 first elements listed in Software result list Store the price of the first one Click on the first one to go to the details page Once in the details page, validate both prices are the same Click Add To Cart Verify all 3 price amounts are the same On the # of items dropdown select 20 and validate the Total amount is Unit Price * 20

Authors Esteban Sosa - esosa@edksis.com http://edksis.com/

License this dotNet Project Test Assignment is free and unencumbered public domain software. For more information, see http://unlicense.org/ or the accompanying UNLICENSE file.

I dedicate any and all copyright interest in this software to the public domain. I make this dedication for the benefit of the public at large and to the detriment of my heirs and successors. I intend this dedication to be an overt act of relinquishment in perpetuity of all present and future rights to this software under copyright law.