RE: [PHP] need browser auto-form predictable fill-in randomizer addon

2009-11-20 Thread Bob McConnell
From: Daevid Vincent

> I have a form with probably 100+ elements from input, checkbox, select
> boxes, textareas, etc. It's extremely tedious to fill these in all the
time
> and submit while developing/testing.
> 
> Anyone know of a plugin to Firefox (or IE for that matter) that will
fill in
> the fields, select stuff, check stuff, etc. with some modicum of
> predictability. Random text only goes so far when debugging as you
don't
> necessarily know what the field SHOULD contain.

The Selenium IDE plug-in records a macro when you fill out the form. You
can run, edit and save that macro, or export it to a half dozen
different languages, then copy and edit those scripts, etc. I record
whole session scenarios, export them to Perl and run them through the
Selenium Remote Control server. I manage them with Perl's Test::Harness.
I am slowly building up a regression test suite for a commercial site. I
tried to do it in PHP, but couldn't find a functional test harness that
wasn't OO based. (Unfortunately, after 40 years of procedural
programming, mostly in assembly languages, I have no class.)

One note, the IDE will not import scripts once they are exported. You
can only load scripts that were saved. These appear to be an xhtml
format.

Bob McConnell

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] need browser auto-form predictable fill-in randomizer addon

2009-11-19 Thread Ashley Sheridan
On Thu, 2009-11-19 at 13:15 -0800, Daevid Vincent wrote:

> I have a form with probably 100+ elements from input, checkbox, select
> boxes, textareas, etc. It's extremely tedious to fill these in all the time
> and submit while developing/testing.
>  
> Anyone know of a plugin to Firefox (or IE for that matter) that will fill in
> the fields, select stuff, check stuff, etc. with some modicum of
> predictability. Random text only goes so far when debugging as you don't
> necessarily know what the field SHOULD contain.
>  
> It seems the auto-fill-in plugins I found so far are designed for the
> average user and do mostly, name, email, password, address, etc... Stuff the
> average user would fill in often.
>  
> My form is nothing like that. It's for submitting incidents, and I'm sure
> I'm not the only one who makes forms that aren't just user registration or
> product order forms.
>  
> I found this bookmarklet which is close, but as you see by my comment there,
> it isn't all that useful.
> http://www.phpied.com/form-auto-fill-bookmarklet/#comment-71802
>  
> 
>   Daevid Vincent Says: November
>  18th, 2009
> at 10:41 pm 
> 
> This is awesome, however I would like it to be a bit more "predictable".
> Could you make it so that any text fields (input,textarea,etc) are the
> _name_ of the tag. so if I have: 
> 
> 
> 
> Then your script would put the string "serial_number" or "Serial Number" or
> something in the text box. This way, in debugging, I know what to expect in
> that $_POST['serial_number'] value.
> 
>  


Couldn't you just fill it in once, and then let your browser remember it
for you?

Thanks,
Ash
http://www.ashleysheridan.co.uk