<?xml version="1.0" encoding="UTF-8"?><!-- generator="WordPress/2.5.1" -->
<rss version="0.92">
<channel>
	<title>test objects design</title>
	<link>http://www.marekj.com</link>
	<description>cooperative software production infrastructure building</description>
	<lastBuildDate>Tue, 05 Aug 2008 16:49:27 +0000</lastBuildDate>
	<docs>http://backend.userland.com/rss092</docs>
	<language>en</language>
	
	<item>
		<title>IMG_9177</title>
		<description>
.flickr-photo { border: solid 2px #000000; }
.flickr-yourcomment { }
.flickr-frame { text-align: left; padding: 3px; }
.flickr-caption { font-size: 0.8em; margin-top: 0px; }



	

	IMG_9177, from lassekoskela.

				

	
 </description>
		<link>http://www.marekj.com/2008/08/img_9177/</link>
			</item>
	<item>
		<title>TinyTutorial: yielding value back to block</title>
		<description>UPDATE. I guess I will just write on gist.github.com

 </description>
		<link>http://www.marekj.com/2008/07/tinytutorial-yielding-value-back-to-block/</link>
			</item>
	<item>
		<title>Classes are objects, objects are Classes</title>
		<description>Consider this irb section:
irb(main):003:0&#62; class Bla; end
=&#62; nil
irb(main):004:0&#62; b = Bla.new
=&#62; #
irb(main):005:0&#62; b.class
=&#62; Bla
irb(main):006:0&#62; b.new
NoMethodError: undefined method `new' for #
irb(main):007:0&#62; c = Class.new
=&#62; #
irb(main):008:0&#62; c.new
=&#62; #&#60;#:0x2b5f570&#62;
irb(main):009:0&#62; c.class
=&#62; Class
So, an interesting thing happened here. The variable ‘c’ is an instance of a class Class and you can create another instance of ...</description>
		<link>http://www.marekj.com/2008/07/classes-are-objects-objects-are-classes/</link>
			</item>
	<item>
		<title>watir 1.5.6 and ruby 1.8.6-26</title>
		<description>On one of my Vista machines I just reinstalled ruby using 1.8.6-26 (one click installer) and watir 1.5.6
Of course I will need to reinstall all other gems because they perished when I uninstalled ruby 1.8.4-25 (yes, sometimes it's nice to clean up and start again.)

So Ruby 1.8.9-26 bundles gem 0.9.4. ...</description>
		<link>http://www.marekj.com/2008/06/watir-156-and-ruby-186-26/</link>
			</item>
	<item>
		<title>i can has time tracking! with punch rubygem</title>
		<description>Just installed rubygem punch (depends on rubygems: main, chronic, attributes, arrayfields, systemu, orderhash) on windows.

and the first try 'puch help I got the error: couldn't find HOME environment -- expanding `~' (ArgumentError). Looks like windows problem... so on my machine I changed to:

Home = File.expand_path(ENV['USERPROFILE'])

# C:\ruby\lib\ruby\gems\1.8\gems\punch-0.0.2\bin\punch:313

all is well. </description>
		<link>http://www.marekj.com/2008/06/ruby_gem_punch/</link>
			</item>
	<item>
		<title>assignment to variables from ARGV array on one line</title>
		<description>I have just discovered that you can do this
# lets say ARGV has 3 items [1, 2, 3]
# the following:
a, b, c = ARGV
# will make this
#=&#62; a=1, b=2, c=3
I didn't know you can do this. I just ready it in one of the examples somewhere and I can't find ...</description>
		<link>http://www.marekj.com/2008/06/assignment-to-variables-from-argv-array-on-one-line/</link>
			</item>
	<item>
		<title>strategy by delagating to an alias</title>
		<description>I saw this really nice way of setting behaviour. You call a Student object which has a method formal_greeting that delegates to say_hi, but say_hi is aliasing say_hello which calls a superclass since the say_hello of Student is declared below.

class Person
  def say_hello
    puts 'how do ...</description>
		<link>http://www.marekj.com/2008/06/strategy-by-delagating-to-an-alias/</link>
			</item>
	<item>
		<title>Processing defaults in watir elements</title>
		<description>Looking at watir code there is a nice patterns for accepting defaults for 'how' in method names for elements. Currently for frame, form and button.

like this: 



I like this solution for my test framework. I have been thinking of making a small change to my snagit screenshot. 
Basically be default ...</description>
		<link>http://www.marekj.com/2008/04/processing-defaults-in-watir-elements/</link>
			</item>
	<item>
		<title>Desktop Screenshots with Watir, win32screenshot, RMagick and Snagit</title>
		<description>Here is what I had with win32screenshot and RMagick (later replaced with Snagit)

# Runtime Test Housekeeping place
module TestRun

  # at runtime takes a screenshot of the desktop and saves it in log dir.
  # you must install win32screenshot gem and RMagic package for this to work. 
  ...</description>
		<link>http://www.marekj.com/2008/04/desktop-screenshots-with-watir-win32screenshot-and-rmagick/</link>
			</item>
	<item>
		<title>Doing the Web Test in 3 acts with Watir</title>
		<description>In a Story or UseCase for Web Application you can decompose a test into 3 acts. or Steps. (Actually I don't like to speak of Preconditions and Steps. I much rather speak of Context and Acts in a Web Application testing).


class ThreeStepTest
  attr_accessor :context
  
  # config ...</description>
		<link>http://www.marekj.com/2008/04/doing-the-web-test-in-3-acts/</link>
			</item>
</channel>
</rss>
