I'm testing an application that we have developed.
I have created several recordings and run them from a central controlling form.
The 1st one starts the application - and runs fine.
The 2nd one searches for a particular record - and runs fine.
The 3rd one modifies & saves the record searched for in the previous test - and runs fine.
The 4th one searches for a non-existent record, checks that it doesn't exist and then adds it. This one runs fine.
The 5th one modifies the record created previously and adds a child record. This also works fine.
Here's where the fun begins.
The 6th one is supposed to delete the child record created previously. To do this it clicks a button to show the child record, then clicks another button to delete it.
When I run this recording stand-alone from within Ranorex Studio it works fine.
When I run it as part of the overall suite of tests from the form, it fails.
Instead of clicking the button to reveal the child record, it clicks - somewhere else. The "somewhere else" appears to be a bit random, but it is rarely even on the application I'm testing. Most often it seems to be the top left of the desktop.
I have found a work-around, but it's a bit manky and I'd prefer not to have to do it, so any assistance from anyone who has seen something similar would be greatly appreciated. I'm a bit concerned because I don't know why it's happening. This means that it could fail in the future for the same unknown reason and I'll have to do the same sort of cludge fix.
The work-around is to close down the application and re-start it just before the step that fails (using Ranorex Recordings of course

Thanks in advance.