TESTAR_dev icon indicating copy to clipboard operation
TESTAR_dev copied to clipboard

Handling multiple SUT processes

Open pekkakaho opened this issue 7 years ago • 2 comments

Happened with IE but not with Chrome:

SUT has a modal popup that is another process, and TESTAR tries to bring original process to foreground and that does not work because of modal popup.

pekkakaho avatar May 17 '18 09:05 pekkakaho

The popup element must be this or one that works similarly: https://www.w3schools.com/jsref/met_win_alert.asp

Note: The alert box takes the focus away from the current window, and forces the browser to read the message. Do not overuse this method, as it prevents the user from accessing other parts of the page until the box is closed.

If you run this popup window and use TESTAR to connect with Windows_Title, you detect it. However, it is a process different from the SUT, it's not easy to work with these windows.

At the moment I'm using this piece of code taken from DefaultProtocol to close the window if we lose focus(on DeriveActions method):

solucionenter

ferpasri avatar May 24 '18 08:05 ferpasri

I think I need to look into handling multiple processes as Ponsse GUI has at least 2 processes.

pekkakaho avatar Jun 19 '18 10:06 pekkakaho

The SUTProcesses setting has been refactored to allow the connection with multi-processes SUTs #388

The TESTAR user can indicate with regular expressions which processes conform to the SUT

https://github.com/TESTARtool/TESTAR_dev/wiki/3-TESTAR-configuration-and-settings#connect-with-a-multi-processes-sut-advanced-dialog

image

ferpasri avatar Jun 18 '24 08:06 ferpasri