Question

I'm using Marthon to run tests on a Java Swing application. I build the base tests by recording, then just make small modifications to the resulting Ruby tests to tweak it to fit what I need. I've run into an interesting problem where comboboxes selections do not work. For example, it'll record...

select("Value", "0.25")

...for the Value combobox, which has a valid option of 0.25 in it. However, during playback, the script pauses execution at that point. If I manually click on the combobox (just to drop it down, not actually selecting anything), then the script will select the right number and continue on.

The problem exists for ALL (so far tested) comboboxes in my application, but none of the other control types. Is there a way to select a value in the combobox that works? I don't mind tweaking the recorded script, I just want to not have to manually click on all my comboboxes each time they're in the script!

Était-ce utile?

La solution 2

Well, I figured it out already... Apparently the recorder just does a poor job at figuring out the correct label for comboboxes. I was able to get some to work by removing the "_2" or whatever at the end. Others, it took incrementing that number. So, apparently the way the recorder sees the screen layout is different from what the player sees.

edit

The newest version of Marathon appears to have fixed whatever was ailing it before. I'm now unable to duplicate the problem.

Autres conseils

Have a look at the object map files for the window and change the recognition properties. That should make this consistent.

The _2 basically means that Marathon is unable to find unique properties to identify the components.

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top