Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Jubula » Bringing AUT back into focus
Bringing AUT back into focus [message #1403143] Mon, 21 July 2014 16:59 Go to next message
Todd P is currently offline Todd PFriend
Messages: 10
Registered: October 2012
Junior Member
Hi there,

We have a situation where we test opening a windows folder from inside our AUT. The problem we are running into is that this new window can sometimes cover up the AUT. Then when the next test runs it fails because the AUT is not in focus. I know there are commands in the Application setting. The problem with those is that if the area in the AUT you are trying to click is covered (titlbar), you won't get the AUT in focus.

Has anyone else figured out a way to work around this? Or have a clever idea I can try?
Re: Bringing AUT back into focus [message #1403171 is a reply to message #1403143] Tue, 22 July 2014 06:46 Go to previous messageGo to next message
Achim Loerke is currently offline Achim LoerkeFriend
Messages: 376
Registered: July 2009
Location: Braunschweig, Germany
Senior Member

This can be done by using event handlers and external key combinations. Just tab through your applications until the right one is selected. I'm quite sure this has been discussed here before, just search the forum. There might be some information on the Testing Portal.

Disclaimer: If you haven't guest, I'm not writing tests on a regular basis, so I'm just forwarding information I've heard from our test consultants. Wink

- Achim
Re: Bringing AUT back into focus [message #1403534 is a reply to message #1403171] Thu, 24 July 2014 10:10 Go to previous message
Antoine VINCENT is currently offline Antoine VINCENTFriend
Messages: 8
Registered: July 2014
Junior Member
You can use directly "Alt-Tab" of your operating system. It will bring you back to the previous active window.

I just tried on Windows to put twice this action, and I went from my AUT to Jubule, then back to Jubula.

To be sure it works, you should add a wait time after sending the key combination.

Anoitne VINCENT.
Previous Topic:HTML AUT and Swing AUT
Next Topic:Show AUT's variable on screen
Goto Forum:

Current Time: Fri Apr 20 01:11:36 GMT 2018

Powered by FUDForum. Page generated in 0.01617 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software