Skip to content
This repository has been archived by the owner on Apr 13, 2024. It is now read-only.

dfberry/SpecFlowNUnitSeleniumExample

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Required Additional libraries/tools:
.FireFox - used both to capture Selenium tests and used by Selenium to run tests
.Specflow - full install
.NUnit - full install
.Selenium - webdriver and ide, nuget didn't have support dll

This Windows Visual Studio 2010 solution contains 3 class library projects. 
.Calculator library
.Calculator.spec specifications
.MVCCalculator mvc .net csharp website

I couldn't get this to run from inside Visual Studio but it does run the test from NUnit. 

Assuming you could build the solution, here is how to run the tests:
. open NUnit IDE (do not try to run inside Visual Studio)
. in NUnit, "File -> Open Project" and select the Calculator.spec.dll file. The NUnit ide should show the tests it found in the left column.
. in NUnit, "Run" in the top right column. 
. FireFox opens and test runs, FireFox closes.
. in NUnit, review test results.


[Note to Self: 

. Hit this interop compiler issue: http://stackoverflow.com/questions/8156488/what-does-reference-was-created-to-embedded-interop-assembly-mean

. Port number hardcoded into Calculator.spec/StepDefinition1.cs as 53113

.selenium article: http://alensiljak.blogspot.com/2011/07/specflow-and-selenium-quick-start.html

.code has a bug on purpose

]

dina@berryintl.com

About

Test MVC web page functionality via a SpecFlow Feature scenario. Test framework is NUnit. Web framework is Selenium.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published