Fitnesse is a standard fitSharp configuration issue with .NET 4

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.

+8
fitnesse fitsharp
source share
3 answers

I've never seen this before! Why does he think that C: is a β€œdangerous” web site? In any case, the Runner.exe executable file (or RunnerW.exe), so if you create Runner.exe.config with the above settings, it should pick it up.

+3
source share

I know this was answered, but imho has a better resolution. If you "unlock" fit.dll (right-click-> properties-> Unlock), you will not get an error. It happens due to the blocking of downloaded files by default.

+10
source share

visit this page

http://oweng.net/Visual-Studio-2010/Coded-UI-Fitnesse/integrating-coded-ui-and-fitnesse-fitsharp-slim-1.aspx

i encountered a similar problem, but was resolved after visiting the tjis page.

0
source share

Source: https://habr.com/ru/post/650725/


All Articles