Software without automated testing is like a fish dinner without a good wine. Or perhaps a solo date. Things that just don’t make sense (at least to me). Software is much to complex for every possible path to be tested every time manually. The power, in my opinion, comes from a collection of automated tests that can be run every time an update or change is made to make sure nothing was accidentally broken.
Believe it or not, this happens. I worked on a web team some years back where we would release a set of features only to break them a couple of releases later. With a large team (as was in this case) and a lot of pressure to get features out quickly, I am surprised it didn’t happen more often. Everyone one the team was bright and hard working, so it wasn’t laziness.
Automated testing (in my opinion) is the surest way to ensure release ready software and should be considered by developers as their best tool and friend. Sadly, it seems like automated testing is an afterthought and not considered a worthy investment of time.
- Download the source code from GitHub (https://github.com/ehelin/TgimbaSeleniumTests)
- Download the TGIMBA code (https://github.com/ehelin/TGIMBA)
- Updated! (3/28/2016)
- Restore Nuget integration
- Install these Nuget projects (http://stackoverflow.com/questions/32651528/cannot-find-webdriverwait-class-in-openqa-selenium-c)
- Set the IntroduceInstabilityByIgnoringProtectedModeSettings property on the InternetExplorerOptions object to true and pass into the constructor of the InternetExplorerDriver (http://stackoverflow.com/questions/7080322/when-using-selenium-webdriver-i-get-the-following-error-using-the-internetexplo)
- Download chrome selenium driver and update the Constructor (http://stackoverflow.com/questions/32651528/cannot-find-webdriverwait-class-in-openqa-selenium-c)
- Start the TGIMBA on local host and then run the TGIMBA Selenium test project.
Please note that you will need Visual Studio 2015, SQL Server (I used 2014) and each of the three browsers installed on your local box with the appropriate settings. I have some videos of earlier tests run using the first post of the TGIMBA Selenium code.
My only regret with Selenium (so far) is that I wasn’t able to translate this to the Windows 8.1 and Windows Phone 8.1 clients I put out. I will revisit this when I put out the Windows 10 and Android clients.