From ryhoward at telligent.com Thu Nov 9 13:39:49 2006 From: ryhoward at telligent.com (Ryan Howard (Intern)) Date: Thu, 9 Nov 2006 13:39:49 -0500 Subject: [Wtr-development] File won't recognize "require watir/testcase" Message-ID: <8D2B87EFB35A4341B53B86D3DE6F4CD58F8824@mse1be1.mse1.mailstreet.com> I'm trying to run a test suite, but my "main" file gets interrupted by an error when trying to use "require watir/testcase", the compiler keeps giving me a "no such file to load" error, for the testcase example. I don't see how this should cause any trouble because the compiler recognizes the "watir/testUnitAddons" file. I have checked to see that the file is actually there, and it is. Here is my code. require 'watir' require 'test/unit' require 'test/unit/ui/console/testrunner' require 'watir/testUnitAddons' require 'watir/testcase' #topdir = File.dirname(__FILE__) #Dir.chdir topdir do # $all_tests = Dir["*Blogs.rb"] #end $all_tests.each {|x| begin timeout(1.0) do |timeout_length| require x end rescue Timeout::Error => e puts "Error Message: " + e end } And here is the error I keep getting. >ruby Automate.rb c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require': no such file to load -- runit/robserver (LoadError) from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `require' from c:/ruby/lib/ruby/site_ruby/1.8/watir/testcase.rb:3 from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `require' from Automate.rb:6 >Exit code: 1 I'm using version 1.4.1 , Thanks, -Ryan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/wtr-development/attachments/20061109/948efa64/attachment.html From ryhoward at telligent.com Thu Nov 9 14:37:39 2006 From: ryhoward at telligent.com (Ryan Howard (Intern)) Date: Thu, 9 Nov 2006 14:37:39 -0500 Subject: [Wtr-development] startClicker Message-ID: <8D2B87EFB35A4341B53B86D3DE6F4CD58F8897@mse1be1.mse1.mailstreet.com> I am trying to use the startClicker method to click on a popup box. The code is absolutely correct, however when the program runs and the popup appears, another command prompt appears and starts to cycle through a whole bunch of stuff I've never seen before. It's almost as if I went into my computer and clicked the actual file. I have also checked, and I am calling the method at the right time. Here is what I have. class TC_blogsFrontEnd < Test::Unit::TestCase def test_15_Blogs_DeleteBlog $ie = Watir::IE.new() $ie.goto('http://localhost/cs') $ie.link(:text, 'Control Panel').click $ie.link(:text, 'My Blogs').click $ie.goto('http://localhost/cs/ControlPanel/Blogs/postlist.aspx') startClicker('Cancel') $ie.link(:text, 'Delete').click if $ie.contains_text('Change Post title attempt') puts "Blogx15 Failed" else puts "Blogx15 Passed" end $ie.goto('http://localhost/cs/') end def startClicker( button , waitTime = 3) w = WinClicker.new longName = $ie.dir.gsub("/" , "\\" ) shortName = w.getShortFileName(longName) c = "start ruby #{shortName}\\watir\\clickJSDialog.rb #{button} #{waitTime} " puts "Starting #{c}" w.winsystem(c) w=nil end end If yall have any ideas that would be great! :-) Thanks, -Ryan Howard -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/wtr-development/attachments/20061109/9469f2a5/attachment-0001.html From jim at hollcraft.com Thu Nov 9 16:03:30 2006 From: jim at hollcraft.com (Jim Hollcraft) Date: Thu, 9 Nov 2006 13:03:30 -0800 Subject: [Wtr-development] File won't recognize "require watir/testcase" In-Reply-To: <8D2B87EFB35A4341B53B86D3DE6F4CD58F8824@mse1be1.mse1.mailstreet.com> Message-ID: Ryan, You might try the wtr-general list. Jim. ________________________________ From: wtr-development-bounces at rubyforge.org [mailto:wtr-development-bounces at rubyforge.org] On Behalf Of Ryan Howard (Intern) Sent: Thursday, November 09, 2006 10:40 AM To: wtr-development at rubyforge.org Subject: [Wtr-development] File won't recognize "require watir/testcase" I'm trying to run a test suite, but my "main" file gets interrupted by an error when trying to use "require watir/testcase", the compiler keeps giving me a "no such file to load" error, for the testcase example. I don't see how this should cause any trouble because the compiler recognizes the "watir/testUnitAddons" file. I have checked to see that the file is actually there, and it is. Here is my code. require 'watir' require 'test/unit' require 'test/unit/ui/console/testrunner' require 'watir/testUnitAddons' require 'watir/testcase' #topdir = File.dirname(__FILE__) #Dir.chdir topdir do # $all_tests = Dir["*Blogs.rb"] #end $all_tests.each {|x| begin timeout(1.0) do |timeout_length| require x end rescue Timeout::Error => e puts "Error Message: " + e end } And here is the error I keep getting. >ruby Automate.rb c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require': no such file to load -- runit/robserver (LoadError) from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `require' from c:/ruby/lib/ruby/site_ruby/1.8/watir/testcase.rb:3 from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `require' from Automate.rb:6 >Exit code: 1 I'm using version 1.4.1 , Thanks, -Ryan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/wtr-development/attachments/20061109/06a8afe9/attachment.html From ryhoward at telligent.com Thu Nov 9 13:39:49 2006 From: ryhoward at telligent.com (Ryan Howard (Intern)) Date: Thu, 9 Nov 2006 13:39:49 -0500 Subject: [Wtr-development] File won't recognize "require watir/testcase" Message-ID: <8D2B87EFB35A4341B53B86D3DE6F4CD58F8824@mse1be1.mse1.mailstreet.com> I'm trying to run a test suite, but my "main" file gets interrupted by an error when trying to use "require watir/testcase", the compiler keeps giving me a "no such file to load" error, for the testcase example. I don't see how this should cause any trouble because the compiler recognizes the "watir/testUnitAddons" file. I have checked to see that the file is actually there, and it is. Here is my code. require 'watir' require 'test/unit' require 'test/unit/ui/console/testrunner' require 'watir/testUnitAddons' require 'watir/testcase' #topdir = File.dirname(__FILE__) #Dir.chdir topdir do # $all_tests = Dir["*Blogs.rb"] #end $all_tests.each {|x| begin timeout(1.0) do |timeout_length| require x end rescue Timeout::Error => e puts "Error Message: " + e end } And here is the error I keep getting. >ruby Automate.rb c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require': no such file to load -- runit/robserver (LoadError) from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `require' from c:/ruby/lib/ruby/site_ruby/1.8/watir/testcase.rb:3 from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `require' from Automate.rb:6 >Exit code: 1 I'm using version 1.4.1 , Thanks, -Ryan -------------- next part -------------- An HTML attachment was scrubbed... URL: From ryhoward at telligent.com Thu Nov 9 14:37:39 2006 From: ryhoward at telligent.com (Ryan Howard (Intern)) Date: Thu, 9 Nov 2006 14:37:39 -0500 Subject: [Wtr-development] startClicker Message-ID: <8D2B87EFB35A4341B53B86D3DE6F4CD58F8897@mse1be1.mse1.mailstreet.com> I am trying to use the startClicker method to click on a popup box. The code is absolutely correct, however when the program runs and the popup appears, another command prompt appears and starts to cycle through a whole bunch of stuff I've never seen before. It's almost as if I went into my computer and clicked the actual file. I have also checked, and I am calling the method at the right time. Here is what I have. class TC_blogsFrontEnd < Test::Unit::TestCase def test_15_Blogs_DeleteBlog $ie = Watir::IE.new() $ie.goto('http://localhost/cs') $ie.link(:text, 'Control Panel').click $ie.link(:text, 'My Blogs').click $ie.goto('http://localhost/cs/ControlPanel/Blogs/postlist.aspx') startClicker('Cancel') $ie.link(:text, 'Delete').click if $ie.contains_text('Change Post title attempt') puts "Blogx15 Failed" else puts "Blogx15 Passed" end $ie.goto('http://localhost/cs/') end def startClicker( button , waitTime = 3) w = WinClicker.new longName = $ie.dir.gsub("/" , "\\" ) shortName = w.getShortFileName(longName) c = "start ruby #{shortName}\\watir\\clickJSDialog.rb #{button} #{waitTime} " puts "Starting #{c}" w.winsystem(c) w=nil end end If yall have any ideas that would be great! :-) Thanks, -Ryan Howard -------------- next part -------------- An HTML attachment was scrubbed... URL: From jim at hollcraft.com Thu Nov 9 16:03:30 2006 From: jim at hollcraft.com (Jim Hollcraft) Date: Thu, 9 Nov 2006 13:03:30 -0800 Subject: [Wtr-development] File won't recognize "require watir/testcase" In-Reply-To: <8D2B87EFB35A4341B53B86D3DE6F4CD58F8824@mse1be1.mse1.mailstreet.com> Message-ID: Ryan, You might try the wtr-general list. Jim. ________________________________ From: wtr-development-bounces at rubyforge.org [mailto:wtr-development-bounces at rubyforge.org] On Behalf Of Ryan Howard (Intern) Sent: Thursday, November 09, 2006 10:40 AM To: wtr-development at rubyforge.org Subject: [Wtr-development] File won't recognize "require watir/testcase" I'm trying to run a test suite, but my "main" file gets interrupted by an error when trying to use "require watir/testcase", the compiler keeps giving me a "no such file to load" error, for the testcase example. I don't see how this should cause any trouble because the compiler recognizes the "watir/testUnitAddons" file. I have checked to see that the file is actually there, and it is. Here is my code. require 'watir' require 'test/unit' require 'test/unit/ui/console/testrunner' require 'watir/testUnitAddons' require 'watir/testcase' #topdir = File.dirname(__FILE__) #Dir.chdir topdir do # $all_tests = Dir["*Blogs.rb"] #end $all_tests.each {|x| begin timeout(1.0) do |timeout_length| require x end rescue Timeout::Error => e puts "Error Message: " + e end } And here is the error I keep getting. >ruby Automate.rb c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require': no such file to load -- runit/robserver (LoadError) from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `require' from c:/ruby/lib/ruby/site_ruby/1.8/watir/testcase.rb:3 from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `require' from Automate.rb:6 >Exit code: 1 I'm using version 1.4.1 , Thanks, -Ryan -------------- next part -------------- An HTML attachment was scrubbed... URL: From ryhoward at telligent.com Thu Nov 9 13:39:49 2006 From: ryhoward at telligent.com (Ryan Howard (Intern)) Date: Thu, 9 Nov 2006 13:39:49 -0500 Subject: [Wtr-development] File won't recognize "require watir/testcase" Message-ID: <8D2B87EFB35A4341B53B86D3DE6F4CD58F8824@mse1be1.mse1.mailstreet.com> I'm trying to run a test suite, but my "main" file gets interrupted by an error when trying to use "require watir/testcase", the compiler keeps giving me a "no such file to load" error, for the testcase example. I don't see how this should cause any trouble because the compiler recognizes the "watir/testUnitAddons" file. I have checked to see that the file is actually there, and it is. Here is my code. require 'watir' require 'test/unit' require 'test/unit/ui/console/testrunner' require 'watir/testUnitAddons' require 'watir/testcase' #topdir = File.dirname(__FILE__) #Dir.chdir topdir do # $all_tests = Dir["*Blogs.rb"] #end $all_tests.each {|x| begin timeout(1.0) do |timeout_length| require x end rescue Timeout::Error => e puts "Error Message: " + e end } And here is the error I keep getting. >ruby Automate.rb c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require': no such file to load -- runit/robserver (LoadError) from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `require' from c:/ruby/lib/ruby/site_ruby/1.8/watir/testcase.rb:3 from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `require' from Automate.rb:6 >Exit code: 1 I'm using version 1.4.1 , Thanks, -Ryan -------------- next part -------------- An HTML attachment was scrubbed... URL: From ryhoward at telligent.com Thu Nov 9 14:37:39 2006 From: ryhoward at telligent.com (Ryan Howard (Intern)) Date: Thu, 9 Nov 2006 14:37:39 -0500 Subject: [Wtr-development] startClicker Message-ID: <8D2B87EFB35A4341B53B86D3DE6F4CD58F8897@mse1be1.mse1.mailstreet.com> I am trying to use the startClicker method to click on a popup box. The code is absolutely correct, however when the program runs and the popup appears, another command prompt appears and starts to cycle through a whole bunch of stuff I've never seen before. It's almost as if I went into my computer and clicked the actual file. I have also checked, and I am calling the method at the right time. Here is what I have. class TC_blogsFrontEnd < Test::Unit::TestCase def test_15_Blogs_DeleteBlog $ie = Watir::IE.new() $ie.goto('http://localhost/cs') $ie.link(:text, 'Control Panel').click $ie.link(:text, 'My Blogs').click $ie.goto('http://localhost/cs/ControlPanel/Blogs/postlist.aspx') startClicker('Cancel') $ie.link(:text, 'Delete').click if $ie.contains_text('Change Post title attempt') puts "Blogx15 Failed" else puts "Blogx15 Passed" end $ie.goto('http://localhost/cs/') end def startClicker( button , waitTime = 3) w = WinClicker.new longName = $ie.dir.gsub("/" , "\\" ) shortName = w.getShortFileName(longName) c = "start ruby #{shortName}\\watir\\clickJSDialog.rb #{button} #{waitTime} " puts "Starting #{c}" w.winsystem(c) w=nil end end If yall have any ideas that would be great! :-) Thanks, -Ryan Howard -------------- next part -------------- An HTML attachment was scrubbed... URL: From jim at hollcraft.com Thu Nov 9 16:03:30 2006 From: jim at hollcraft.com (Jim Hollcraft) Date: Thu, 9 Nov 2006 13:03:30 -0800 Subject: [Wtr-development] File won't recognize "require watir/testcase" In-Reply-To: <8D2B87EFB35A4341B53B86D3DE6F4CD58F8824@mse1be1.mse1.mailstreet.com> Message-ID: Ryan, You might try the wtr-general list. Jim. ________________________________ From: wtr-development-bounces at rubyforge.org [mailto:wtr-development-bounces at rubyforge.org] On Behalf Of Ryan Howard (Intern) Sent: Thursday, November 09, 2006 10:40 AM To: wtr-development at rubyforge.org Subject: [Wtr-development] File won't recognize "require watir/testcase" I'm trying to run a test suite, but my "main" file gets interrupted by an error when trying to use "require watir/testcase", the compiler keeps giving me a "no such file to load" error, for the testcase example. I don't see how this should cause any trouble because the compiler recognizes the "watir/testUnitAddons" file. I have checked to see that the file is actually there, and it is. Here is my code. require 'watir' require 'test/unit' require 'test/unit/ui/console/testrunner' require 'watir/testUnitAddons' require 'watir/testcase' #topdir = File.dirname(__FILE__) #Dir.chdir topdir do # $all_tests = Dir["*Blogs.rb"] #end $all_tests.each {|x| begin timeout(1.0) do |timeout_length| require x end rescue Timeout::Error => e puts "Error Message: " + e end } And here is the error I keep getting. >ruby Automate.rb c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require': no such file to load -- runit/robserver (LoadError) from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `require' from c:/ruby/lib/ruby/site_ruby/1.8/watir/testcase.rb:3 from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `require' from Automate.rb:6 >Exit code: 1 I'm using version 1.4.1 , Thanks, -Ryan -------------- next part -------------- An HTML attachment was scrubbed... URL: