<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
		>
<channel>
	<title>Comments on: Easily define Watir tests in excel, OO, wikis and Google docs using Roo</title>
	<atom:link href="http://watirmelon.com/2009/01/05/watir-and-roo/feed/" rel="self" type="application/rss+xml" />
	<link>http://watirmelon.com/2009/01/05/watir-and-roo/</link>
	<description>A 93% Watir Based Blog by Alister Scott</description>
	<lastBuildDate>Fri, 25 May 2012 15:18:26 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
	<item>
		<title>By: Frank Legarreta</title>
		<link>http://watirmelon.com/2009/01/05/watir-and-roo/#comment-974</link>
		<dc:creator><![CDATA[Frank Legarreta]]></dc:creator>
		<pubDate>Mon, 27 Sep 2010 20:57:53 +0000</pubDate>
		<guid isPermaLink="false">http://watirmelon.wordpress.com/?p=158#comment-974</guid>
		<description><![CDATA[Turns out constructing a proper URI just required the key (I had included some additional extraneous info).

     ss = Google.new(&quot;JustMyGoogleKeyHere&quot;)

Now I can successfully retrieve Google Doc Spreadsheet data so long as the cell does not contain Unicode text (which is unfortunately what I need to do).]]></description>
		<content:encoded><![CDATA[<p>Turns out constructing a proper URI just required the key (I had included some additional extraneous info).</p>
<p>     ss = Google.new(&#8220;JustMyGoogleKeyHere&#8221;)</p>
<p>Now I can successfully retrieve Google Doc Spreadsheet data so long as the cell does not contain Unicode text (which is unfortunately what I need to do).</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Frank Legarreta</title>
		<link>http://watirmelon.com/2009/01/05/watir-and-roo/#comment-973</link>
		<dc:creator><![CDATA[Frank Legarreta]]></dc:creator>
		<pubDate>Mon, 27 Sep 2010 13:45:32 +0000</pubDate>
		<guid isPermaLink="false">http://watirmelon.wordpress.com/?p=158#comment-973</guid>
		<description><![CDATA[Hi Alister,
The issue above was actually just a problem with my environment variables for user/password.  Now roo seems not to like my URI for some reason (note- I changed the key for privacy):

C:\sstest&gt;sstest gdocs
C:/Ruby187/lib/ruby/gems/1.8/gems/google-spreadsheet-ruby-0.1.2/lib/google_spreadsheet.rb:280:in `request&#039;: Response code 400 for get https://spreadsheets.google.com/feeds/worksheets/https://spreadsheets.google.com/ccc?key=abcdefgN2pLpl9hK7xkgAw&amp;hl=en#gid=0/private/full: Invalid request URI (GoogleSpreadsheet::Error)
        from C:/Ruby187/lib/ruby/gems/1.8/gems/google-spreadsheet-ruby-0.1.2/lib/google_spreadsheet.rb:426:in `worksheets&#039;
        from C:/Ruby187/lib/ruby/gems/1.8/gems/roo-1.9.3/lib/roo/google.rb:37:in `initialize&#039;
        from C:/sstest/sstest.rb:14:in `new&#039;
        from C:/sstest/sstest.rb:14]]></description>
		<content:encoded><![CDATA[<p>Hi Alister,<br />
The issue above was actually just a problem with my environment variables for user/password.  Now roo seems not to like my URI for some reason (note- I changed the key for privacy):</p>
<p>C:\sstest&gt;sstest gdocs<br />
C:/Ruby187/lib/ruby/gems/1.8/gems/google-spreadsheet-ruby-0.1.2/lib/google_spreadsheet.rb:280:in `request&#8217;: Response code 400 for get <a href="https://spreadsheets.google.com/feeds/worksheets/https://spreadsheets.google.com/ccc?key=abcdefgN2pLpl9hK7xkgAw&#038;hl=en#gid=0/private/full" rel="nofollow">https://spreadsheets.google.com/feeds/worksheets/https://spreadsheets.google.com/ccc?key=abcdefgN2pLpl9hK7xkgAw&#038;hl=en#gid=0/private/full</a>: Invalid request URI (GoogleSpreadsheet::Error)<br />
        from C:/Ruby187/lib/ruby/gems/1.8/gems/google-spreadsheet-ruby-0.1.2/lib/google_spreadsheet.rb:426:in `worksheets&#8217;<br />
        from C:/Ruby187/lib/ruby/gems/1.8/gems/roo-1.9.3/lib/roo/google.rb:37:in `initialize&#8217;<br />
        from C:/sstest/sstest.rb:14:in `new&#8217;<br />
        from C:/sstest/sstest.rb:14</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alister Scott</title>
		<link>http://watirmelon.com/2009/01/05/watir-and-roo/#comment-965</link>
		<dc:creator><![CDATA[Alister Scott]]></dc:creator>
		<pubDate>Sat, 25 Sep 2010 07:23:07 +0000</pubDate>
		<guid isPermaLink="false">http://watirmelon.wordpress.com/?p=158#comment-965</guid>
		<description><![CDATA[I will look into your issue and let you know soon.]]></description>
		<content:encoded><![CDATA[<p>I will look into your issue and let you know soon.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Frank Legarreta</title>
		<link>http://watirmelon.com/2009/01/05/watir-and-roo/#comment-963</link>
		<dc:creator><![CDATA[Frank Legarreta]]></dc:creator>
		<pubDate>Fri, 24 Sep 2010 17:47:15 +0000</pubDate>
		<guid isPermaLink="false">http://watirmelon.wordpress.com/?p=158#comment-963</guid>
		<description><![CDATA[Installed ruby 1.8.7 (2010-08-16 patchlevel 302) [i386-mingw32]
Requiring &#039;rubygems&#039; returned &#039;false&#039; 
roo seemed to have dependencies for &#039;zip&#039; and &#039;google-spreadsheet-ruby&#039;before requiring &#039;roo&#039; returned true. 

Keep getting the following error trying to declare a Google Doc Spreadsheet:


irb(main):001:0&gt; require &#039;roo&#039;
=&gt; true
irb(main):002:0&gt; ss = Google.new(&quot;https://spreadsheets.google.com/ccc?key=0AsviuyIhEW9QdHN4VDFhY2FOabcdefg5aEs3eGtnQXc&amp;hl=en#gid=0&quot;)
NoMethodError: private method `gsub&#039; called for nil:NilClass
        from C:/Ruby187/lib/ruby/1.8/cgi.rb:342:in `escape&#039;
        from C:/Ruby187/lib/ruby/gems/1.8/gems/google-spreadsheet-ruby-0.1.2/lib/google_spreadsheet.rb:95:in `encode_query&#039;
        from (irb):2:in `map&#039;
        from C:/Ruby187/lib/ruby/gems/1.8/gems/google-spreadsheet-ruby-0.1.2/lib/google_spreadsheet.rb:95:in `each&#039;
        from C:/Ruby187/lib/ruby/gems/1.8/gems/google-spreadsheet-ruby-0.1.2/lib/google_spreadsheet.rb:95:in `map&#039;
        from C:/Ruby187/lib/ruby/gems/1.8/gems/google-spreadsheet-ruby-0.1.2/lib/google_spreadsheet.rb:95:in `encode_query&#039;
        from C:/Ruby187/lib/ruby/gems/1.8/gems/google-spreadsheet-ruby-0.1.2/lib/google_spreadsheet.rb:336:in `authenticate&#039;
        from C:/Ruby187/lib/ruby/gems/1.8/gems/google-spreadsheet-ruby-0.1.2/lib/google_spreadsheet.rb:148:in `login&#039;
        from C:/Ruby187/lib/ruby/gems/1.8/gems/google-spreadsheet-ruby-0.1.2/lib/google_spreadsheet.rb:127:in `login&#039;
        from C:/Ruby187/lib/ruby/gems/1.8/gems/google-spreadsheet-ruby-0.1.2/lib/google_spreadsheet.rb:22:in `login&#039;
        from C:/Ruby187/lib/ruby/gems/1.8/gems/roo-1.9.3/lib/roo/google.rb:35:in `initialize&#039;
        from (irb):2:in `new&#039;
        from (irb):2
irb(main):003:0&gt;]]></description>
		<content:encoded><![CDATA[<p>Installed ruby 1.8.7 (2010-08-16 patchlevel 302) [i386-mingw32]<br />
Requiring &#8216;rubygems&#8217; returned &#8216;false&#8217;<br />
roo seemed to have dependencies for &#8216;zip&#8217; and &#8216;google-spreadsheet-ruby&#8217;before requiring &#8216;roo&#8217; returned true. </p>
<p>Keep getting the following error trying to declare a Google Doc Spreadsheet:</p>
<p>irb(main):001:0&gt; require &#8216;roo&#8217;<br />
=&gt; true<br />
irb(main):002:0&gt; ss = Google.new(&#8220;https://spreadsheets.google.com/ccc?key=0AsviuyIhEW9QdHN4VDFhY2FOabcdefg5aEs3eGtnQXc&amp;hl=en#gid=0&#8243;)<br />
NoMethodError: private method `gsub&#8217; called for nil:NilClass<br />
        from C:/Ruby187/lib/ruby/1.8/cgi.rb:342:in `escape&#8217;<br />
        from C:/Ruby187/lib/ruby/gems/1.8/gems/google-spreadsheet-ruby-0.1.2/lib/google_spreadsheet.rb:95:in `encode_query&#8217;<br />
        from (irb):2:in `map&#8217;<br />
        from C:/Ruby187/lib/ruby/gems/1.8/gems/google-spreadsheet-ruby-0.1.2/lib/google_spreadsheet.rb:95:in `each&#8217;<br />
        from C:/Ruby187/lib/ruby/gems/1.8/gems/google-spreadsheet-ruby-0.1.2/lib/google_spreadsheet.rb:95:in `map&#8217;<br />
        from C:/Ruby187/lib/ruby/gems/1.8/gems/google-spreadsheet-ruby-0.1.2/lib/google_spreadsheet.rb:95:in `encode_query&#8217;<br />
        from C:/Ruby187/lib/ruby/gems/1.8/gems/google-spreadsheet-ruby-0.1.2/lib/google_spreadsheet.rb:336:in `authenticate&#8217;<br />
        from C:/Ruby187/lib/ruby/gems/1.8/gems/google-spreadsheet-ruby-0.1.2/lib/google_spreadsheet.rb:148:in `login&#8217;<br />
        from C:/Ruby187/lib/ruby/gems/1.8/gems/google-spreadsheet-ruby-0.1.2/lib/google_spreadsheet.rb:127:in `login&#8217;<br />
        from C:/Ruby187/lib/ruby/gems/1.8/gems/google-spreadsheet-ruby-0.1.2/lib/google_spreadsheet.rb:22:in `login&#8217;<br />
        from C:/Ruby187/lib/ruby/gems/1.8/gems/roo-1.9.3/lib/roo/google.rb:35:in `initialize&#8217;<br />
        from (irb):2:in `new&#8217;<br />
        from (irb):2<br />
irb(main):003:0&gt;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alister Scott</title>
		<link>http://watirmelon.com/2009/01/05/watir-and-roo/#comment-282</link>
		<dc:creator><![CDATA[Alister Scott]]></dc:creator>
		<pubDate>Mon, 06 Jul 2009 10:45:08 +0000</pubDate>
		<guid isPermaLink="false">http://watirmelon.wordpress.com/?p=158#comment-282</guid>
		<description><![CDATA[I can&#039;t reproduce your error. I tried this:

[sourcecode language=&#039;ruby&#039;]
require &#039;roo&#039;

def get_input_data_oo(tc, sheet_name)
  oo = Openoffice.new(&#039;./test.ods&#039;)
  oo.default_sheet = sheet_name
  header_row = oo.first_row
  column = oo.first_column
  row = header_row + 1

  #find the row that has data for this test case

  while oo.cell(row,column) != tc
    row += 1
  end

  test_data = { } #create a new hash

  2.upto(oo.last_column) do &#124;col&#124;
    data = oo.cell(header_row, col)#key of the hash
    value = oo.cell(row,col) #value of the hash
    test_data[data] = value
  end

  return test_data
end

puts get_input_data_oo(&#039;T3&#039;, &#039;Sheet1&#039;)
puts get_input_data_oo(&#039;T4&#039;, &#039;Sheet1&#039;)
puts get_input_data_oo(&#039;T1&#039;, &#039;Sheet1&#039;)
puts get_input_data_oo(&#039;T2&#039;, &#039;Sheet1&#039;)

[/sourcecode]

and it works fine.

Note, in your script, you are reading the first column also. Is this intentional.]]></description>
		<content:encoded><![CDATA[<p>I can&#8217;t reproduce your error. I tried this:</p>
<pre class="brush: ruby;">
require 'roo'

def get_input_data_oo(tc, sheet_name)
  oo = Openoffice.new('./test.ods')
  oo.default_sheet = sheet_name
  header_row = oo.first_row
  column = oo.first_column
  row = header_row + 1

  #find the row that has data for this test case

  while oo.cell(row,column) != tc
    row += 1
  end

  test_data = { } #create a new hash

  2.upto(oo.last_column) do |col|
    data = oo.cell(header_row, col)#key of the hash
    value = oo.cell(row,col) #value of the hash
    test_data[data] = value
  end

  return test_data
end

puts get_input_data_oo('T3', 'Sheet1')
puts get_input_data_oo('T4', 'Sheet1')
puts get_input_data_oo('T1', 'Sheet1')
puts get_input_data_oo('T2', 'Sheet1')

</pre>
<p>and it works fine.</p>
<p>Note, in your script, you are reading the first column also. Is this intentional.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: pallavi</title>
		<link>http://watirmelon.com/2009/01/05/watir-and-roo/#comment-281</link>
		<dc:creator><![CDATA[pallavi]]></dc:creator>
		<pubDate>Mon, 06 Jul 2009 07:03:59 +0000</pubDate>
		<guid isPermaLink="false">http://watirmelon.wordpress.com/?p=158#comment-281</guid>
		<description><![CDATA[Hi Alister,
Am using Roo to connect to open office and i have a method defined in common_utils.rb (where we keep commonly used methods)to connect to a particular sheet. sheet_name is a constant that will be passed from the testcase.rb file. &#039;tc&#039; is the testcase number which is passed from testcase.rb file


[sourcecode language=&#039;ruby&#039;]
def get_input_data_oo(tc, sheet_name)
      oo = Openoffice.new(INPUT_OO)
      oo.default_sheet = sheet_name
      header_row = oo.first_row  
      column = oo.first_column
      row = header_row + 1
    
    #find the row that has data for this test case
    
    while  oo.cell(row,column) != tc
      row += 1
    end
      
  test_data = { } #create a new hash
   
  #Populate the hash
   while  column !=(oo.last_column)
   data = oo.cell(header_row, column)#key of the hash
   value = oo.cell(row,column)  #value of the hash
   test_data[data] = value
   column = column.next 
  end
    return test_data
  end

[/sourcecode]

test_data is the hash that will be used to populate the fields in the testcase.rb file.

Problem is when i run many testcases as a suite, i get the following error: running them individually works fine

error:
RangeError: RangeError
c:/ruby/lib/ruby/gems/1.8/gems/roo-1.3.5/lib/roo/generic_spreadsheet.rb:24:in `default_sheet=&#039;

any idea of what is happening?]]></description>
		<content:encoded><![CDATA[<p>Hi Alister,<br />
Am using Roo to connect to open office and i have a method defined in common_utils.rb (where we keep commonly used methods)to connect to a particular sheet. sheet_name is a constant that will be passed from the testcase.rb file. &#8216;tc&#8217; is the testcase number which is passed from testcase.rb file</p>
<pre class="brush: ruby;">
def get_input_data_oo(tc, sheet_name)
      oo = Openoffice.new(INPUT_OO)
      oo.default_sheet = sheet_name
      header_row = oo.first_row  
      column = oo.first_column
      row = header_row + 1
    
    #find the row that has data for this test case
    
    while  oo.cell(row,column) != tc
      row += 1
    end
      
  test_data = { } #create a new hash
   
  #Populate the hash
   while  column !=(oo.last_column)
   data = oo.cell(header_row, column)#key of the hash
   value = oo.cell(row,column)  #value of the hash
   test_data[data] = value
   column = column.next 
  end
    return test_data
  end

</pre>
<p>test_data is the hash that will be used to populate the fields in the testcase.rb file.</p>
<p>Problem is when i run many testcases as a suite, i get the following error: running them individually works fine</p>
<p>error:<br />
RangeError: RangeError<br />
c:/ruby/lib/ruby/gems/1.8/gems/roo-1.3.5/lib/roo/generic_spreadsheet.rb:24:in `default_sheet=&#8217;</p>
<p>any idea of what is happening?</p>
]]></content:encoded>
	</item>
</channel>
</rss>

