Browsed by
Tag: nUnit 3

The curious case of the missing NUnit3 parameter.

The curious case of the missing NUnit3 parameter.

I had one of those days last week. Three hours spent trying to work out why my code wasn’t behaving: A test parameter was clearly in the applied RunSettings file, but when I tried to call the value from code it never changed from my default value. Why was it hiding from me? The background You know the deal, before logging off I had the work 90% finished. In the morning, I JUST needed to add some configuration to ensure…

Read More Read More

Configuring NUnit 3 to run different tests in each environment.

Configuring NUnit 3 to run different tests in each environment.

A couple of months ago I wrote a post explaining that don’t like to disable tests for a disabled feature in certain environments. I much prefer to switch the expected results and confirm the feature is disabled than simply to not test it. Sometimes however this really isn’t appropriate and you have no choice than to avoid running those tests. Today I’ll have a very quick look at ways to do this with NUnit 3. The options. Use different test…

Read More Read More

Feature switching for release testing.

Feature switching for release testing.

When your cloud deployments do not all have the same features enabled, running the same tests calls will generate different reponses. How can you ensure that the tests for each individual release verifies the expected functionality for that deployment? The problem It is not uncommon to deploy code to production servers that is hidden behind a feature switch. When the moment comes to go live, the configuration is changed to enable the feature. If it is just new functionality, you…

Read More Read More

Starting to build a (new) .net Core PageFactory

Starting to build a (new) .net Core PageFactory

This entry is part 2 of 9 in the series Launching WebDrivers in .NET Core the easy way

I am ridiculously excited to finally be getting back to writing code for this project. In fact I have spent far too long coding, and have left the blogging for a while so I have plenty to catch up on. Episode IV – A new beginning If you followed through my previous posts around building a Selenium WebDriver test framework in Java, you may remember that the last thing that I completed was to get it running cross platform. Anyone…

Read More Read More