Re: [Wtr-general] another next step

2005-08-18 Thread Alex Verhovsky

Bret Pettichord wrote:


7. make a gem

how could i forget -- kingsley is helping me with this.


To remind, I once submitted a gemspec for Watir. It was before there 
were any native libraries in the distibution though. Anyway, Bret, if 
you need help with a gem, just whistle :)


Alexey Verkhovsky

___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general


Re: [Wtr-general] Command Line Arguments

2005-08-01 Thread Alex Verhovsky

Tim Feltham wrote:


type irb at the command prompt (without the )
 

Even better, there is this RubyForge project called 'breakpoint', 
http://ruby-breakpoint.rubyforge.org/wiki/wiki.pl?HomePage, which opens 
an IRB session inside a running Ruby program. With it, you can do 
something like


test/watir/long_convoluted_test_script.rb

require 'watir'
include Watir

config = load_configuration
database = connect_to_database
ie = IE.start('http:/foo.bar.com/login')
ie.text_field(:id, 'username').set_value('me')
...
...
...
# somewhere in the middle
require 'breakpoint'
breakpoint
...

and this will execute the script until breakpoint and then open an IRB 
session in which the actual values of ie, configuration, database are 
available and even can be modified. As well as any other variable 
visible from the breakpoint location. Exiting the IRB continues the 
program.


This is often the easiest way to get to the state that you want to play 
with. Besides, you can do conditional breakpoints

breakpoint if some arbitrarily complex condition

Bottom line: don't leave home without it.

Alex

___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general


Re: [Wtr-general] Question - Why ruby?

2005-07-31 Thread Alex Verhovsky

Bret Pettichord wrote:

Python could work. Ruby was Brian Marick's choice and he was convinced 
to switch from Python to Ruby when he sat with Dave Thomas and Andy 
Hunt on a bus.


Oh! Being a devote Ruby hacker, I don't even want to imagine the 
possibilities of that bus ride not happening... :)


Seriously though, the Python vs Ruby theme is rehashed once in a while 
on ruby-talk and in other forums. The general consensus seems that 
qualities of both languages are quite similar to each other, and a 
choice between the two is a subjective choice more than anything else. 
In other words, there are many enough people who strongly prefer Ruby 
over Python (and vice versa), but they have a hard time try to explain 
the reason. :)


See also: 
http://bluebones.net/news/default.asp?action=view_storystory_id=81


Best regards,
Alexey Verkhovsky



___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general