This project contains automated tests for the WebApplication project using Selenium WebDriver and NUnit.
Automation.Testing.mp4
- C#
- ASP .NET Framework
- NUnit
- Selenium WebDriver
- Clone this repository.
- Navigate to the WebApplication directory.
- Open the solution in Visual Studio or your preferred IDE.
- Ensure that the WebApplication project is running on http://localhost:5175.
- Navigate to the WebAppTest directory.
- Run the tests using NUnit or your preferred test runner.
- Install .NET SDK:
https://dotnet.microsoft.com/en-us/download
- Clone the repository:
git clone https://github.com/Govind516/WebApp-Test-Automation.git
- Navigate to the WebAppTests directory:
cd WebAppTests - Install the Dependencies
dotnet add package NUnit dotnet add package NUnit3TestAdapter dotnet add package Microsoft.NET.Test.Sdk dotnet add package Selenium.WebDriver dotnet add package Selenium.WebDriver.ChromeDriver dotnet add package DotNetSeleniumExtras.WaitHelpers dotnet add package Selenium.Support
-
Start the development server:
cd WebApplication dotnet run -
Open your browser and visit
http://localhost:5175to see the website in action -
Perform the Test:
cd WebAppTests dotnet test
- Verify that the web page loads successfully.
- Enter the name, email, and phone in the input fields and submit the form.
- Submit the form with all fiels filled.
- Verify that the welcome message is displayed correctly with the entered name.
- Simulate a delay of 3 seconds and verify the welcome message.
- Perform the for test without entering optional fields.