Re: [Wtr-general] Are there any References to Ruby/Watir written byTesters?

2006-02-09 Thread Beaton, Malcolm
I have also bounced off this one and found my apple scripting skills haven't helped me greatly but I did come across this post on the Agile Testing mailing list (hopefully attached) This may help you a little (I mailed him straight away to ask to be put on the list) If it doesn't come through as

[Wtr-general] Modifying Watir source

2006-02-09 Thread Brian Vallelunga
I have been using Watir for two days now and want to know about how to modify the source watir.rb file. I installed the one-click install of Watir. What did that do exactly? Does it install pre-compiled files, or is everything source-based? What I'm trying to do is modify the watir.rb file so

Re: [Wtr-general] Are there any References to Ruby/WatirwrittenbyTesters?

2006-02-09 Thread Thomas Healy
Michael, "Imagine trying to create an automated spelling and grammar checker without really *learning* English." -- Actually, No... that is a programmers job... I am not making the spelling checker... I am checking that the spell checker catches all the mis-spellings on the page... ... I

Re: [Wtr-general] Are there any References to Ruby/Watir written byTesters?

2006-02-09 Thread Cain, Mark
My $.02 I have found the unittests invaluable for leaning a Watir as well as automation test case structure. I have ripped-offborrowedsome much from that source, and customized for my need, I cant even begin to tell you! The learning curve can be steep down the automation path, but if

Re: [Wtr-general] Modifying Watir source

2006-02-09 Thread Angrez Singh
Hi Brian,Just a thought, how about using regular expressions for matching name of such controls, whose value changes upon the way they are embedded inside the other controls? In that way you don't have to change the watir.rb file.Regards,Angrez ___

Re: [Wtr-general] Modifying Watir source

2006-02-09 Thread Brian Vallelunga
Excellent! Thank you very much. This makes my life a whole lot easier. I realize the "/" signifies the start and end of a regex, butWhat does the $ mean? Brian From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Bret PettichordSent: Thursday, February 09, 2006 11:30 AMTo:

[Wtr-general] Declarative Watir scripts?

2006-02-09 Thread Brian Vallelunga
As I was typing in line 261 of very basic and repetitive Watir code, I that much of this scripting should be able to be done declaratively, especially when using the scripts to simply input values and check responses. Has anyone done anything like this? I envision an XML action list like:

Re: [Wtr-general] Are there any References toRuby/WatirwrittenbyTesters?

2006-02-09 Thread Michael Bolton
Michael, "Imagine trying to create an automated spelling and grammar checker without really *learning* English." Actually, No... that is a programmers job... I am not making the spelling checker... I am checking that the spell checker catches all the mis-spellings on the page... ... I

Re: [Wtr-general] Access denied problem is driving me nuts

2006-02-09 Thread Attebery, Bill
Title: Re: Access denied problem is driving me nuts This is in response to Access denied problem is driving me nuts dated Jan 19, 2006: I'm new to watir and ruby and am currently checking it's feasibility against some of our in-house applications, one of the apps uses frames and most of

Re: [Wtr-general] Are there any References toRuby/WatirwrittenbyTesters?

2006-02-09 Thread Chris McMahon
WATIR is like a debugger, in that debuggers neither find nor fix your bugs; YOU do that. Rest assured, though, that learning Ruby is one of the more pleasant experiences you'll have learning a programming language. And you might want to review the list of helpful things that I posted in the

Re: [Wtr-general] Declarative Watir scripts?

2006-02-09 Thread Thomas Healy
Thanks Sergio... That is perfect... Exactly what I am looking for... A canned set of scripts to do web testing... No fuss, no muss... Regards, Thom -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Sergio Pinon Sent: Thursday, February 09, 2006 1:00 PM

Re: [Wtr-general] Access denied problem is driving me nuts

2006-02-09 Thread Chris McMahon
if I put the domain of the webpage that's causing problems into my 'Trusted Sites' in IE settings, it also gets around the 'Access denied' problems with frames. For test purposes, I always have my IE set to the lowest possible security. This eliminates a lot of trouble. -Chris

Re: [Wtr-general] Declarative Watir scripts?

2006-02-09 Thread Bill Agee
On 2/9/06, Brian Vallelunga [EMAIL PROTECTED] wrote: As I was typing in line 261 of very basic and repetitive Watir code, I that much of this scripting should be able to be done declaratively, especially when using the scripts to simply input values and check responses. Has anyone done

Re: [Wtr-general] Using Watir/Ruby scripts

2006-02-09 Thread Pierre Garigue
For example people have been using Perl rather than Bash for system admin for years. Traditionally people using Bash have use a lot of other languages such as sed and awk to do their work. the main advantages of using a langauge like Perl or Ruby are: * portability over operating

Re: [Wtr-general] Declarative Watir scripts?

2006-02-09 Thread Hugh Sasse
On Thu, 9 Feb 2006, Bill Agee wrote: On the other hand, not using the XML config files will probably make for a steeper learning curve. The tradeoffs are interesting. Why is this, do you think? OK, XML syntax is pretty standard, but the semantics will have to be learned. At least with Ruby

Re: [Wtr-general] Access denied problem is driving me nuts

2006-02-09 Thread Bret Pettichord
Thanks for sharing your solution. Very helpful. ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general

[Wtr-general] How do you find a specific string in an HTML page?

2006-02-09 Thread Paul Carvalho
Hi there, I am trying to find a way to find a particular string in an HTML page and save it to a variable. It seems simple enough, but I can't find the commands to help me do it yet. Our Dot-Net app assigns Unique ID's to various objects within the system. For example, if you create a new

Re: [Wtr-general] How do you find a specific string in an HTML page?

2006-02-09 Thread Sergio Pinon
I always like to use the _javascript_ objects. So one way is to be able to get the _javascript_ underlying object from the div reference in WATIR. Then when you get that just call the getAttribute() method on that object and pull out the attribute that you would like. Another way would be

Re: [Wtr-general] Ruby on AIX

2006-02-09 Thread Rose Cao
Yes, this is one of the options need be considered. Thanks, Rose Hugh Sasse [EMAIL PROTECTED] Hugh Sasse [EMAIL PROTECTED] Sent by: [EMAIL PROTECTED] 02/09/2006 01:20 PM Please respond to wtr-general To wtr-general@rubyforge.org cc Subject Re: [Wtr-general] Ruby on AIX

Re: [Wtr-general] Declarative Watir scripts?

2006-02-09 Thread Bill Agee
On 2/9/06, Hugh Sasse [EMAIL PROTECTED] wrote: On Thu, 9 Feb 2006, Bill Agee wrote: On the other hand, not using the XML config files will probably make for a steeper learning curve. The tradeoffs are interesting. Why is this, do you think? OK, XML syntax is pretty standard, but the

Re: [Wtr-general] How do you find a specific string in an HTML page?

2006-02-09 Thread Michael Bolton
Regular expressionliness is next to godliness. # This next line will set its_there to true if, in the html for the page, it sees # the string "customerID="followed by any seventeen characters, and # (courtesy of the parens) will set $1 to whatever those seventeen # characters are.

Re: [Wtr-general] Using Watir/Ruby scripts

2006-02-09 Thread Michael Bolton
Tonight's example: parsing an HTML document to find a regular _expression_. I'm not aware of any simple way to get a shell script to download a page, follow a link, grab a graphic from a page, etc., etc., etc. The purpose of any powerful language is to make stuff easier. Shell scripts are