Re: [Wtr-general] Anyone use Test::Unit::Reporter? Fwd: Help with File.join(File.dirname(__FILE__), '..') ?

2006-01-30 Thread Chris McMahon
> By the way, I still hold the admin rights to the corresponding RubyForge > project. if you use Test::Unit::Reporter nowadays and want it to suck > less, feel free to create yourself a RubyForge account and write me for > the commit rights. Apologies, but is there anything besides Reporter that w

Re: [Wtr-general] Anyone use Test::Unit::Reporter? Fwd: Help with File.join(File.dirname(__FILE__), '..') ?

2006-01-30 Thread Alexey Verkhovsky
Bret Pettichord wrote: > Anyone complaining about wierdness with 'test/unit' and require needs > to read this! In fact, at least when I wrote Test::Unit::Reporter, there was no straightforward way to inject a listener to "discovery of a test case" event. I don't know if it has changed since. B

Re: [Wtr-general] How do I validate HTML and Javascript?

2006-01-30 Thread Michael Bolton
Validating HTML and checking for HTTP errors are vastly different things. Validating HTML is something that you can do by any number of means. Some Web development tools come with syntax validators and link checkers; there is a checker at validator.w3c.org that will ensure that your HTML is syntac

Re: [Wtr-general] Tab Click

2006-01-30 Thread Michael Bolton
That's my guess too, but I'd like to hear from Meghanath. ---Michael B. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Zeljko Filipin Sent: January 30, 2006 4:08 AM To: wtr-general@rubyforge.org Subject: Re: [Wtr-general] Tab Click I guess nothing happ

Re: [Wtr-general] Anyone use Test::Unit::Reporter? Fwd: Help with File.join(File.dirname(__FILE__), '..') ?

2006-01-30 Thread Chris McMahon
> Your immediate problem is that Test::Unit::Reporter wants a bunch of test > cases and instead you are giving it a bunch of files. Test cases are objects > (that are created in these files). > > Here is some additional doc from Test::Unit that explains what is going on. > > http://www.ruby-doc.org

Re: [Wtr-general] IE window popups

2006-01-30 Thread Bret Pettichord
Although i can guess what your syntax means, i'm not quite sure where you got it. Did this come from a tool?Take a look at dialog_test.rb for current progress on supporting this.Bret On 1/26/06, Paatsch, Bernd <[EMAIL PROTECTED]> wrote: Hello, I am struggeling with IE windows popups. Is

Re: [Wtr-general] Help with File.join(File.dirname(__FILE__), '..') ?

2006-01-30 Thread Chris McMahon
On 1/30/06, Bret Pettichord <[EMAIL PROTECTED]> wrote: > This runs each test in a separate ruby process. You'll never get this to > work right with Test::Unit::Reporter. Yeah, I know. But backticks capture the output I'm looking for. If I get could get Reporter to do anything useful at all, I wa

Re: [Wtr-general] Anyone use Test::Unit::Reporter? Fwd: Help with File.join(File.dirname(__FILE__), '..') ?

2006-01-30 Thread Bret Pettichord
By default, test/unit will look for all the testcases you've defined (subclasses of Test::Unit::TestCase), put them in a suite and then execute them.This is convenient when getting started, but causes bafflement when people want to do anything complex. This is all done by Test::Unit::AutoRunner. In

Re: [Wtr-general] Help with File.join(File.dirname(__FILE__), '..') ?

2006-01-30 Thread Bret Pettichord
This runs each test in a separate ruby process. You'll never get this to work right with Test::Unit::Reporter.On 1/30/06, Chris McMahon < [EMAIL PROTECTED]> wrote:Interestingly, had a quick conversation with Jonathan Kohl who had run into weirdness with test/unit and with require.  Here's what I ha

Re: [Wtr-general] Anyone use Test::Unit::Reporter? Fwd: Help withFile.join(File.dirname(__FILE__), '..') ?

2006-01-30 Thread Dara Lillis
I'm not sure it will solve your problems, but I played around with Test::Unit::Reporter a while back and had to add "require 'stringio'" in reporter.rb to get it to work. To give appropriate credit, it was actually pointed out by another member of this list: http://www.mail-archive.com/wtr-genera

[Wtr-general] Anyone use Test::Unit::Reporter? Fwd: Help with File.join(File.dirname(__FILE__), '..') ?

2006-01-30 Thread Chris McMahon
Hi again... I'm trying to integrate Test::Unit::Reporter with my little harness script below, and struggling. Ideally, I would pass each "test_cases" array to Reporter and it would Do The Right Thing, but that's not happening. ## #ORIGINAL WORKING SCRIPT TOPDIR = Fil

Re: [Wtr-general] Help with File.join(File.dirname(__FILE__), '..') ?

2006-01-30 Thread Chris McMahon
Interestingly, had a quick conversation with Jonathan Kohl who had run into weirdness with test/unit and with require. Here's what I have now, with require replace by backticks. It seems to be working well so far: TOPDIR = File.join(File.dirname(__FILE__), '..') $LOAD_PATH.unshift TOPDIR require

Re: [Wtr-general] Help with File.join(File.dirname(__FILE__), '..') ?

2006-01-30 Thread Bret Pettichord
One problem with this is that if you have suite_foo/test_a.rb and suite_bar/test_a.rb, the second test won't be run. A quick fix would be to use "load" instead of "require".But better would be to use more of the pathname with require. Here's how i'd do it:   TOPDIR = File.join(File.dirname(__FILE__

[Wtr-general] Apache User Authentication

2006-01-30 Thread Terry Peppers
I was looking through the old Watir mailing lists for some information on how I might be able to bypass the Apache user authentication on our staging machine without using AutoIt. I didn't come up with much aside from use - AutoIt. One of our developers recommended I should try the following URL: h

[Wtr-general] How do I validate HTML and Javascript?

2006-01-30 Thread Chris Schmechel
Hi, I'd like to validate the HTML (ie. check for HTTP errors) and the Javascript on a set of pages. My script currently visits the pages via ie.goto(site). I noticed a couple of different methods -- which do I want to call? add_checker() check_for_http_error() How do I catch any errors if

[Wtr-general] Help with File.join(File.dirname(__FILE__), '..') ?

2006-01-30 Thread Chris McMahon
Hi... I have some tests in directories that share common code like suite_foo/ test_1.rb test_2.rb suite_bar/ test_3.rb test_4.rb common/ my_library.rb My test runner script dips into each directory and then back out: ## TOPDIR

Re: [Wtr-general] Tab Click

2006-01-30 Thread Zeljko Filipin
I guess nothing happens. Zeljko 2006/1/30, [EMAIL PROTECTED] <[EMAIL PROTECTED]>: > When I look at this HTML... > > > > border='0'/> > align='center' valign='bottom' onClick='doCarrierTab();' > style='cursor:hand'>Detail height='3' border='0'/> > align='center' valign='bottom'>Contents heigh

Re: [Wtr-general] question

2006-01-30 Thread Zeljko Filipin
Simple way: put your scripts in the same folder (example: script1.rb, script2.rb...) make script that calls other scripts: require "script1" require "script2" Zeljko 2006/1/27, Rexhina Alickolli <[EMAIL PROTECTED]>: > > > > Hello guys: > > I have just started to work with ruby and I am wonderi

Re: [Wtr-general] Choose File Dialog

2006-01-30 Thread Neumann, Carsten - ENCOWAY
The first f is underlined: “Öffnen” I now tried “Ö&ffnen” and it worked, thanks!   Carsten Neumann   -Ursprüngliche Nachricht- Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Im Auftrag von Michael Bolton Gesendet: Freitag, 27. Januar 2006 22:50 An: wtr-general@rubyforge.org