https://github.com/nakov/data-driven-tests-nunit-selenium
Data-Driven Tests with C#, NUnit and Selenium
https://github.com/nakov/data-driven-tests-nunit-selenium
Last synced: 26 days ago
JSON representation
Data-Driven Tests with C#, NUnit and Selenium
- Host: GitHub
- URL: https://github.com/nakov/data-driven-tests-nunit-selenium
- Owner: nakov
- Created: 2021-02-09T19:53:40.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2021-02-09T19:59:15.000Z (over 5 years ago)
- Last Synced: 2026-06-15T05:34:32.168Z (26 days ago)
- Language: C#
- Size: 16.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Data-Driven Tests with C#, NUnit and Selenium
Data-Driven Testing == running the same test case with multiple data
This example demonstrates how to write data-driven NUnit tests:
- Parameterized tests with `[TestCase]`
- Excel-based tests: `[TestCaseSource]`
- Data-driven Selenium tests (based on Selenium + `[TestCase]`)
## Code Examples
```cs
[TestCase("BG", "1000", "Sofija")]
[TestCase("BG", "5000", "Veliko Turnovo")]
[TestCase("CA", "M5S", "Toronto")]
[TestCase("GB", "B1", "Birmingham")]
[TestCase("DE", "01067", "Dresden")]
public void TestZippopotamus(
string countryCode, string zipCode, string expectedPlace)
{
...
}
```
## Screenshots
