Difficulty automating Maximo using WATIR

I’ve recently been trying to get WATIR to work with IBM/MRO’s Maximo Asset Management solution. I got somewhere but it was a bit of a pain.

I was able to log in and navigate to the “Service Orders” window. I even managed (with some help – thanks Anne!) to click the “New Service Request” button (yeah, it wasn’t easy and required a bizarre hack) and got to the stage where I could enter in the details to create the service request. Unfortunately, I got stuck when trying to find the names of the text fields in that window – they just can’t be found! It’s probably a result of the DOM manipulation that I think Maximo is doing, since the HTML in “View Source” doesn’t match up at all with what’s on the screen – it’s not even close.

The Firebug Firefox extension would probably have helped, unfortunately I couldn’t use it since Maximo AM doesn’t seem to work with Firefox at all.

So, I imported the text field that I wanted to use into a Rational Functional Tester script, and it worked fine. RFT had no problem locating the object. The object hierarchy was *huge*, but at least it worked. And when I ran a script that used the text field, that worked too. So, thinking that if I copied the name of the text field into my WATIR script WATIR might be able to find it, I made the change and ran the script. Unknown Object Exception. After struggling with this for a couple of hours I admitted defeat. Which I don’t do lightly.

If anyone out there has managed to automate Maximo AM using WATIR or if you’ve run into the same problems, I’d love to know how you got on and how (if!) you got round these problems.

3 thoughts on “Difficulty automating Maximo using WATIR

  1. I know this is an old post, but did you have you had any luck with this? I have been struggling to get WATIR to drive Maximo, and can’t get beyond logging in. I can’t select any of the dropdown menu items (under “Go To”). I’ve been trying to figure out what javascript events are fired, but I’m not sure that road ends anywhere other than a dead end.

    For what it’s worth, using Maximo 7.1, I can use Firebug under Firefox (10.0.2), and I can set breakpoints in the events the top level menu items are calling (e.g. label_(event) ), but I can’t find a place to set a breakpoint for the sub-menus.

  2. Hi Jim,

    I haven’t been testing a Maximo system since I wrote this post (almost 5 years ago!). Thankfully, I remember nothing about it :) Hope it works out for you – from what I do recall, it’s going to be painful…

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>