gauge-csharp
gauge-csharp copied to clipboard
MethodScanner Steps Fetch failed, Failed to connect to Gauge API
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.Dictionary
2.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 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?
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 can still share a sample project which causes this issue. It would help us handle such scenarios better.
https://github.com/jacobbarsoe/gauge-test-bug
note stepimplementation2 overloads stepimplementation
should I reopen the issue?
@jacobbarsoe - This definitely looks like something worth investigating. Thanks.
Reopening.
I got the below error when i tried running the spec in guage
@ramya-KM - are you doing something similar to what @jacobbarsoe mentioned above? The errors may look similar, but could be because of different reasons.