Hello,
I am trying to setup my VM to run my scripts against IE7. I installed
GitBash to clone my qa_automation directory from Github plus installed
Watir.
When I try to execute one of my scripts I get the following error
message:
C:/Ruby193/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in
`require': cannot load such file -- ruby-debug (LoadError)
from C:/Ruby193/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:
36:in `require'
from C:/qa_automation/qa_automation/common/helper_methods.rb:5:in
`<class:HelperMethods>'
from C:/qa_automation/qa_automation/common/helper_methods.rb:1:in
`<top (required)>'
from C:/Ruby193/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:
36:in `require'
from C:/Ruby193/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:
36:in `require'
from gd_admin.rb:8:in `<main>'
Here are lines of code that is failing: (double starred lines)
# the rubygems
require "rubygems"
# the Watir webdriver controller
require "watir-webdriver"
#estiblish path for Helper method
** require
File.expand_path(File.join(File.dirname(__FILE__),'..','common','helper_methods.rb'))
#Initialize MySql gems
require 'mysql'
#Initialize FasterCsv
require 'faster_csv'
#Initialize the helper_methods class
helper = HelperMethods.new($browser)
#<<< estiblish variables >>>
url = []
email_address = []
user_pswd = []
yn = ''
ac = ''
#Path of environment variables
project_path =
File.expand_path(File.join(File.dirname(__FILE__),'..'))
puts project_path
#Retrieve Environment url
env = []
cn = []
sign_in = ""
** filename =
File.join(project_path,'environment_variables','environment_variables.csv')
test_data = FasterCSV.read(filename, :headers => true)
<><><><> End of Code
The project path is the following: C:\qa_automation\qa_automation
\completed_scripts\gd_admin.rb
The path for the helpermethod is : C:\qa_automation\qa_automation
\common\helper_methods.rb
The path for the environment_variables is: C:\qa_automation
\qa_automation\environment_variables\environment_variables.csv
Any help with this would be greatly appreciated.
Thank you,
Joe
--
Before posting, please read http://watir.com/support. In short: search before
you ask, be nice.
[email protected]
http://groups.google.com/group/watir-general
[email protected]