Well the script is running, but it might have an error message. If you only learned to read faster, you'd know what it was saying.

Try double clicking on this script and see if you can see what is actually happening.

  puts "hello"
  gets

Bret

On 2/8/06, Roy Sin <[EMAIL PROTECTED]> wrote:
Hi Bret,

When I double click on any of my rb files. A command window
comes up and disappear quickly but my script doesn't run.
Any idea!

But I did try
textfields_test.rb --runner=t
Thanks for that tip it looks really cool.



--- Bret Pettichord <[EMAIL PROTECTED]> wrote:

> On 2/7/06, Roy Sin <[EMAIL PROTECTED]> wrote:
> >
> > 2) If a PC has Ruby/Watir installed but don't have
> eclipse
> > ide ,is there a way to make my scripts into an
> executable
> > and the person running the scripts could just double
> click
> > on the file
>
>
> First of all, they can just double click the test.rb file
> and it will run.
> The only problem is that the output will appear in a
> temporary command
> window that will go away when the script is done.
>
> But there you can get it to run in a nifty GUI if you run
> it with a command
> line argument.
>
> In a cmd window you can do this:
>   test.rb --runner=t
>
> You can also create a shortcut to your test and then edit
> the target in the
> properties to include this argument. Then when you double
> click on it, it
> will run in its GUI.
>
>   Target: C:\workspace\watir\unittests\div_test.rb
> --runner=t
>
> Everybody should actually give this a try. It looks cool!
>
> Another idea would be to put this in a batch file.
>
> Bret
> > _______________________________________________
> Wtr-general mailing list
> [email protected]
> http://rubyforge.org/mailman/listinfo/wtr-general


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
_______________________________________________
Wtr-general mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-general

_______________________________________________
Wtr-general mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-general

Reply via email to