6 comments

  1. Rogier, I followed your steps to set up the Xebium/fitnesse, however, I am not able to get my tests to run. Once I start the test, the Stop icon appears, however, none of the scenarios get run. One other thing is, when I click the Stop icon, the test does not stop.

    I was able to follow the Xebium instructions to get my tests running, however, I need to be able to run nightly builds from the command line, and I haven’t figured how to do that with their setup.

    Any suggestions/help will be much appreciated.

    Mark Geiger

  2. Thanks for your feedback, Mark. I reproduced your problem and saw my FitNesse also fail to respond to anything. The cause was this post didn’t include instructions on what settings to add inside FitNesse. Sorry, my mistake!

    Because the settings were a bit much to type in a comment, I made a new post about what settings to add. You can find it at http://blogs.infosupport.com/my-first-xebium-fitnesse-selenium-test/. Let me know if you need any more help!

    Rogier van het Schip

  3. Rogier

    I followed your instructions. But I got a ‘xebium-0.7-SNAPSHOT-jar-with-dependencies.jar’ file instead of one labelled xebium-0.7.jar

    When i ran it i got the following error. What am I doing wrong?

    ————————————————————————-
    aditya@Aditya-Y:~/xebia-Xebium/xebia-Xebium-574edb8/target$ java -cp xebium-0.7-SNAPSHOT-jar-with-dependencies.jar fitnesseMain.FitNesseMain
    Exception in thread “main” java.lang.reflect.InvocationTargetException
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
    at java.lang.reflect.Constructor.newInstance(Constructor.java:532)
    at fitnesse.WikiPageFactory.makeRootPage(WikiPageFactory.java:27)
    at fitnesseMain.FitNesseMain.loadContext(FitNesseMain.java:113)
    at fitnesseMain.FitNesseMain.launchFitNesse(FitNesseMain.java:36)
    at fitnesseMain.FitNesseMain.main(FitNesseMain.java:27)
    Caused by: java.io.IOException: make directory failed: ./FitNesseRoot
    at util.DiskFileSystem.makeDirectory(DiskFileSystem.java:13)
    at fitnesse.wiki.FileSystemPage.createDirectoryIfNewPage(FileSystemPage.java:263)
    at fitnesse.wiki.FileSystemPage.(FileSystemPage.java:32)
    … 8 more

    Aditya

    • Sorry. I resolved that.
      But the page that opens is the fitnesse page not the xebium page. Why?

      Aditya

      • Hi Aditya,

        I don’t have a working environment here with me to try, but I have a theory: FitNesse stores its pages in a subdirectory named FitNesseRoot. After packing the Xebium code in a jar, the original FitNesseRoot that is delivered with Xebium’s source is no longer in the directory from which you run the jar. Therefore, the default empty FitNesse page is shown.

        When you run Xebia’s mvn -Pfitnesse test, this directory IS available, as you’re running the code from the source dir. Copying the directory from your source dir to the directory you run the jar from should help.

        Let me know if this doesn’t help.

        Best regards,

        Rogier

        Rogier van het Schip

        • Thanks Rogier. It worked Perfectly

          Aditya

Comments are closed.