|RCPTT command has been recorded but this command not executed if script running [message #1771497]
||Fri, 25 August 2017 16:43
| Alexander Chernyaev
Registered: August 2017
I have to write an RCPTT test that checks the IDE S32DS response in case the user attempts to debug a C/C++ application when there is no connection to the hardware. In this case, the "P&E Connection Assistant" window should appear, on which need to press the "Abort" button. In the recording mode, I get a script that contains the following part of code:
get-window "P&E Connection Assistant" | get-button Abort | click
get-window "Problem Occurred" | get-button OK | click
In the process of executing this script, all running properly up to this part of the code. The expected window appearing, but when executing the command: "get-window "P&E Connection Assistant" | get-button Abort | сlick " appears the error message: "The Window "P&E Connection Assistant" could not be found. At get-window ... ", and the script stops working. The "P&E Connection Assistant" window remains in the foreground of the screen. I have no thoughts about how to overcome this obstacle. I also do not understand why the "exec-with-options" construction is needed. For development of tests I use RCP Testing Tool IDE, Version: 2.2.0.
Experience of using RCPTT - 2 weeks. Before that, there was an experience of using "AutoIt" and "SWTBot".
Powered by FUDForum
. Page generated in 0.02726 seconds