Test without getting focus

Class library usage, coding and language questions.
heob
Posts: 4
Joined: Wed Nov 15, 2006 1:17 pm

Test without getting focus

Post by heob » Mon Oct 08, 2007 2:32 pm

is it possible with ranorex to steer windows programs without loosing the focus of the current window when clicking on the other one?

User avatar
Support Team
Site Admin
Site Admin
Posts: 11709
Joined: Fri Jul 07, 2006 4:30 pm
Location: Graz, Austria

Post by Support Team » Mon Oct 08, 2007 9:56 pm

is it possible with ranorex to steer windows programs without loosing the focus of the current window when clicking on the other one?
It depends on the action, but in most cases the control of the tested application must have the input focus.
This is not a Ranorex issue, this is windows.

Another possibility: you can set the focus back to your own application.

What do you exactly want to do? Why do you want to set the focus back?

Jenö
Ranorex Support Team

heob
Posts: 4
Joined: Wed Nov 15, 2006 1:17 pm

Post by heob » Wed Oct 10, 2007 4:27 pm

the problem is that the tester should be able to do other stuff on his pc during the test is done .. i know that's not what a application test is about but we will not test the application behind, we only want to use it ...

so the test runs and the windows application get's the focus all the time ... that's wiry because the other applications he is using loses it's focus all the time ...

thanks
Helmut

User avatar
Support Team
Site Admin
Site Admin
Posts: 11709
Joined: Fri Jul 07, 2006 4:30 pm
Location: Graz, Austria

Post by Support Team » Thu Oct 11, 2007 9:42 pm

the tester should be able to do other stuff on his pc during the test is done
This is only possible if you do not simulate mouse clicks and keyboard events. A mouse click sets automatically the focus to the control under the mouse pointer. I would suggest to simulate the same actions user does and test with a second machine if possible.

... or you use only actions without mouse movements and keyboard events.

Jenö
Ranorex Support Team

heob
Posts: 4
Joined: Wed Nov 15, 2006 1:17 pm

Post by heob » Mon Oct 15, 2007 9:53 am

i'll try...

thanks a lot.

regards