I have been using Fitnesse.NET for some time, and now I'm trying to upgrade to the new fitSharp engine. However, I immediately ran into a roadblock. Starting with a fresh system, I downloaded the latest version of fitnesse.jar and executed / installed it; all of my test pages were then displayed in my browser.
The problem occurs when I add the configuration for fitSharp to the root page. I tried various combinations of the TEST_RUNNER and COMMAND_PATTERN settings; The end result has always been that after running any test, the health server never returned the result to my browser. For reference, here is my root content confirming these definition variables are present and correct, at least according to this fitSharp configuration page :
variable defined: TEST_RUNNER=fitSharp\RunnerW.exe variable defined: COMMAND_PATTERN=%m -r fitnesse.fitserver.FitServer,fitSharp\fit.dll %p
I finally found one troubleshooting note that mentions that RunnerW gives some diagnostic information, so I switched to this and got this error message, a problem arising from .NET 4:
Failed to load file or assembly 'File: /// C: \ FitNesse \ fitSharp \ fit.dll' or one of its dependencies. operation is not supported. (Exception from HRESULT: 0x80131515) File name: 'File: /// C: \ FitNesse \ fitsharp \ fit.dll' ---> System.NotSupportedException: an attempt was made to load the assembly from the network, which led to the assembly was isolated in previous versions of the .NET Framework. This release of the .NET Framework does not include CAS by default, so this download can be dangerous. If this load is not intended for the build sandbox, enable loadFromRemoteSources. See http://go.microsoft.com/fwlink/?LinkId=155569 for more information.
The MSDN page with the link says that I need it in my configuration file:
<configuration> <runtime> <loadFromRemoteSources enabled="true"/> </runtime> </configuration>
So it looks like I have three possibilities. Whether there is a:
- app.config or equivalent, where can I insert this configuration section?
- How to stop mouse activity so that my local file is on a remote path?
- A way to enable CAS policies for the .NET platform.
Suggestions will be appreciated!
01.01.17 Edit: I use the fit protocol, not the slim protocol in my environment.
Michael sorens
source share