TESTAR_dev icon indicating copy to clipboard operation
TESTAR_dev copied to clipboard

Cannot be used with multiprocess programs

Open ghost-cai opened this issue 2 years ago • 2 comments

Cannot be used with multiprocess programs. Such as WPS Office which from China. Useing window_title ,the widget could not be detected. No green point.

ghost-cai avatar Sep 13 '23 01:09 ghost-cai

Thanks @ghost-cai , I'm going to add more information about this issue to be tracked by our team.

System Under Test WPS Office: https://www.wps.com/

SUT Connection Issues due to multiprocess (Maybe be related with #68 )

  • Using COMMAND_LINE with the default launcher "C:\Users\testar\AppData\Local\Kingsoft\WPS Office\ksolaunch.exe" does not work because the SUT later executes another process named wpx.exe. As mentioned, this is due to multiprocess limitations.

image

  • Using COMMAND_LINE with the executable "C:\Users\testar\AppData\Local\Kingsoft\WPS Office\12.2.0.13215\office6\wps.exe" launches the SUT and allows TESTAR to connect.

image

Widget recognition issue due to Qt system

  • The default desktop_generic protocol with the adequate COMMAND_LINE allows TESTAR to recognize the widgets but are recognized as Blocked by our UIAutomation. For this reason, these are not displayed as clickable (green dot).

image

  • This seems to be related to the fact that WPS Office is a Qt application #51 .
  • We need to work on #299, which contains, in addition to the visual feature, a fix for Qt applications.

image

ferpasri avatar Sep 15 '23 10:09 ferpasri

Working on a solution: master_desktop_Qt

ferpasri avatar Sep 20 '23 12:09 ferpasri

Thanks for the report,

With the update #388

  1. TESTAR has been updated to derive actions in Qt applications

https://github.com/TESTARtool/TESTAR_dev/wiki/TESTAR-for-Qt-applications

  1. The SUTProcesses setting has been refactored to allow the connection with multi-processes SUTs

The TESTAR user can indicate with regular expressions which processes conform to the SUT ( .*wps.exe.* )

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

multiprocess

ferpasri avatar Jun 18 '24 08:06 ferpasri