Skip to content

Instantly share code, notes, and snippets.

@LoganBarnett
Created January 11, 2011 20:38
Show Gist options
  • Save LoganBarnett/775082 to your computer and use it in GitHub Desktop.
Save LoganBarnett/775082 to your computer and use it in GitHub Desktop.
Test method HX.Web.Test.ContactTest.CreateContactTest threw exception:
OpenQA.Selenium.WebDriverException: Unexpected error. System.Net.WebException: Unable to connect to the remote server ---> System.Net.Sockets.SocketException: No connection could be made because the target machine actively refused it 172.21.38.5:7055
at System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot, SocketAddress socketAddress)
at System.Net.ServicePoint.ConnectSocketInternal(Boolean connectFailure, Socket s4, Socket s6, Socket& socket, IPAddress& address, ConnectSocketState state, IAsyncResult asyncResult, Int32 timeout, Exception& exception)
--- End of inner exception stack trace ---
at System.Net.HttpWebRequest.GetRequestStream(TransportContext& context)
at System.Net.HttpWebRequest.GetRequestStream()
at OpenQA.Selenium.Remote.HttpCommandExecutor.Execute(Command commandToExecute) in C:\Users\remi\projects\selenium\remote\client\src\csharp\webdriver-remote-client\HttpCommandExecutor.cs:line 76
at OpenQA.Selenium.Firefox.Internal.ExtensionConnection.Execute(Command commandToExecute) in C:\Users\remi\projects\selenium\firefox\src\csharp\webdriver-firefox\Internal\ExtensionConnection.cs:line 96
at OpenQA.Selenium.Remote.RemoteWebDriver.Execute(DriverCommand driverCommandToExecute, Dictionary`2 parameters) in C:\Users\remi\projects\selenium\remote\client\src\csharp\webdriver-remote-client\RemoteWebDriver.cs:line 729
TestCleanup method HX.Web.Test.ContactTest.TestCleanup threw exception. OpenQA.Selenium.WebDriverException: OpenQA.Selenium.WebDriverException: Unexpected error. System.Net.WebException: Unable to connect to the remote server ---> System.Net.Sockets.SocketException: No connection could be made because the target machine actively refused it 172.21.38.5:7055
at System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot, SocketAddress socketAddress)
at System.Net.ServicePoint.ConnectSocketInternal(Boolean connectFailure, Socket s4, Socket s6, Socket& socket, IPAddress& address, ConnectSocketState state, IAsyncResult asyncResult, Int32 timeout, Exception& exception)
--- End of inner exception stack trace ---
at System.Net.HttpWebRequest.GetRequestStream(TransportContext& context)
at System.Net.HttpWebRequest.GetRequestStream()
at OpenQA.Selenium.Remote.HttpCommandExecutor.Execute(Command commandToExecute) in C:\Users\remi\projects\selenium\remote\client\src\csharp\webdriver-remote-client\HttpCommandExecutor.cs:line 76
at OpenQA.Selenium.Firefox.Internal.ExtensionConnection.Execute(Command commandToExecute) in C:\Users\remi\projects\selenium\firefox\src\csharp\webdriver-firefox\Internal\ExtensionConnection.cs:line 96
at OpenQA.Selenium.Remote.RemoteWebDriver.Execute(DriverCommand driverCommandToExecute, Dictionary`2 parameters) in C:\Users\remi\projects\selenium\remote\client\src\csharp\webdriver-remote-client\RemoteWebDriver.cs:line 729.
at OpenQA.Selenium.Remote.RemoteWebDriver.UnpackAndThrowOnError(Response errorResponse) in C:\Users\remi\projects\selenium\remote\client\src\csharp\webdriver-remote-client\RemoteWebDriver.cs: line 919
at OpenQA.Selenium.Remote.RemoteWebDriver.Execute(DriverCommand driverCommandToExecute, Dictionary`2 parameters) in C:\Users\remi\projects\selenium\remote\client\src\csharp\webdriver-remote-client\RemoteWebDriver.cs: line 739
at OpenQA.Selenium.Remote.RemoteWebDriver.StartSession(ICapabilities desiredCapabilities) in C:\Users\remi\projects\selenium\remote\client\src\csharp\webdriver-remote-client\RemoteWebDriver.cs: line 691
at OpenQA.Selenium.Remote.RemoteWebDriver..ctor(ICommandExecutor commandExecutor, ICapabilities desiredCapabilities) in C:\Users\remi\projects\selenium\remote\client\src\csharp\webdriver-remote-client\RemoteWebDriver.cs: line 60
at OpenQA.Selenium.Firefox.FirefoxDriver..ctor(FirefoxBinary binary, FirefoxProfile profile) in C:\Users\remi\projects\selenium\firefox\src\csharp\webdriver-firefox\FirefoxDriver.cs: line 123
at OpenQA.Selenium.Firefox.FirefoxDriver..ctor() in C:\Users\remi\projects\selenium\firefox\src\csharp\webdriver-firefox\FirefoxDriver.cs: line 101
at Mara.Drivers.WebDriver.InstantiateLocalWebDriver(String browserName) in C:\Users\lbarnett\Projects\Mara\Mara.Drivers.WebDriver\WebDriver.cs: line 178
at Mara.Drivers.WebDriver.InstantiateWebDriver() in C:\Users\lbarnett\Projects\Mara\Mara.Drivers.WebDriver\WebDriver.cs: line 167
at Mara.Drivers.WebDriver.get_webdriver() in C:\Users\lbarnett\Projects\Mara\Mara.Drivers.WebDriver\WebDriver.cs: line 152
at Mara.Drivers.WebDriver.Visit(String path) in C:\Users\lbarnett\Projects\Mara\Mara.Drivers.WebDriver\WebDriver.cs: line 253
at Mara.Mara.Visit(String path) in C:\Users\lbarnett\Projects\Mara\Mara\MaraInstance.cs: line 72
at Mara.MaraTest.Visit(String path) in C:\Users\lbarnett\Projects\Mara\Mara.UnitTesting\MaraUnitTesting.cs: line 44
at HX.Web.Test.IntegrationTest.Login() in IntegrationTest.cs: line 20
at HX.Web.Test.ContactTest.<>c__DisplayClassf.<CreateContactTest>b__e(UserMailbox mailbox) in ContactTest.cs: line 54
at HX.Web.Test.IntegrationTest.UsingMailbox(String type, Organization organization, ExchangeObjectStatus status, Action`1 action) in IntegrationTest.cs: line 263
at HX.Web.Test.IntegrationTest.UsingMailbox(String type, Organization organization, Action`1 action) in IntegrationTest.cs: line 213
at HX.Web.Test.ContactTest.<CreateContactTest>b__d(Organization organization) in ContactTest.cs: line 52
at HX.Web.Test.IntegrationTest.UsingOrganization(String organizationName, Action`1 action) in IntegrationTest.cs: line 208
at HX.Web.Test.ContactTest.CreateContactTest() in ContactTest.cs: line 49
TestCleanup Stack Trace
at OpenQA.Selenium.Remote.RemoteWebDriver.UnpackAndThrowOnError(Response errorResponse) in C:\Users\remi\projects\selenium\remote\client\src\csharp\webdriver-remote-client\RemoteWebDriver.cs: line 919
at OpenQA.Selenium.Remote.RemoteWebDriver.Execute(DriverCommand driverCommandToExecute, Dictionary`2 parameters) in C:\Users\remi\projects\selenium\remote\client\src\csharp\webdriver-remote-client\RemoteWebDriver.cs: line 739
at OpenQA.Selenium.Remote.RemoteWebDriver.StartSession(ICapabilities desiredCapabilities) in C:\Users\remi\projects\selenium\remote\client\src\csharp\webdriver-remote-client\RemoteWebDriver.cs: line 691
at OpenQA.Selenium.Remote.RemoteWebDriver..ctor(ICommandExecutor commandExecutor, ICapabilities desiredCapabilities) in C:\Users\remi\projects\selenium\remote\client\src\csharp\webdriver-remote-client\RemoteWebDriver.cs: line 60
at OpenQA.Selenium.Firefox.FirefoxDriver..ctor(FirefoxBinary binary, FirefoxProfile profile) in C:\Users\remi\projects\selenium\firefox\src\csharp\webdriver-firefox\FirefoxDriver.cs: line 123
at OpenQA.Selenium.Firefox.FirefoxDriver..ctor() in C:\Users\remi\projects\selenium\firefox\src\csharp\webdriver-firefox\FirefoxDriver.cs: line 101
at Mara.Drivers.WebDriver.InstantiateLocalWebDriver(String browserName) in C:\Users\lbarnett\Projects\Mara\Mara.Drivers.WebDriver\WebDriver.cs: line 178
at Mara.Drivers.WebDriver.InstantiateWebDriver() in C:\Users\lbarnett\Projects\Mara\Mara.Drivers.WebDriver\WebDriver.cs: line 167
at Mara.Drivers.WebDriver.get_webdriver() in C:\Users\lbarnett\Projects\Mara\Mara.Drivers.WebDriver\WebDriver.cs: line 152
at Mara.Drivers.WebDriver.Close() in C:\Users\lbarnett\Projects\Mara\Mara.Drivers.WebDriver\WebDriver.cs: line 205
at Mara.Mara.set_Driver(IDriver value) in C:\Users\lbarnett\Projects\Mara\Mara\MaraStatic.cs: line 96
at HX.Web.Test.ContactTest.TestCleanup() in ContactTest.cs: line 43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment