ruby - Abnormal termination running an RSpec/Watir script -
i using ruby 1.8.6, watir 1.6.6, , rspec 1.3.0. when run following script, "terminates" (term given in eclipsepdt ide) no error listed. same when run c-prompt on windows, except no "terminate". browser never opens. got clue? runs ok if take off describe, it, , end lines.
describe 'facebook' before :all @b = watir::browser.new @b = watir::ie.start('http://www.facebook.com') end 'default page links' @b.link(:class, 'fbxwelcomeboxname').text.should == 'dave mcnulla' @b.link(:href, 'http://www.facebook.com/?ref=home').text.should == 'home' @b.link(:href, 'http://www.facebook.com/dave.mcnulla').text.should == 'profile' end 'home page links' @b.link(:href, 'http://www.facebook.com/?ref=home').click @b.link(:href, 'http://www.facebook.com/?ref=home').text.should == 'home' @b.link(:href, 'http://www.facebook.com/dave.mcnulla').text.should == 'profile' end 'profile page links' @b.link(:text, 'profile').click @b.link(:href, 'http://www.facebook.com/?ref=home').text.should == 'home' @b.link(:href, 'http://www.facebook.com/dave.mcnulla').text.should == 'profile' end after :all @b.close end end
i found out rspec test scripts run calling 'spec' on command line in:
spec mybrowsertest.rb
i had assumed ran them calling ruby, had done on testunit files.
now need figure out how call 'spec' within eclipse pdt. brought in ideas. appreciate more because did poor job of presenting problem in first place.
dave
Comments
Post a Comment