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 To: [email protected] Subject: Re: [Wtr-general] Declarative Watir scripts? Brian, I have been working on something exactly like this. And that tool you mentioned at the end of your posting would be perfect companion for it. Take a look and let me know how you think we can improve it. Right now I only use it for my company internally but I have no problems sharing it with others. Here is the source that I have been working from. Sergio -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Brian Vallelunga Sent: Thursday, February 09, 2006 9:48 AM To: [email protected] Subject: [Wtr-general] Declarative Watir scripts? 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: <watirActions> <action type='text_field' how='id' method='set' what='dateOfBirthTextBox' value='01/01/1980' /> <action type='select_list' how='id' method='select' what='stateDropDown' value='CA' /> <action type='button' how='value' method='click' what='Submit' /> <action type='expect_text' value='You live in California' /> <action type='expect_html' value='<b>Birthdate: 01/01/1980</b>' /> </watirActions> While this isn't much shorter than the actual script, it would allow for automation opportunities. I envision being able to point a program at an existing (completed) web page and have it analyze the page and generate most of this code. This sort of approach seems a natural extension of the Watir framework and I'm curious if anyone has attempted something like this? Thanks, Brian _______________________________________________ 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
