[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

check non internet applications

Flaming Flamingo

1/9/2008 6:46:00 AM

Hi,
Has anyone experience with non internet applications?
I would like to check if Word is active and if so, close it.

A test Iâ??m making opens a file (pdf, doc, etc), has to checks if it
opens correct and then close it.

Any pointers are welcome!

Cheers,
Flaming Flamingo
--
Posted via http://www.ruby-....

1 Answer

Richard Conroy

1/9/2008 12:10:00 PM

0

On Jan 9, 2008 6:45 AM, Flaming Flamingo <giel@degekste.com> wrote:
> Hi,
> Has anyone experience with non internet applications?
> I would like to check if Word is active and if so, close it.
>
> A test I'm making opens a file (pdf, doc, etc), has to checks if it
> opens correct and then close it.

Theres lots of good stuff on Ruby on Windows
(http://rubyonwindows.bl...) . Its
certainly possible to open word docs and program against them with
their OLE interface.
PDF requires different (cross platform) APIs.

Its pretty fun to open a word doc in IRB and start navigating around
it. I haven't done much in
the way of exception handling though with OLE (because I don't really
know the API), but
I get the impression that it will fail fast, and fail appropriately
for your tests.