RSPEC

18 views
Skip to first unread message

ad...@pineconehr.com

unread,
Jun 18, 2014, 8:50:02 PM6/18/14
to seleniu...@googlegroups.com
I'm trying to write some tests using the selenium IDE and export them as webdriver or RC i don't really care which as long as it works. My goals is to be able to run the test suite using rspec like i would any other test for my program. Unfortunately i can't seem to get that to work. it keeps throwing a bunch of different errors but the main thing that i think is preventing me from figuring it out is that it keeps exporting the same way regardless of what option i chose. it exports as
require "spec/ruby"
require "spec/runner"

# output T/F as Green/Red
ENV['RSPEC_COLOR'] = 'true'

require "NEW_USER"
require "EMAIL_WIZARD"
require "BOX_WIZARD"
require "ADD_USER"
require "DASHBOARD_VIEW"

which again throws all sorts of errors
clearly what i am doing isn't correct so i'm asking here: " what should i do to take the testing suite i have written on IDE and saved and export it to a file in my spec/models/ (whatever) and be able to run it with rspec ______"


P.S minor side problem " how can i run the rake db:reset command before running the suite so i don't run into errors like that user already exists etc."

i promise i did my research before i came in here and just asked how to do it I haven't found any youtube videos or articles on this particular problem or that deal with this version of ruby,rails,selenium etc

please help
Reply all
Reply to author
Forward
0 new messages