check non internet applications

  • Thread starter Flaming Flamingo
  • Start date
F

Flaming Flamingo

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
 
R

Richard Conroy

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.blogspot.com) . 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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,276
Messages
2,571,384
Members
48,072
Latest member
FaustoBust

Latest Threads

Top