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 F.
On Jan 9, 2008 6:45 AM, Flaming F. [email protected] 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.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.