From paul.rogers at shaw.ca Tue Mar 2 00:31:07 2004 From: paul.rogers at shaw.ca (Paul Rogers) Date: Mon, 01 Mar 2004 22:31:07 -0700 Subject: [Wtr-general] Page for my class In-Reply-To: <5.1.0.14.2.20040226135429.01f5cbf8@127.0.0.1> Message-ID: <000401c40017$90438b50$6400a8c0@NewDell> Came across this If you come from a vba background, you should probably get ArtonX's excellent activerubyscript package from http://www.geocities.co.jp/SiliconValley-PaloAlto/9251/ruby/main.html . It has a wsh<->ruby bridge that lets you use ruby via wsh in ie, iis, word, and wherever else you would normally use vba. It should also lower the bar for translating vba to ruby. It is a shame that the base windows installs don't provide this functionality, since it is de rigour for all modern scripting languages (I could be wrong about its inclusion, but http://rubyinstaller.sourceforge.net tells you to look at http://rubygarden.org/ruby?WindowsInstaller for a manifest and vice-versa and I don't have the patience for such nonsense). >From http://groups.google.ca/groups?dq=&hl=en&lr=&ie=UTF-8&oe=UTF-8&threadm=a 39cf4fe.0403010135.719915ca%40posting.google.com&prev=/groups%3Fhl%3Den% 26lr%3D%26ie%3DUTF-8%26oe%3DUTF-8%26group%3Dcomp.lang.ruby -----Original Message----- From: wtr-general-bounces at rubyforge.org [mailto:wtr-general-bounces at rubyforge.org] On Behalf Of Bret Pettichord Sent: 26 February 2004 12:57 To: wtr-general at rubyforge.org Cc: kanerslab at lyris.fit.edu Subject: [Wtr-general] Page for my class I wrote a page describing the test scripting class i teach based on ruby and wtr. http://www.clabs.org/wtr/index.cgi?page=/Scripting101Class _____________________________________ Bret Pettichord, Software Tester Book - www.testinglessons.com Consulting - www.pettichord.com Blog - www.io.com/~wazmo/blog Homebrew Automation Seminar March 19, Redmond, Washington www.sasqag.org/99days/#automation _______________________________________________ Wtr-general mailing list Wtr-general at rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general From chris.mcmahon at verint.com Tue Mar 2 12:35:44 2004 From: chris.mcmahon at verint.com (McMahon, Chris) Date: Tue, 2 Mar 2004 10:35:44 -0700 Subject: [Wtr-general] New to Ruby/WTR, interested in specific capabilities Message-ID: <9EE4E84F42926B49A57C9195BC0868500F6D86@droms2.co.corp.verintsystems.com> Hello... I've been reading about the Pettichord/Marick scripting class for quite a while, but I haven't been motivated (yet!) to learn Ruby. (Marick pointed me to the course materials, but some of them produce warnings under Ruby 1.8. I assume they're OK under 1.6, but I stopped investigating at that point...) However, I can find my way around Perl, and I've been using a Perl IE controller called SAMIE, and the Win32::GUITest module, which has VB-like features such as SendKeys, SendMouse, etc. But this stuff is not elegant. I've encountered several particular issues with SAMIE, and I'd like to ask if WTR addresses them: I have yet to successfully manipulate any clickable Javascript thingies in the page, although SAMIE's author claims that it's possible. I am unable to manipulate anything within an inline frame (iframe tag). This may be congenital, but if you guys have figured out how to do that, I'd be sold on WTR right now. As of today, I'm forced to punt, and treat IE like a normal Windows GUI and send an absolute mouse position and a SendKeys double-click to make stuff happen. This of course is not very maintainable, although Perl makes it pretty easy. So: is there somewhere a succinct description of each feature of WTR? Such a description would help as I start thinking about how to do this computer-assisted-testing thing. Thanks... -Chris From paul.rogers at shaw.ca Tue Mar 2 12:50:04 2004 From: paul.rogers at shaw.ca (Paul Rogers) Date: Tue, 02 Mar 2004 10:50:04 -0700 Subject: [Wtr-general] New to Ruby/WTR, interested in specific capabilities Message-ID: <2642292614d8.2614d8264229@shaw.ca> Chris, the wtr project right contains 2 different IE controllers. The original one Chris Morris wrote, and another that I wrote. We've had lots of discussion on joining the 2 but not much work. THe controller I wrote uses methods like 'clickLinkWithText' , clickButtonWithCaption so is probably more like VB than Chriss controller. I have successfully clicked things that do javascript. As for javascript popups, I can also handle those, but in a particularly ugly way. I also handle frames, but I havent tried iframes. To find the code do a search on the email archives - I still havent managed to get cvs working, and I keep getting distracted by other things. The reason I started doing this in Ruby (also after reading an article by Brian and Bret) was that I had tried the same thing in VBscript, and vb and found it too nasty. Ive never been a fan of perl, becasue of its maintainability, something that ruby does not suffer from. Hope this helps Paul ----- Original Message ----- From: "McMahon, Chris" Date: Tuesday, March 2, 2004 10:35 am Subject: [Wtr-general] New to Ruby/WTR, interested in specific capabilities > > > Hello... > I've been reading about the Pettichord/Marick scripting class > for quite a while, but I haven't been motivated (yet!) to learn Ruby. > (Marick pointed me to the course materials, but some of them produce > warnings under Ruby 1.8. I assume they're OK under 1.6, but I stopped > investigating at that point...) > However, I can find my way around Perl, and I've been using a > Perl IE controller called SAMIE, and the Win32::GUITest module, which > has VB-like features such as SendKeys, SendMouse, etc. > But this stuff is not elegant. I've encountered several > particular issues with SAMIE, and I'd like to ask if WTR addresses > them: > I have yet to successfully manipulate any clickable Javascript > thingies in the page, although SAMIE's author claims that it's > possible. > I am unable to manipulate anything within an inline frame > (iframe tag). This may be congenital, but if you guys have > figured out > how to do that, I'd be sold on WTR right now. As of today, I'm forced > to punt, and treat IE like a normal Windows GUI and send an absolute > mouse position and a SendKeys double-click to make stuff happen. This > of course is not very maintainable, although Perl makes it pretty > easy. So: is there somewhere a succinct description of each feature > of WTR? Such a description would help as I start thinking about > how to > do this computer-assisted-testing thing. > Thanks... > -Chris > > _______________________________________________ > Wtr-general mailing list > Wtr-general at rubyforge.org > http://rubyforge.org/mailman/listinfo/wtr-general > From paul.rogers at shaw.ca Tue Mar 2 23:39:00 2004 From: paul.rogers at shaw.ca (Paul Rogers) Date: Tue, 02 Mar 2004 21:39:00 -0700 Subject: [Wtr-general] New to Ruby/WTR, interested in specific capabilities In-Reply-To: <9EE4E84F42926B49A57C9195BC0868500F6D86@droms2.co.corp.verintsystems.com> Message-ID: <000001c400d9$734966b0$6400a8c0@NewDell> I took a look at Samie (Ive cc'ed Henry Wasserman the author too ) - Its very similar in concept to the controller I use. I did a search during development of mine to see if it already existed in perl, but didn't come up with anything. Henry uses similar techniques to dela with javascript boxes, security alert boxes etc as I do. I see on the page (http://samie.sourceforge.net/) that frames are handled, although I didn't see it in the source (I didn't look too hard though, Im not a big fan of perl) This looks like a good project for us to mention in the upcoming seminar ( if Henry doesn't object ) when we discuss other languages Paul -----Original Message----- From: wtr-general-bounces at rubyforge.org [mailto:wtr-general-bounces at rubyforge.org] On Behalf Of McMahon, Chris Sent: 02 March 2004 10:36 To: wtr-general at rubyforge.org Subject: [Wtr-general] New to Ruby/WTR, interested in specific capabilities Hello... I've been reading about the Pettichord/Marick scripting class for quite a while, but I haven't been motivated (yet!) to learn Ruby. (Marick pointed me to the course materials, but some of them produce warnings under Ruby 1.8. I assume they're OK under 1.6, but I stopped investigating at that point...) However, I can find my way around Perl, and I've been using a Perl IE controller called SAMIE, and the Win32::GUITest module, which has VB-like features such as SendKeys, SendMouse, etc. But this stuff is not elegant. I've encountered several particular issues with SAMIE, and I'd like to ask if WTR addresses them: I have yet to successfully manipulate any clickable Javascript thingies in the page, although SAMIE's author claims that it's possible. I am unable to manipulate anything within an inline frame (iframe tag). This may be congenital, but if you guys have figured out how to do that, I'd be sold on WTR right now. As of today, I'm forced to punt, and treat IE like a normal Windows GUI and send an absolute mouse position and a SendKeys double-click to make stuff happen. This of course is not very maintainable, although Perl makes it pretty easy. So: is there somewhere a succinct description of each feature of WTR? Such a description would help as I start thinking about how to do this computer-assisted-testing thing. Thanks... -Chris _______________________________________________ Wtr-general mailing list Wtr-general at rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general From paul.rogers at shaw.ca Wed Mar 3 11:36:22 2004 From: paul.rogers at shaw.ca (Paul Rogers) Date: Wed, 03 Mar 2004 09:36:22 -0700 Subject: [Wtr-general] New to Ruby/WTR, interested in specific capabilities Message-ID: <624e266225.66225624e2@shaw.ca> Thanks Henry - at the Agile Universe conference in Calgary in August, Brian and Bret have proposed to do a seminar on testing web applications. It is currently centrered around ruby, but we would like to expand it to other languages/techniques. SAMIE seems like an ideal candidate for use/demonstation at this. As for my ruby controller, I had lots of problems with frames. The nasty workaround was to look at all objects in a frame to find the one of interest, rather than use the object type directly. Its not nice, but it works quite reliably. Maybe one day we can improve it. Thanks for taking the time to reply. Paul ----- Original Message ----- From: Wasserman Henry Date: Wednesday, March 3, 2004 6:35 am Subject: RE: [Wtr-general] New to Ruby/WTR, interested in specific capabilities > I don't mind at all if you mention samie in your > seminar. samie does do frames, although it's a little > awkward, right now you have to count them with > debugging on first, then you're good to go. > > As you probably well know, because it uses ie's com > object, you can do anything with ie that you have the > time to code. > > - Henry > > --- Paul Rogers wrote: > > > > > > I took a look at Samie (Ive cc'ed Henry Wasserman > > the author too ) - Its > > very similar in concept to the controller I use. I > > did a search during > > development of mine to see if it already existed in > > perl, but didn't > > come up with anything. > > > > Henry uses similar techniques to dela with > > javascript boxes, security > > alert boxes etc as I do. > > > > I see on the page (http://samie.sourceforge.net/) > > that frames are > > handled, although I didn't see it in the source (I > > didn't look too hard > > though, Im not a big fan of perl) > > > > This looks like a good project for us to mention in > > the upcoming seminar > > ( if Henry doesn't object ) when we discuss other > > languages > > > > Paul > > > > > > > > -----Original Message----- > > From: wtr-general-bounces at rubyforge.org > > [wtr-general-bounces at rubyforge.org] On Behalf > > Of McMahon, Chris > > Sent: 02 March 2004 10:36 > > To: wtr-general at rubyforge.org > > Subject: [Wtr-general] New to Ruby/WTR, interested > > in specific > > capabilities > > > > > > > > > > Hello... > > I've been reading about the Pettichord/Marick > > scripting class > > for quite a while, but I haven't been motivated > > (yet!) to learn Ruby. > > (Marick pointed me to the course materials, but some > > of them produce > > warnings under Ruby 1.8. I assume they're OK under > > 1.6, but I stopped > > investigating at that point...) > > However, I can find my way around Perl, and I've > > been using a > > Perl IE controller called SAMIE, and the > > Win32::GUITest module, which > > has VB-like features such as SendKeys, SendMouse, > > etc. > > But this stuff is not elegant. I've encountered > > several > > particular issues with SAMIE, and I'd like to ask if > > WTR addresses them: > > > > I have yet to successfully manipulate any clickable > > Javascript > > thingies in the page, although SAMIE's author claims > > that it's possible. > > > > I am unable to manipulate anything within an inline > > frame > > (iframe tag). This may be congenital, but if you > > guys have figured out > > how to do that, I'd be sold on WTR right now. As of > > today, I'm forced > > to punt, and treat IE like a normal Windows GUI and > > send an absolute > > mouse position and a SendKeys double-click to make > > stuff happen. This > > of course is not very maintainable, although Perl > > makes it pretty easy. > > So: is there somewhere a succinct description of > > each feature > > of WTR? Such a description would help as I start > > thinking about how to > > do this computer-assisted-testing thing. > > Thanks... > > -Chris > > > > _______________________________________________ > > Wtr-general mailing list > > Wtr-general at rubyforge.org > > http://rubyforge.org/mailman/listinfo/wtr-general > > > > > __________________________________ > Do you Yahoo!? > Yahoo! Search - Find what you?re looking for faster > http://search.yahoo.com > From chris.mcmahon at verint.com Wed Mar 3 12:48:10 2004 From: chris.mcmahon at verint.com (McMahon, Chris) Date: Wed, 3 Mar 2004 10:48:10 -0700 Subject: [Wtr-general] RE: Wtr-general Digest, Vol 6, Issue 2 Message-ID: <9EE4E84F42926B49A57C9195BC0868500F6D8C@droms2.co.corp.verintsystems.com> > > THe controller I wrote uses methods like 'clickLinkWithText' > , clickButtonWithCaption so is probably more like VB than > Chriss controller. I know almost (see below) nothing about VB. I guess I didn't mention that I'm new to Windows, too, having spent most of my career working on Tandem and Solaris platforms. Not much GUI action on a Tandem... > > I also handle frames, but I havent tried iframes. > Unfortunately I have an application that is going to live and die with iframes. And the trouble with iframes is that the code for the stuff inside the iframe tag seems to reside on the server and is not represented in the page itself: you can't do a "view source" to find out what's happening inside that tag, as far as I can tell-- but I'm no expert. > The reason I started doing this in Ruby (also after reading > an article by Brian and Bret) was that I had tried the same > thing in VBscript, and vb and found it too nasty. Ive never > been a fan of perl, becasue of its maintainability, something > that ruby does not suffer from. I hacked out a couple of primitive VB scripts, but found that Perl was a lot more reliable when exercising the same operations, and haven't looked back, since Perl also gives you the GUITest module, the DBI::ODBC modules, etc. etc. etc. Maintainability is in the eye of the beholder-- don't *all* OO languages have maintainability problems? :-) Not that I wouldn't learn Ruby if I could find a compelling reason to do so, (I'm not religious that way about OS's or programming languages), but I find Perl congenial in many ways. I'm kind of new at this job, at this point I'm marshalling my tools for later use. My feeling at this point is that neither SAMIE nor WTR are quite ready, although I hope that if Pettichord/Marick raise the publicity levels, some folks with more skills than me might join their communities. In other words, I don't have anything happening right now to force me to negotiate the rougher parts of either SAMIE or WTR. Thanks for the reply and the research! Do you think you'll be posting anything about the Agile Universe seminar on this list? I'd like to hear about what happens there... -Chris From bret at pettichord.com Wed Mar 3 15:57:23 2004 From: bret at pettichord.com (Bret Pettichord) Date: Wed, 03 Mar 2004 14:57:23 -0600 Subject: [Wtr-general] compatability bug? Message-ID: <5.1.0.14.2.20040303144851.03e806b8@127.0.0.1> I just moved my code to Ruby 1.8 and i got an error. I have a solution, but i'm not sure whether this represents a bug or just something that i might learn from. This is the code that failed, it modifies an existing class. class IEDomFormWrapper def form return @form end end I explored this in IRB: > class IEDomFormWrapper > def form > return @form > end > end NameError: uninitialized constant IEDomFormWrapper from (irb):4 > IEDomFormWrapper => CLabs::IEC::IEDomFormWrapper > CLabs::IEC::IEDomFormWrapper => CLabs::IEC::IEDomFormWrapper > class CLabs::IEC::IEDomFormWrapper > def form > return @form > end > end => nil So this is the solution: class CLabs::IEC::IEDomFormWrapper def form return @form end end I looked through the library and found this: # backwards compatibility include CLabs::IEC But it doesn't seem to be providing complete backwards compatability. Should it? Bret _____________________________________ Bret Pettichord, Software Tester Book - www.testinglessons.com Consulting - www.pettichord.com Blog - www.io.com/~wazmo/blog Homebrew Automation Seminar March 19, Redmond, Washington www.sasqag.org/99days/#automation From chrismo at clabs.org Wed Mar 3 16:38:51 2004 From: chrismo at clabs.org (Chris Morris) Date: Wed, 03 Mar 2004 15:38:51 -0600 Subject: [Wtr-general] compatability bug? In-Reply-To: <5.1.0.14.2.20040303144851.03e806b8@127.0.0.1> References: <5.1.0.14.2.20040303144851.03e806b8@127.0.0.1> Message-ID: <4046506B.4040304@clabs.org> Bret Pettichord wrote: > I looked through the library and found this: > > # backwards compatibility > include CLabs::IEC > > But it doesn't seem to be providing complete backwards compatability. > Should it? Not for something like this: class IEDomFormWrapper def form return @form end end The include statement 'mixes-in' all of the methods in that module to whatever scope the include statement is in right at that time and place. The "class IEDomFormWrapper" statement is an absolute statement and the previous include statement has no bearing on it, so, unfortunately, your change is required. -- Chris http://clabs.org/blogki From bret at pettichord.com Wed Mar 3 16:44:30 2004 From: bret at pettichord.com (Bret Pettichord) Date: Wed, 03 Mar 2004 15:44:30 -0600 Subject: [Wtr-general] Motunes bug Message-ID: <5.1.0.14.2.20040303153915.03f00830@127.0.0.1> I'm using ruby 1.8.0 and the latest release of IEC. I have my class tests all working (with the one change mentioned in a prior email) as well as all the google tests that come with IEC. I see an error in motunes.test.browse.rb. Tests motunes.checkout.rb and motuntes.search.rb run without error. This isn't really a problem for me, but i thought i'd report it. Here's the error: Administrator at LAKATOS /cygdrive/e/iec/contrib/motunes/src $ rubywin motunes.test.browse.rb Loaded suite motunes.test.browse Started E. Finished in 3.025 seconds. 1) Error!!! test_browse(TestBrowse): WIN32OLERuntimeError: Unknown property or method : `pg_next' HRESULT error code:0x80020006 Unknown name c:/ruby/lib/ruby/site_ruby/1.8/cl/iec/cliecontroller.rb:146:in `method_missi ng' c:/ruby/lib/ruby/site_ruby/1.8/cl/iec/cliecontroller.rb:146:in `send' c:/ruby/lib/ruby/site_ruby/1.8/cl/iec/cliecontroller.rb:146:in `method_missi ng' motunes.test.browse.rb:54:in `test_browse' motunes.test.browse.rb:39 2 tests, 6 assertions, 0 failures, 1 errors _____________________________________ Bret Pettichord, Software Tester Book - www.testinglessons.com Consulting - www.pettichord.com Blog - www.io.com/~wazmo/blog Homebrew Automation Seminar March 19, Redmond, Washington www.sasqag.org/99days/#automation From bret at pettichord.com Wed Mar 3 17:05:18 2004 From: bret at pettichord.com (Bret Pettichord) Date: Wed, 03 Mar 2004 16:05:18 -0600 Subject: [Wtr-general] feedback on motunes demo Message-ID: <5.1.0.14.2.20040303160204.03f22a98@127.0.0.1> I got the motunes demo (with one bug, reported) working as it was presented at AWTA5. The neatest thing about this isn't actually documented. It's this: If you run the tests with no command line flags, nothing is visible as the test runs (although you can still *hear* the button clicks). If you run with the -v flag, you can watch the test run. And if you run with the -d flag, each control this is manipulated or verified is highlighted in red. This needs to be added to the readme. Bret _____________________________________ Bret Pettichord, Software Tester Book - www.testinglessons.com Consulting - www.pettichord.com Blog - www.io.com/~wazmo/blog Homebrew Automation Seminar March 19, Redmond, Washington www.sasqag.org/99days/#automation From chrismo at clabs.org Wed Mar 3 17:34:14 2004 From: chrismo at clabs.org (Chris Morris) Date: Wed, 03 Mar 2004 16:34:14 -0600 Subject: [Wtr-general] Motunes bug In-Reply-To: <5.1.0.14.2.20040303153915.03f00830@127.0.0.1> References: <5.1.0.14.2.20040303153915.03f00830@127.0.0.1> Message-ID: <40465D66.9090200@clabs.org> Bret Pettichord wrote: > This isn't really a problem for me, but i thought i'd report it. Actually, I left that in on purpose. Probably because it was a Borges bug and for the sake of a demo for IEC, it demos a failing bug, so I didn't see that as a problem. -- Chris http://clabs.org/blogki From chrismo at clabs.org Wed Mar 3 17:35:39 2004 From: chrismo at clabs.org (Chris Morris) Date: Wed, 03 Mar 2004 16:35:39 -0600 Subject: [Wtr-general] feedback on motunes demo In-Reply-To: <5.1.0.14.2.20040303160204.03f22a98@127.0.0.1> References: <5.1.0.14.2.20040303160204.03f22a98@127.0.0.1> Message-ID: <40465DBB.8050100@clabs.org> Bret Pettichord wrote: > This needs to be added to the readme. Yeah, I just ran out of time before AWTA and obviously haven't done much with the package since. -- Chris http://clabs.org/blogki From bret at pettichord.com Wed Mar 3 18:09:29 2004 From: bret at pettichord.com (Bret Pettichord) Date: Wed, 03 Mar 2004 17:09:29 -0600 Subject: [Wtr-general] Latest Versions? Message-ID: <5.1.0.14.2.20040303165834.0213ba70@127.0.0.1> I'm taking a close look at Chris's and Paul's versions of IEC. I'd like to make sure that i have the latest of each. For Chris, i am using the 2/23 release on rubyforge. For Paul, i am using the 1/4 zip file mailed to this list. Is this right? _____________________________________ Bret Pettichord, Software Tester Book - www.testinglessons.com Consulting - www.pettichord.com Blog - www.io.com/~wazmo/blog Homebrew Automation Seminar March 19, Redmond, Washington www.sasqag.org/99days/#automation From chrismo at clabs.org Wed Mar 3 18:25:24 2004 From: chrismo at clabs.org (Chris Morris) Date: Wed, 03 Mar 2004 17:25:24 -0600 Subject: [Wtr-general] Latest Versions? In-Reply-To: <5.1.0.14.2.20040303165834.0213ba70@127.0.0.1> References: <5.1.0.14.2.20040303165834.0213ba70@127.0.0.1> Message-ID: <40466964.7010405@clabs.org> Bret Pettichord wrote: > For Chris, i am using the 2/23 release on rubyforge. Yeup. -- Chris http://clabs.org/blogki From paul.rogers at shaw.ca Wed Mar 3 20:13:35 2004 From: paul.rogers at shaw.ca (Paul Rogers) Date: Wed, 03 Mar 2004 18:13:35 -0700 Subject: [Wtr-general] Latest Versions? Message-ID: <12831f126746.12674612831f@shaw.ca> It seems a long time ago, but I guess it is! I may have sent a few fixed bits to Jonathan as he found problems. The on eI use at work has some new things, so I'll try and zip it up tomorrow Paul ----- Original Message ----- From: Bret Pettichord Date: Wednesday, March 3, 2004 4:09 pm Subject: [Wtr-general] Latest Versions? > I'm taking a close look at Chris's and Paul's versions of IEC. > > I'd like to make sure that i have the latest of each. > > For Chris, i am using the 2/23 release on rubyforge. > > For Paul, i am using the 1/4 zip file mailed to this list. > > Is this right? > > _____________________________________ > Bret Pettichord, Software Tester > Book - www.testinglessons.com > Consulting - www.pettichord.com > Blog - www.io.com/~wazmo/blog > > Homebrew Automation Seminar > March 19, Redmond, Washington > www.sasqag.org/99days/#automation > > _______________________________________________ > Wtr-general mailing list > Wtr-general at rubyforge.org > http://rubyforge.org/mailman/listinfo/wtr-general > From jkohl at telusplanet.net Sat Mar 13 12:40:13 2004 From: jkohl at telusplanet.net (Jonathan Kohl) Date: Sat, 13 Mar 2004 10:40:13 -0700 Subject: [Wtr-general] ITP In-Reply-To: <12831f126746.12674612831f@shaw.ca> Message-ID: <000001c40922$3d6f7830$6401a8c0@tintin> A colleague sent me this link: http://www.incanica.com/itp.html Anyone have experience with this tool? It sounds interesting. Thanks; -Jonathan From bret at pettichord.com Sat Mar 13 19:24:22 2004 From: bret at pettichord.com (Bret Pettichord) Date: Sat, 13 Mar 2004 18:24:22 -0600 Subject: [Wtr-general] Scripting 101 Message-ID: <5.1.0.14.2.20040313182113.02a06238@127.0.0.1> I just blogged about WTR. My plan is to have all my class materials checked in before i teach my new hombrew class on Friday. http://www.io.com/~wazmo/blog Bret ______________________________________ Bret Pettichord, Software Tester Consultant - www.pettichord.com Author - www.testinglessons.com Blogger - www.io.com/~wazmo/blog Homebrew Automation Seminars March 19, Redmond, Washington April 30, Austin, Texas www.pettichord.com/training.html From jkohl at telusplanet.net Sun Mar 14 17:48:05 2004 From: jkohl at telusplanet.net (Jonathan Kohl) Date: Sun, 14 Mar 2004 15:48:05 -0700 Subject: [Wtr-general] Scripting 101 In-Reply-To: <5.1.0.14.2.20040313182113.02a06238@127.0.0.1> Message-ID: <000001c40a16$6a325be0$6401a8c0@tintin> Cool. I'm looking forward to where we will be in August for the XP Agile Universe conference. -Jonathan > -----Original Message----- > From: wtr-general-bounces at rubyforge.org [mailto:wtr-general- > bounces at rubyforge.org] On Behalf Of Bret Pettichord > Sent: March 13, 2004 5:24 PM > To: wtr-general at rubyforge.org > Subject: [Wtr-general] Scripting 101 > > I just blogged about WTR. My plan is to have all my class materials > checked > in before i teach my new hombrew class on Friday. > > http://www.io.com/~wazmo/blog > > Bret > > ______________________________________ > Bret Pettichord, Software Tester > Consultant - www.pettichord.com > Author - www.testinglessons.com > Blogger - www.io.com/~wazmo/blog > > Homebrew Automation Seminars > March 19, Redmond, Washington > April 30, Austin, Texas > www.pettichord.com/training.html > > _______________________________________________ > Wtr-general mailing list > Wtr-general at rubyforge.org > http://rubyforge.org/mailman/listinfo/wtr-general From bret at pettichord.com Sun Mar 14 19:12:21 2004 From: bret at pettichord.com (Bret Pettichord) Date: Sun, 14 Mar 2004 18:12:21 -0600 Subject: [Wtr-general] where i'm headed In-Reply-To: <000001c40a16$6a325be0$6401a8c0@tintin> References: <5.1.0.14.2.20040313182113.02a06238@127.0.0.1> Message-ID: <5.1.0.14.2.20040314180205.02a8bb18@127.0.0.1> I've spent some time looking at both Chris' and Paul's code and i have an idea where i'm headed. Chris assumes that we can use names to identify our objects. Paul doesn't, and i haven't so far. I was thinking of reworking my test app to have names, but when i demoed WTR to some folks last week, they all thought that was cheating, so i've decided to find a clean way to address having various ways of identifying objects. Right now i am working on making this work: form{|f| f.action == 'pause_or_stop_day'}.element{|e| e.value == 'Pause the Day' }.click Right now this is evaled immediately. I could also see the value of defining these things in objects that would defer evaluation until they were used. I'm not quite sure how that will work, but i trust there's an elegant way to do it in Ruby. I could see the value of something somewhat more concise than this, but this is very flexible. We can use Regexps and compound expressions if we have to. I know i did when i used SilkTest. I'm also thinking it's better to just use Ruby here than to try and make up a mini-language, such as Silktests tag-language. I do think we need to catch and reraise exceptions so that something more informative shows up to the user. I could see adding a logging mechanism as well. But both of those are on my back burner. Thoughts? Bret ______________________________________ Bret Pettichord, Software Tester Consultant - www.pettichord.com Author - www.testinglessons.com Blogger - www.io.com/~wazmo/blog Homebrew Automation Seminars March 19, Redmond, Washington April 30, Austin, Texas www.pettichord.com/training.html From chrismo at clabs.org Mon Mar 15 14:10:40 2004 From: chrismo at clabs.org (Chris Morris) Date: Mon, 15 Mar 2004 13:10:40 -0600 Subject: [Wtr-general] ITP In-Reply-To: <000001c40922$3d6f7830$6401a8c0@tintin> References: <000001c40922$3d6f7830$6401a8c0@tintin> Message-ID: <4055FFB0.4010902@clabs.org> Jonathan Kohl wrote: >A colleague sent me this link: >http://www.incanica.com/itp.html > >Anyone have experience with this tool? It sounds interesting. > > I've not heard of it -- also, can't get to the website. -- Chris http://clabs.org From chrismo at clabs.org Mon Mar 15 14:14:13 2004 From: chrismo at clabs.org (Chris Morris) Date: Mon, 15 Mar 2004 13:14:13 -0600 Subject: [Wtr-general] where i'm headed In-Reply-To: <5.1.0.14.2.20040314180205.02a8bb18@127.0.0.1> References: <5.1.0.14.2.20040313182113.02a06238@127.0.0.1> <5.1.0.14.2.20040314180205.02a8bb18@127.0.0.1> Message-ID: <40560085.8@clabs.org> An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/wtr-general/attachments/20040315/b992c209/attachment.html From paul.rogers at shaw.ca Mon Mar 15 14:20:35 2004 From: paul.rogers at shaw.ca (Paul Rogers) Date: Mon, 15 Mar 2004 12:20:35 -0700 Subject: [Wtr-general] ITP Message-ID: <34acd634a871.34a87134acd6@shaw.ca> I downloaded it. Seems to be a java getter/poster Im not a fan of testing this way - no access to javascript etc. But you can get very quick results Canoo web test is a similar concept based on httpUnit, although Canoo needs to be compiled for every script (if i remember correctly...) As with most things - Im sure it has a use somewhere. Im hoping somebody will write one of these tools in RUby.( ssl support, multiple requests via threads, able to support web objects sessions/ids if anyone wants to make a start ;-) ) ----- Original Message ----- From: Chris Morris Date: Monday, March 15, 2004 12:10 pm Subject: Re: [Wtr-general] ITP > Jonathan Kohl wrote: > > >A colleague sent me this link: > >http://www.incanica.com/itp.html > > > >Anyone have experience with this tool? It sounds interesting. > > > > > > I've not heard of it -- also, can't get to the website. > > -- > Chris > http://clabs.org > > _______________________________________________ > Wtr-general mailing list > Wtr-general at rubyforge.org > http://rubyforge.org/mailman/listinfo/wtr-general > From bret at pettichord.com Mon Mar 15 23:54:59 2004 From: bret at pettichord.com (Bret Pettichord) Date: Mon, 15 Mar 2004 22:54:59 -0600 Subject: [Wtr-general] ITP In-Reply-To: <000001c40922$3d6f7830$6401a8c0@tintin> References: <12831f126746.12674612831f@shaw.ca> Message-ID: <5.1.0.14.2.20040315225421.02b9cee8@127.0.0.1> At 11:40 AM 3/13/2004, Jonathan Kohl wrote: >A colleague sent me this link: >http://www.incanica.com/itp.html How is this different from or better than Canoo WebTest. Both are Java/XML protocol drivers. Bret ______________________________________ Bret Pettichord, Software Tester Consultant - www.pettichord.com Author - www.testinglessons.com Blogger - www.io.com/~wazmo/blog Homebrew Automation Seminars March 19, Redmond, Washington April 30, Austin, Texas www.pettichord.com/training.html From bret at pettichord.com Tue Mar 16 10:51:55 2004 From: bret at pettichord.com (Bret Pettichord) Date: Tue, 16 Mar 2004 09:51:55 -0600 Subject: [Wtr-general] where i'm headed In-Reply-To: <40560085.8@clabs.org> References: <5.1.0.14.2.20040314180205.02a8bb18@127.0.0.1> <5.1.0.14.2.20040313182113.02a06238@127.0.0.1> <5.1.0.14.2.20040314180205.02a8bb18@127.0.0.1> Message-ID: <5.1.0.14.2.20040316094450.02baa848@127.0.0.1> At 01:14 PM 3/15/2004, you wrote: >My first thought on the elegant way is to use the method_missing stuff, so >you could try to pare this down to: >form.pause_or_stop_day."Pause the Day" >... the spaces in the button name get a little funky ... don't know if the >above could work. This is the same sort of thing I've done already with >getting to element ids (when you have them...) My concern with this is that it muddies the semantics. Does form.pause_or_stop_day return the form with this as its name or its action. Or either? I'm reluctant to go that route. I don't much mind putting magic in the syntax, but when we put it into the semantics, it starts to make our tool indecipherable. Eventually, i'd like to get good errors hooked up, so that if this failed to find a form, it would raise an exception that a form with the name "pause_or_stop_day" was not found (instead of just returning nil as today). Making it too smart, makes it hard to accurately report why a test failed. It also creates the small possibility of a silent horror: a test that should fail continues to pass, because the designator finds another control that fits the bill. Even if this happened, a silent failure is unlikely: more likely, the test would fail elsewhere and be a bear to debug. Bret ______________________________________ Bret Pettichord, Software Tester Consultant - www.pettichord.com Author - www.testinglessons.com Blogger - www.io.com/~wazmo/blog Homebrew Automation Seminars March 19, Redmond, Washington April 30, Austin, Texas www.pettichord.com/training.html From paul.rogers at shaw.ca Tue Mar 16 12:19:21 2004 From: paul.rogers at shaw.ca (Paul Rogers) Date: Tue, 16 Mar 2004 10:19:21 -0700 Subject: [Wtr-general] where i'm headed Message-ID: <448a7244a64f.44a64f448a72@shaw.ca> just a few quick comments. 1 - not all html 'controls' live in forms - we need to make sure we can handle that. Ive also had controls that have the same name as a control in the form ie 2 controls called foo, 1 in a form, 1 out of a form 2 - not all controls in forms have names 3 - I like the idea of raising exceptions when something isnt found, but in my tests of this I ended up with lots of exception types, which got difficult eg form missing - raise formMissingException control missing - raise controlMissingException control disabled - raise controlDisabledException .... ----- Original Message ----- From: Bret Pettichord Date: Tuesday, March 16, 2004 8:51 am Subject: Re: [Wtr-general] where i'm headed > At 01:14 PM 3/15/2004, you wrote: > >My first thought on the elegant way is to use the method_missing > stuff, so > >you could try to pare this down to: > >form.pause_or_stop_day."Pause the Day" > >... the spaces in the button name get a little funky ... don't > know if the > >above could work. This is the same sort of thing I've done > already with > >getting to element ids (when you have them...) > > My concern with this is that it muddies the semantics. Does > form.pause_or_stop_day return the form with this as its name or > its action. > Or either? I'm reluctant to go that route. I don't much mind > putting magic > in the syntax, but when we put it into the semantics, it starts to > make our > tool indecipherable. > > Eventually, i'd like to get good errors hooked up, so that if this > failed > to find a form, it would raise an exception that a form with the > name > "pause_or_stop_day" was not found (instead of just returning nil > as today). > Making it too smart, makes it hard to accurately report why a test > failed. > It also creates the small possibility of a silent horror: a test > that > should fail continues to pass, because the designator finds > another control > that fits the bill. Even if this happened, a silent failure is > unlikely: > more likely, the test would fail elsewhere and be a bear to debug. > > Bret > > > ______________________________________ > Bret Pettichord, Software Tester > Consultant - www.pettichord.com > Author - www.testinglessons.com > Blogger - www.io.com/~wazmo/blog > > Homebrew Automation Seminars > March 19, Redmond, Washington > April 30, Austin, Texas > www.pettichord.com/training.html > > _______________________________________________ > Wtr-general mailing list > Wtr-general at rubyforge.org > http://rubyforge.org/mailman/listinfo/wtr-general > From jkohl at telusplanet.net Tue Mar 16 12:28:13 2004 From: jkohl at telusplanet.net (jkohl at telusplanet.net) Date: Tue, 16 Mar 2004 09:28:13 -0800 Subject: [Wtr-general] mouseover In-Reply-To: <448a7244a64f.44a64f448a72@shaw.ca> References: <448a7244a64f.44a64f448a72@shaw.ca> Message-ID: <1079458093.4057392d1ee35@webmail.telusplanet.net> Here is a method for Paul's controller I modified to cause JavaScript hover menus to popup. I haven't figured out whether I can get the controller to do a hover on the links or not yet. I should probably get CVS and developer access on the project so I can start contributing some of the methods I've come up with for things I come across. #-----------------------------OnMouseOver-------------------------------------- def doImageMouseOver (imageName) #f = @ie.document.images f = @ie.document.all f.each do |ff| begin if ff.src.downcase == imageName.downcase log "Found Image: " + ff.src.to_s ff.fireEvent("onMouseOver") log "Fired MouseOver event on image: " + ff.src.to_s return true, "" end rescue return false, [ NOTFOUND ] end end From jkohl at telusplanet.net Tue Mar 16 12:30:08 2004 From: jkohl at telusplanet.net (jkohl at telusplanet.net) Date: Tue, 16 Mar 2004 09:30:08 -0800 Subject: [Wtr-general] mouseover In-Reply-To: <1079458093.4057392d1ee35@webmail.telusplanet.net> References: <448a7244a64f.44a64f448a72@shaw.ca> <1079458093.4057392d1ee35@webmail.telusplanet.net> Message-ID: <1079458208.405739a079999@webmail.telusplanet.net> sorry - in this section: > def doImageMouseOver (imageName) > > > #f = @ie.document.images > f = @ie.document.all "f = @ie.document.images" line; not the f = @ie.document.all. Forgot to uncomment it and delete the other one when I pasted it in the email. -Jonathan Quoting jkohl at telusplanet.net: > Here is a method for Paul's controller I modified to cause JavaScript hover > menus to popup. I haven't figured out whether I can get the controller to do > a > hover on the links or not yet. > > I should probably get CVS and developer access on the project so I can > start > contributing some of the methods I've come up with for things I come > across. > > #-----------------------------OnMouseOver-------------------------------------- > > def doImageMouseOver (imageName) > > > #f = @ie.document.images > f = @ie.document.all > f.each do |ff| > > begin > > if ff.src.downcase == imageName.downcase > log "Found Image: " + ff.src.to_s > ff.fireEvent("onMouseOver") > log "Fired MouseOver event on image: " + ff.src.to_s > return true, "" > end > rescue > return false, [ NOTFOUND ] > end > end > > > _______________________________________________ > Wtr-general mailing list > Wtr-general at rubyforge.org > http://rubyforge.org/mailman/listinfo/wtr-general > From bret at pettichord.com Tue Mar 16 13:55:46 2004 From: bret at pettichord.com (Bret Pettichord) Date: Tue, 16 Mar 2004 12:55:46 -0600 Subject: [Wtr-general] where i'm headed In-Reply-To: <448a7244a64f.44a64f448a72@shaw.ca> Message-ID: <5.1.0.14.2.20040316125348.030a68e8@127.0.0.1> At 11:19 AM 3/16/2004, Paul Rogers wrote: >just a few quick comments. > >1 - not all html 'controls' live in forms - we need to make sure we can >handle that. Ive also had controls that have the same name as a control in >the form ie 2 controls called foo, 1 in a form, 1 out of a form Right. My goal is to make the form part optional. If you don't use it, then you search the entire page, and possible risk name collision. >2 - not all controls in forms have names Right. My example accessed the control by value. >3 - I like the idea of raising exceptions when something isnt found, but >in my tests of this I ended up with lots of exception types, which got >difficult eg > form missing - raise formMissingException > control missing - raise controlMissingException > control disabled - raise controlDisabledException > .... We'll need to make these all subclasses of one exception, making them easier to trap. ______________________________________ Bret Pettichord, Software Tester Consultant - www.pettichord.com Author - www.testinglessons.com Blogger - www.io.com/~wazmo/blog Homebrew Automation Seminars March 19, Redmond, Washington April 30, Austin, Texas www.pettichord.com/training.html From paul.rogers at shaw.ca Tue Mar 16 14:03:43 2004 From: paul.rogers at shaw.ca (Paul Rogers) Date: Tue, 16 Mar 2004 12:03:43 -0700 Subject: [Wtr-general] where i'm headed Message-ID: <470a594705f8.4705f8470a59@shaw.ca> "....We'll need to make these all subclasses of one exception, making them easier to trap..." This is a good idea. I hadnt thought of that. This should make it work better with test unit too ----- Original Message ----- From: Bret Pettichord Date: Tuesday, March 16, 2004 11:55 am Subject: Re: [Wtr-general] where i'm headed > At 11:19 AM 3/16/2004, Paul Rogers wrote: > >just a few quick comments. > > > >1 - not all html 'controls' live in forms - we need to make sure > we can > >handle that. Ive also had controls that have the same name as a > control in > >the form ie 2 controls called foo, 1 in a form, 1 out of a form > > Right. My goal is to make the form part optional. If you don't use > it, then > you search the entire page, and possible risk name collision. > > >2 - not all controls in forms have names > > Right. My example accessed the control by value. > > >3 - I like the idea of raising exceptions when something isnt > found, but > >in my tests of this I ended up with lots of exception types, > which got > >difficult eg > > form missing - raise formMissingException > > control missing - raise controlMissingException > > control disabled - raise controlDisabledException > > .... > > We'll need to make these all subclasses of one exception, making > them > easier to trap. > > > ______________________________________ > Bret Pettichord, Software Tester > Consultant - www.pettichord.com > Author - www.testinglessons.com > Blogger - www.io.com/~wazmo/blog > > Homebrew Automation Seminars > March 19, Redmond, Washington > April 30, Austin, Texas > www.pettichord.com/training.html > > _______________________________________________ > Wtr-general mailing list > Wtr-general at rubyforge.org > http://rubyforge.org/mailman/listinfo/wtr-general > From paul.rogers at shaw.ca Sat Mar 20 12:50:49 2004 From: paul.rogers at shaw.ca (Paul Rogers) Date: Sat, 20 Mar 2004 10:50:49 -0700 Subject: [Wtr-general] mozilla In-Reply-To: <470a594705f8.4705f8470a59@shaw.ca> Message-ID: <004501c40ea3$e1b8a890$6400a8c0@NewDell> This was posted on the clr board yesterday. I havent looked into it, but looks promising. http://groups.google.ca/groups?dq=&hl=en&lr=&ie=UTF-8&oe=UTF-8&threadm=8 3173408.0403190906.70556846%40posting.google.com&prev=/groups%3Fhl%3Den% 26lr%3D%26ie%3DUTF-8%26oe%3DUTF-8%26group%3Dcomp.lang.ruby A related link: http://www.mozilla.org/projects/xpcom/