18 January 2026:
Sahi Pro is an enterprise grade test automation platform which can automate web, mobile, API, windows and java based applications and SAP.
This forum is now archived and is in read-only mode. Please continue discussions on our improved new Sahi Pro Community forum.
Sahi Pro is an enterprise grade test automation platform which can automate web, mobile, API, windows and java based applications and SAP.
no such file to load -- guid (LoadError) Sahi Ruby
OS: Mac OS X Version 10.6.8
Browser: Firefox 11.0
Sahi Build: Not available in Ruby controller (a.k.a Twist - Sahi Controller) but in Sahi Controller, it says Build 2011-07-19. It's the latest Sahi OS.
We are in the process of evaluating a small number of web automation tools and then identify an unified tool for all our online testing teams. Sahi is one of the tools we are looking at. Since our application is written in Ruby, we are more interested in the Ruby/Sahi combination. I'm currently trying to run the sample test "sahi_test.rb" that came with the installation (under ../Sahi/Ruby/test/), but encountered the following error while trying to run it from either Eclipse or command line:
../lib/sahi.rb:2:in 'require': no such file to load -- guid (LoadError)
While running from the command line, I used the following command: ruby sahi_test.rb
Browser: Firefox 11.0
Sahi Build: Not available in Ruby controller (a.k.a Twist - Sahi Controller) but in Sahi Controller, it says Build 2011-07-19. It's the latest Sahi OS.
We are in the process of evaluating a small number of web automation tools and then identify an unified tool for all our online testing teams. Sahi is one of the tools we are looking at. Since our application is written in Ruby, we are more interested in the Ruby/Sahi combination. I'm currently trying to run the sample test "sahi_test.rb" that came with the installation (under ../Sahi/Ruby/test/), but encountered the following error while trying to run it from either Eclipse or command line:
../lib/sahi.rb:2:in 'require': no such file to load -- guid (LoadError)
While running from the command line, I used the following command: ruby sahi_test.rb
Comments
- RUBYGEMS VERSION: 1.8.15
- RUBY VERSION: 1.8.7 (2011-12-28 patchlevel 357) [i686-darwin10.0.0]
- INSTALLATION DIRECTORY: /Users/XXXXX/.rvm/gems/ruby-1.8.7-p357@rails3011
- RUBY EXECUTABLE: /Users/XXXXX/.rvm/rubies/ruby-1.8.7-p357/bin/ruby
- EXECUTABLE DIRECTORY: /Users/XXXXX/.rvm/gems/ruby-1.8.7-p357@rails3011/bin
- RUBYGEMS PLATFORMS:
- ruby
- x86-darwin-10
- GEM PATHS:
- /Users/XXXXX/.rvm/gems/ruby-1.8.7-p357@rails3011
- /Users/XXXXX/.rvm/gems/ruby-1.8.7-p357@global
- GEM CONFIGURATION:
- :update_sources => true
- :verbose => true
- :benchmark => false
- :backtrace => false
- :bulk_threshold => 1000
- REMOTE SOURCES:
- http://rubygems.org/
... and I couldn't find the "guid" gem in the executable directory (i.e. /Users/XXXXX/.rvm/gems/ruby-1.8.7-p357@rails3011/bin). The source is in /Users/XXXXX/.rvm/gems/ruby-1.8.7-p357@rails3011/gems and the installation was successful using the command: gem install guid. Any suggestions?
The gem is old, please the use the one which ships with Sahi Pro.
Regards,
Narayan
My coworker is able to run the Sahi Ruby example on his Windows machine. We compared the environment and noticed that the Ruby version on my Mac is older. He has Ruby1.9.3 and I have Ruby1.8.7 on both my Mac and Windows. That's probably why I got the same error (unable to load guid) on both. Once I upgraded the ruby version to the latest on my Windows machine as well as made one change in guid (see below), I'm able to run the test successfully.
Within guid, which can be found at C:\Ruby193\lib\ruby\gems\1.9.1\gems\guid-0.1.1\lib, I changed the following line:
from
RUBY_PLATFORM =~ /[^r]win/i
to
RUBY_PLATFORM =~ /i386/i
With the new version of guid shipped in Sahi Pro, I'd assume the tweaking is no longer applicable. Anyway, I haven't got chance to try on my Mac yet so will report back later. I'm also having problem running the debugger in Eclipse (unable to find rdebug-ide binary script...), but guess it's a whole different topic.