Error Running Fitnesse Tests on the Fitnesse Server

Discussion in 'Ruby' started by Arti Singh, Dec 18, 2009.

  1. Arti Singh

    Arti Singh Guest

    I created a folder under C:/Data/Ruby called Fitnesse1 and placed my
    Login.rb file in that folder


    in Login.rb,I placed the following information


    module Fitnesse1


    class Login < Fit::ActionFixture

    p1 = LoginTest.new()
    p1.orion_login()
    p1.loginMessage()
    p1.numberOfLoginAttempts()
    end

    end


    I placed this Login test in C:/Data/Ruby/Fitnesse1/Login.rb
    I kept the file name same as the class name and kept the foldername same
    as the module name


    I created a definition in the Fitnesse Ruby Page with the information
    the
    Fitnisse1 Wikipage


    !define COMMAND_PATTERN {ruby -I %p
    C:/Ruby1.9/lib/ruby/gems/1.9.1/gems/fit-1.2/bin/FitServer.rb -v}
    !path C:/Data/Ruby
    !|Fitnesse1.Login|
    |Login|


    In the Fitnisse application, I added a test page and set the properties
    to test,just as they suggested in
    http://xprogramming.com/xpmag/rubyfitnesse/
    I followed it to the letter, but instead of getting the tests to run, I
    get the error

    Fixture Fitnesse1.Login not found.
    C:/Ruby1.9/lib/ruby/gems/1.9.1/gems/fit-1.2/lib/fit/fixture_loader.rb:15:in
    `find_fixture_class'
    C:/Ruby1.9/lib/ruby/gems/1.9.1/gems/fit-1.2/lib/fit/fixture.rb:82:in
    `find_class'
    C:/Ruby1.9/lib/ruby/gems/1.9.1/gems/fit-1.2/lib/fit/fixture.rb:138:in
    `get_linked_fixture_with_args'
    C:/Ruby1.9/lib/ruby/gems/1.9.1/gems/fit-1.2/lib/fit/fixture.rb:92:in
    `do_tables'
    C:Ruby1.9/lib/ruby/gems/1.9.1/gems/fit-1.2/lib/fit/fit_server.rb:93:in
    `process'
    C:/Ruby1.9/lib/ruby/gems/1.9.1/gems/fit-1.2/lib/fit/fit_server.rb:24:in
    `run'
    C:/Ruby/lib/ruby/gems/1.9.1/gems/fit-1.2/bin/FitServer.rb:5:in `'



    I have no clue on how to fix this,I spent half of the day trying to get
    this up and runnning to no avail, I search every where and I get the
    same thing
     
    Arti Singh, Dec 18, 2009
    #1
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.