getgauge / gauge-csharp

Csharp runner for Gauge
https://gauge.org
GNU General Public License v3.0
33 stars 21 forks source link

MethodScanner Steps Fetch failed, Failed to connect to Gauge API #122

Open jacobbarsoe opened 6 years ago

jacobbarsoe commented 6 years ago

I don't know if this is a bug in gauge gauge-csharp or some critical software that are conflicting here.

Perhaps some of you guys have seen a similar problem or can guide in what direction to debug my setup.

Thanks in advance.

Br, Jacob

Expected behavior

Test should execute steps

Actual behavior

Done building project "Test.csproj". snippet: Server stack trace: at System.ThrowHelper.ThrowArgumentException(ExceptionResource resource) at System.Collections.Generic.Dictionary2.Insert(TKey key, TValue value, Boolean add) at System.Collections.Generic.Dictionary2.Add(TKey key, TValue value) at Gauge.CSharp.Runner.Sandbox.GetStepMethods() in C:\Program Files (x86)\Go Agent\pipelines\Csharp-Package\gauge-csharp\Runner\Sandbox.cs:line 125 at System.Runtime.Remoting.Messaging.StackBuilderSink._PrivateProcessMessage(IntPtr md, Object[] args, Object server, Object[]& outArgs) at System.Runtime.Remoting.Messaging.StackBuilderSink.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 Gauge.CSharp.Runner.ISandbox.GetStepMethods() at Gauge.CSharp.Runner.MethodScanner.GetStepRegistry() in C:\Program Files (x86)\Go Agent\pipelines\Csharp-Package\gauge-csharp\Runner\MethodScanner.cs:line 48

MethodScanner Steps Fetch failed, Failed to connect to Gauge API

Steps to reproduce

run a test

Gauge version

Gauge version: 0.9.4 Commit Hash: c96bdbb

Plugins

csharp (0.10.1) html-report (4.0.2) java (0.6.5) screenshot (0.0.1) spectacle (0.1.2)

nehashri commented 6 years ago

@jacobbarsoe Looking at the stacktrace, it is hard to find out cause of the issue. If possible, can you share a sample project to reproduce the above error?

jacobbarsoe commented 6 years ago

Thank you. This was exactly the input I needed. I recently added a new class that was overloading an otherclass, that's apparently not allowed. Is it stated somewhere that you are not allowed to do overloading?

nehashri commented 6 years ago

@jacobbarsoe can still share a sample project which causes this issue. It would help us handle such scenarios better.

jacobbarsoe commented 6 years ago

https://github.com/jacobbarsoe/gauge-test-bug

note stepimplementation2 overloads stepimplementation

jacobbarsoe commented 6 years ago

should I reopen the issue?

sriv commented 6 years ago

@jacobbarsoe - This definitely looks like something worth investigating. Thanks.

Reopening.

ramya-KM commented 6 years ago

image

I got the below error when i tried running the spec in guage

sriv commented 6 years ago

@ramya-KM - are you doing something similar to what @jacobbarsoe mentioned above? The errors may look similar, but could be because of different reasons.