gauge-csharp icon indicating copy to clipboard operation
gauge-csharp copied to clipboard

MethodScanner Steps Fetch failed, Failed to connect to Gauge API

Open jacobbarsoe opened this issue 6 years ago • 8 comments

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)

jacobbarsoe avatar Feb 28 '18 15:02 jacobbarsoe

@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?

nehashri avatar Mar 01 '18 05:03 nehashri

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?

jacobbarsoe avatar Mar 01 '18 08:03 jacobbarsoe

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

nehashri avatar Mar 01 '18 08:03 nehashri

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

note stepimplementation2 overloads stepimplementation

jacobbarsoe avatar Mar 01 '18 09:03 jacobbarsoe

should I reopen the issue?

jacobbarsoe avatar Mar 01 '18 09:03 jacobbarsoe

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

Reopening.

sriv avatar Mar 01 '18 09:03 sriv

image

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

ramya-KM avatar May 17 '18 04:05 ramya-KM

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

sriv avatar May 31 '18 02:05 sriv