Phlip | 1 Jul 23:15 2003

Driving an IE file browser control from Automation

Test-firsters:

I cross-posted because it's a hard one! (FitNesse gets this because
someone's doing something similar there, so helping me helps them.)

I'm trying to drive InternetExplorer's Automation model, this time thru
Perl.

(Among other battles, I don't know how to query from Perl the list of
members of an object, or an OLE object.)

The code starts IE as a COM (ActiveX, whatever) object. Then it navigates to
a server (possibly a buggy one!).

The sub findField(type, name) finds an <INPUT> field of the given type and
name.

We find the DOM object fronting this HTML:

    <input size="72" value="" name="file" type="file">

Note the type is "file" - that creates the little "Browse" button that lets
you

Then, we try to change the field's value attribute from nothing to a sample
string...

 # see http://samie.sourceforge.net for more examples of code like this

 use strict;
(Continue reading)

Greg Bacon | 2 Jul 02:59 2003
X-Face
Picon

Re: [TFUI] Driving an IE file browser control from Automation

In message <02a101c34015$f4cea4a0$2e02a8c0 <at> windev>,
    "Phlip" writes:

: [...]
: (Among other battles, I don't know how to query from Perl the list of
: members of an object, or an OLE object.)
: [...]

Have you looked at the OLE browser that comes with the ActiveState
distribution?

Greg

------------------------ Yahoo! Groups Sponsor ---------------------~-->
Get A Free Psychic Reading! Your Online Answer To Life's Important Questions.
http://us.click.yahoo.com/Lj3uPC/Me7FAA/ySSFAA/nhFolB/TM
---------------------------------------------------------------------~->

To unsubscribe, email:
TestFirstUserInterfaces-unsubscribe@...

Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/ 

Phlip | 2 Jul 14:49 2003

[TFUI] Re: [fitnesse] Driving an IE file browser control from Automation

> If this is anything like driving the DOM through Javascript or JScript,
the
> security model will not let you programmatically set the contents of a
file
> upload field. This is to prevent hostile sites using ActiveX controls and
> the like to swipe important files from users' systems.
>
> I don't think there's any way around this - given the purpose of the
> restriction, there shouldn't be.
>
> Simes.

It's my browser. Can I turn all the "security" settings off?

--
  Phlip
    http://www.c2.com/cgi/wiki?TestFirstUserInterfaces

------------------------ Yahoo! Groups Sponsor ---------------------~-->
Get A Free Psychic Reading! Your Online Answer To Life's Important Questions.
http://us.click.yahoo.com/Lj3uPC/Me7FAA/ySSFAA/nhFolB/TM
---------------------------------------------------------------------~->

To unsubscribe, email:
TestFirstUserInterfaces-unsubscribe@...

Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/ 

Phlip | 8 Jul 16:00 2003

[TFUI] Re: using TDD in GUI - land

Sam Jost wrote:

> So I started a TDD project in c#, with nunit.
> Well, at least I tried to start it, I found it very challenging to
> think of any tests in the case of a GUI program.
> I read 'the humble dialog class' and used the guidelines inside, but
> still I stumbled upon problem after problem where reading 'TDD by
> example' had not really prepared me for.
>
> Does anyone round here does daily development of GUI programs with
> TDD? Someone got a few hints and pointers for a newb?

Yes, but not for NUnit or C#.

Does the following VB help?

    Load frmMyForm
    frmMyForm.Initialize "my data"  '  <-- public method

    myDataBase.setSomeField("")

    frmMyForm.Submit_Click  '  <-- pretend to click on a button

    Debug.Assert myDataBase.someField() = "my data"

    ' frmMyForm.Show 1
    Unload frmMyForm

We don't need to test that the Submit button itself is clickable.
Refactoring won't easily change that. That logic is in the "GUI Toolkit" -
(Continue reading)

Phlip | 14 Jul 00:42 2003

[TFUI] Review 4 graphs?

Emergent Behavior
Consider this rule:

·       Anyone who puts something in the trashcan 
which projects over the top takes the trash out.

As a metric, it balances behavior. Nobody ever has to struggle with too much in the can. Nobody needs to
appoint the job of taking out the trash. No schedules.

That kind of discipline produces instant feedback. If someone feels they take out the trash too often, only
then the team needs to add another rule.

XP says, "If something is not working, you will get evidence, very soon. We expect the process to work at all
times, so any perturbation gets noticed." Call that one big fat omniscient metric.

Why should scientist wannabes claim it's not a metric? Because it leverages subjective impressions, not
numbers. That's why it helps produce our most important goal, Simplicity.

--

-- 
  Phlip

[Non-text portions of this message have been removed]

------------------------ Yahoo! Groups Sponsor ---------------------~-->
Save up to 80% on top-quality inkjet cartridges & refill kits at Myinks.com
Free shipping on orders $50 or more to the US and Canada.
http://www.c1tracking.com/l.asp?cid=5702
http://us.click.yahoo.com/YrYXfA/AyWGAA/ySSFAA/nhFolB/TM
---------------------------------------------------------------------~->

(Continue reading)

manaster | 15 Jul 05:26 2003
Picon

[TFUI] Re: Review 4 graphs?

Hi, Phlip,

>Emergent Behavior
>Consider this rule:
>
>·       Anyone who puts something in the trashcan
>which projects over the top takes the trash out.

It's not entirely relevant, but I was immediately reminded of this:
<http://www.jnd.org/dn.mss/ToiletPaperAlgorithms.html>

Peace,
--Carl
--

-- 

------------------------ Yahoo! Groups Sponsor ---------------------~-->
Buy Natural Vitamins for Good Prostate & Male Health. $28.97
http://www.challengerone.com/t/l.asp?cid=2865&lp=prosta2.html
http://us.click.yahoo.com/qJIe0D/89VGAA/ySSFAA/nhFolB/TM
---------------------------------------------------------------------~->

To unsubscribe, email:
TestFirstUserInterfaces-unsubscribe@...

Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/ 

Phlip | 16 Jul 07:25 2003

[TFUI] TDD in French

TFUIers:

One Christophe Thibaut translated our synopsis of TDD into French:

    http://xp-france.net/cgi-bin/wiki.pl?TDDUneDefinition

I tried to stop him. ;-)

Interestingly, "deep abstractions" went as "des abstractions plus
profondes", meaning "more profound abstractions". And the XP-France Wiki did
not yet have a BarreVerte page.

Liberte Egalite et Fraternite, dudes!

--
  Phlip

------------------------ Yahoo! Groups Sponsor ---------------------~-->
Buy Ink Cartridges or Refill Kits for Your HP, Epson, Canon or Lexmark
Printer at Myinks.com. Free s/h on orders $50 or more to the US & Canada.
http://www.c1tracking.com/l.asp?cid=5511
http://us.click.yahoo.com/sOykFB/k9VGAA/ySSFAA/nhFolB/TM
---------------------------------------------------------------------~->

To unsubscribe, email:
TestFirstUserInterfaces-unsubscribe@...

Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/ 

(Continue reading)

Juan Labrada Estrada | 16 Jul 15:21 2003

RE: [TFUI] TDD in French

Thanks for the link Phlip, I was trying to help a friend that only
speaks French and Spanish to get into XP.

Juan

-----Original Message-----
From: Phlip [mailto:plumlee@...] 
Sent: Wednesday, July 16, 2003 1:26 AM
To: TestFirstUserInterfaces@...
Cc: Petralia, Paul
Subject: [TFUI] TDD in French

TFUIers:

One Christophe Thibaut translated our synopsis of TDD into French:

    http://xp-france.net/cgi-bin/wiki.pl?TDDUneDefinition

I tried to stop him. ;-)

Interestingly, "deep abstractions" went as "des abstractions plus
profondes", meaning "more profound abstractions". And the XP-France Wiki
did
not yet have a BarreVerte page.

Liberte Egalite et Fraternite, dudes!

--
  Phlip

(Continue reading)

WILLIAMS Dominic | 16 Jul 15:45 2003
Picon

RE: [TFUI] TDD in French

> Thanks for the link Phlip, I was trying to help a friend that only
> speaks French and Spanish to get into XP.

Then here is another good site for XP stuff in French:

http://www.design-up.com

There is also a book in French (excellent of course ;)

"L'eXtreme Programming", L. Bossavit, J.-L. Bénard, R. Médina et D. Williams.
Editions Eyrolles, ISBN: 2-212-11051-0

Available from:
http://www.eyrolles.com/php.informatique/Ouvrages/ouvrage.php3?ouv_ean13=9782212110517

or

http://www.fnac.com
http://www.amazon.fr

Best regards,

Dominic Williams.

------------------------ Yahoo! Groups Sponsor ---------------------~-->
Free shipping on all inkjet cartridge & refill kit orders to US & Canada. Low prices up to 80% off. We have your
brand: HP, Epson, Lexmark & more.
http://www.c1tracking.com/l.asp?cid=5510
http://us.click.yahoo.com/GHXcIA/n.WGAA/ySSFAA/nhFolB/TM
---------------------------------------------------------------------~->
(Continue reading)

Juan Labrada Estrada | 16 Jul 16:18 2003

RE: [TFUI] TDD in French

Thank you too Dominic

Juan

-----Original Message-----
From: WILLIAMS Dominic [mailto:d.williams@...] 
Sent: Wednesday, July 16, 2003 9:45 AM
To: TestFirstUserInterfaces@...
Subject: RE: [TFUI] TDD in French

> Thanks for the link Phlip, I was trying to help a friend that only
> speaks French and Spanish to get into XP.

Then here is another good site for XP stuff in French:

http://www.design-up.com

There is also a book in French (excellent of course ;)

"L'eXtreme Programming", L. Bossavit, J.-L. Bénard, R. Médina et D. Williams.
Editions Eyrolles, ISBN: 2-212-11051-0

Available from:
http://www.eyrolles.com/php.informatique/Ouvrages/ouvrage.php3?ouv_ean13=9782212110517

or

http://www.fnac.com
http://www.amazon.fr

(Continue reading)


Gmane