Hello, I am trying to use Selenium with nspec and I am receiving the following message when running:
PM> NSpecRunner.exe .\Specs\bin\Debug\Specs.dll
describe google
before all
given i want to search at google
should have Google Search button at the home page - FAILED - collection does not contain an item it should., Expected: True, But was: False
when submitting with "kittens" in the search box
should have "q=kittens" on the query string - FAILED - Could not load file or assembly 'System.resources, Version=4.0.0.0, Culture=pt-BR, PublicKeyToken=b77a5c5619
34e089' or one of its dependencies. O sistema não pode encontrar o arquivo especificado.
**** FAILURES ****
nspec. describe google. given i want to search at google. when submitting with "kittens" in the search box. should have "q=kittens" on the query string.
Could not load file or assembly 'System.resources, Version=4.0.0.0, Culture=pt-BR, PublicKeyToken=b77a5c561934e089' or one of its dependencies. O sistema não pode encont
rar o arquivo especificado.
at System.Reflection.RuntimeAssembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark
, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
at System.Reflection.RuntimeAssembly.InternalGetSatelliteAssembly(String name, CultureInfo culture, Version version, Boolean throwOnFileNotFound, StackCrawlMark& stac
kMark)
at System.Resources.ManifestBasedResourceGroveler.GetSatelliteAssembly(CultureInfo lookForCulture, StackCrawlMark& stackMark)
at System.Resources.ManifestBasedResourceGroveler.GrovelForResourceSet(CultureInfo culture, Dictionary`2 localResourceSets, Boolean tryParents, Boolean createIfNotExi
sts, StackCrawlMark& stackMark)
at System.Resources.ResourceManager.InternalGetResourceSet(CultureInfo requestedCulture, Boolean createIfNotExists, Boolean tryParents, StackCrawlMark& stackMark)
at System.Resources.ResourceManager.InternalGetResourceSet(CultureInfo culture, Boolean createIfNotExists, Boolean tryParents)
at System.Resources.ResourceManager.GetString(String name, CultureInfo culture)
at System.SR.GetString(String name)
at System.Net.NetRes.GetWebStatusString(String Res, WebExceptionStatus Status)
at System.Net.HttpWebRequest.Abort(Exception exception, Int32 abortState)
at System.Net.HttpWebRequest.SetResponse(CoreResponseData coreResponseData)
at System.Net.HttpWebRequest.CheckWriteSideResponseProcessing()
at System.Net.ConnectStream.ProcessWriteCallDone(ConnectionReturnResult returnResult)
at System.Net.HttpWebRequest.WriteCallDone(ConnectStream stream, ConnectionReturnResult returnResult)
at System.Net.ConnectStream.CallDone(ConnectionReturnResult returnResult)
at System.Net.ConnectStream.ResubmitWrite(ConnectStream oldStream, Boolean suppressWrite)
at System.Net.HttpWebRequest.EndWriteHeaders_Part2()
at System.Net.HttpWebRequest.EndWriteHeaders(Boolean async)
at System.Net.HttpWebRequest.WriteHeadersCallback(WebExceptionStatus errorStatus, ConnectStream stream, Boolean async)
at System.Net.ConnectStream.WriteHeaders(Boolean async)
at System.Net.HttpWebRequest.EndSubmitRequest()
at System.Net.HttpWebRequest.CheckDeferredCallDone(ConnectStream stream)
at System.Net.HttpWebRequest.GetResponse()
at OpenQA.Selenium.Remote.HttpCommandExecutor.CreateResponse(WebRequest request)
at OpenQA.Selenium.Remote.HttpCommandExecutor.Execute(Command commandToExecute)
at OpenQA.Selenium.Firefox.Internal.ExtensionConnection.Execute(Command commandToExecute)
at OpenQA.Selenium.Remote.RemoteWebDriver.Execute(DriverCommand driverCommandToExecute, Dictionary`2 parameters)
at OpenQA.Selenium.Remote.RemoteWebDriver.FindElement(String mechanism, String value)
at OpenQA.Selenium.Remote.RemoteWebDriver.FindElementById(String id)
at Specs.describe_google.<given_i_want_to_search_at_google>b__4() in C:\Users\amadeus\Documents\Visual Studio 2010\Projects\NSpec\Specs\google_spec.cs:line 30
nspec. describe google. given i want to search at google. should have Google Search button at the home page.
collection does not contain an item it should., Expected: True, But was: False
at Specs.describe_google.<given_i_want_to_search_at_google>b__1() in C:\Users\amadeus\Documents\Visual Studio 2010\Projects\NSpec\Specs\google_spec.cs:line 24
2 Examples, 2 Failed, 0 Pending
Using before_each instead of before works....