When using Spec Flow and running a feature file that has implemented code behind it, I am seeing this:
Techtalk.Specrun.PendingTestException: No matching step definition found for one or more steps
I have code behind each of the features and regardless of what I try I keep getting a pending output.
e.g.
Given I browse to Url "http;//www.google.co.uk"
-> No matching step found for the step definition
[Given(@"I browse to Url""(.*)""")]
Public void GivenIBrowseToUrl(String p0)
{
ScenarioContext.Current.Pending();
}
However the code I have implemented for this feature is as follows:
using System;
using System.Diagnostics;
using TechTalk.SpecFlow;
namespace UserJourney
{
[Binding]
public class PhoneJourneySteps
{
[Given(@"I browser to Url ""(.*)""")]
public void GivenIBrowserToUrl(string url)
{
Process.Start(url);
}
}
}