Fitnesse with Visual Studio 2010

201 views
Skip to first unread message

soni marks

unread,
May 19, 2011, 11:39:33 AM5/19/11
to Agile Testing UK
I am facing difficulty running fitnesse test with Visual studio 2010.
In visual studio 2008, there was no problem. I used the right fitsharp
libraries version 1.7, still no luck. My fitnesse test is waiting
indefinitely. Don't know where the problem is.

There was no problem when I was integrating with VS 2008.

Gojko Adzic

unread,
May 19, 2011, 1:14:01 PM5/19/11
to Agile Testing UK
test waiting indefinitely is typically a signal that the testrunner
throws a wobbly.

1. try to run testrunner from the command line (with the fitnesse
server running) and see what the error message is
2. i think you need the .net 4.0 binaries for VS2010, try that

gojko

soni marks

unread,
May 20, 2011, 6:35:29 AM5/20/11
to agile-te...@googlegroups.com
I am getting this error while running testrunner in command prompt.

C:\Fitnesse>java -cp fitnesse.jar fitnesse.runner.TestRunner localhost 8888 FitN
esse.HelloWorld
Exception in thread "main" java.lang.NoClassDefFoundError: fitnesse/runner/TestR
unner
Caused by: java.lang.ClassNotFoundException: fitnesse.runner.TestRunner
        at java.net.URLClassLoader$1.run(Unknown Source)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
Could not find the main class: fitnesse.runner.TestRunner.  Program will exit.

sony

Victor Shulman

unread,
Dec 14, 2012, 12:00:08 PM12/14/12
to agile-te...@googlegroups.com
I had this problem, too; and a very frustrating one I had found it. At last, I solved it by running the COMMAND_PATTERN by hand, using the TEST_RUNNER for %m and the classpath for %p:

(my folder for the runner is called FitSharp)

FitSharp\Runner.exe fitnesse.fitserver.FitServer,FitSharp\fit.dll C:\users\me\myTestProject\bin\Debug\myTestProject.dll

This, finally, showed me what the Runner was unhappy about. In my case it was:

“attempt was made to load an assembly from a network location”


And to that problem, I quickly found the answer on Drew's 'Blog at http://blogs.msdn.com/b/drew/archive/2009/12/24/xunit-and-td-net-fixing-the-attempt-was-made-to-load-an-assembly-from-a-network-location-problem.aspx:

*** Unblock fit.dll and fitsharp.dll! ***

Who knew?
Reply all
Reply to author
Forward
0 new messages