PDF file test with Nunit

20 views
Skip to first unread message

ShilpaRaju

unread,
Feb 9, 2012, 2:47:49 AM2/9/12
to NUnit-Discuss
Hi

I have written code in Csharp using openqa.selenium API
Scenario : when I click on the Link . In the same page Pdf file is
downloaded .

When I run this test in Nunit . after Pdf page is downloded "Unhandled
expected has occured in application " message is displayed and I need
to close Nunit complete to run my test.

Nunit version 2.5.5


Charlie Poole

unread,
Feb 9, 2012, 10:10:25 AM2/9/12
to nunit-...@googlegroups.com
Is a stacktrace supplied? See Tools ! Exception Details...

Charlie

> --
> You received this message because you are subscribed to the Google Groups "NUnit-Discuss" group.
> To post to this group, send email to nunit-...@googlegroups.com.
> To unsubscribe from this group, send email to nunit-discus...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/nunit-discuss?hl=en.
>

ShilpaRaju

unread,
Feb 9, 2012, 9:08:06 PM2/9/12
to NUnit-Discuss
Hi charlie

thanks so much for reply

I dont see any Stacktrace in tools Expection Details .

Let me know I have perform some other steps
> > For more options, visit this group athttp://groups.google.com/group/nunit-discuss?hl=en.- Hide quoted text -
>
> - Show quoted text -

ShilpaRaju

unread,
Feb 9, 2012, 9:41:36 PM2/9/12
to NUnit-Discuss
************** Exception Text **************
System.Net.Sockets.SocketException: No connection could be made
because the target machine actively refused it 127.0.0.1:2212

Server stack trace:
at System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot,
SocketAddress socketAddress)
at System.Net.Sockets.Socket.Connect(EndPoint remoteEP)
at
System.Runtime.Remoting.Channels.RemoteConnection.CreateNewSocket(EndPoint
ipEndPoint)
at
System.Runtime.Remoting.Channels.RemoteConnection.CreateNewSocket()
at System.Runtime.Remoting.Channels.RemoteConnection.GetSocket()
at System.Runtime.Remoting.Channels.SocketCache.GetSocket(String
machinePortAndSid, Boolean openNew)
at
System.Runtime.Remoting.Channels.Tcp.TcpClientTransportSink.SendRequestWithRetry(IMessage
msg, ITransportHeaders requestHeaders, Stream requestStream)
at
System.Runtime.Remoting.Channels.Tcp.TcpClientTransportSink.ProcessMessage(IMessage
msg, ITransportHeaders requestHeaders, Stream requestStream,
ITransportHeaders& responseHeaders, Stream& responseStream)
at
System.Runtime.Remoting.Channels.BinaryClientFormatterSink.SyncProcessMessage(IMessage
msg)

Exception rethrown at [0]:
at
System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage
reqMsg, IMessage retMsg)
at
System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData&
msgData, Int32 type)
at NUnit.Core.TestRunner.get_Running()
at NUnit.Core.ProxyTestRunner.get_Running()
at NUnit.Util.TestLoader.get_Running()
at NUnit.Gui.NUnitForm.get_IsTestRunning()
at NUnit.Gui.NUnitForm.fileMenu_Popup(Object sender, EventArgs e)
at System.Windows.Forms.MenuItem.OnPopup(EventArgs e)
at System.Windows.Forms.MenuItem.OnInitMenuPopup(EventArgs e)
at System.Windows.Forms.MenuItem._OnInitMenuPopup(EventArgs e)
at System.Windows.Forms.Menu.ProcessInitMenuPopup(IntPtr handle)
at System.Windows.Forms.Form.WmInitMenuPopup(Message& m)
at System.Windows.Forms.Form.WndProc(Message& m)
at
System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at
System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32
msg, IntPtr wparam, IntPtr lparam)


this is expection iam getting
> > > For more options, visit this group athttp://groups.google.com/group/nunit-discuss?hl=en.-Hide quoted text -
>
> > - Show quoted text -- Hide quoted text -

Charlie Poole

unread,
Feb 9, 2012, 10:14:02 PM2/9/12
to nunit-...@googlegroups.com
OK, that exception indicates that the test was being run in a separate
process under nunit-agent and the process terminated. Some exception
in your test may have caused the process to terminate, but we don't see
any information about that. If you enable internal trace in the settings, you
may be able to find the actual error that led to terminating the process.

Charlie

Reply all
Reply to author
Forward
0 new messages