Request for guidance Attaching Squish test to a remote running application
-
Requesting guidance for running Squish test on a application running remote using Attachable AUT running. I have used the article here : https://doc.qt.io/squish/attaching-to-running-applications.html and have something about 75% working. I am able to attach to the remote AUT and record button click etc. But when I run the test I the test does not seem running on the Attached AUT
This is the script calling the test
#!/bin/bash # Start the Squish Server cd $SQUISH_DIR/bin ./squishserver --host localhost & ./squishserver --config addAttachableAUT RemoteApp AUThostIP:39480 # Start the Test ./squishrunner --testsuite /path/squish-testcases/suite_remoteTesting --testcase tst_remote --reportgen stdout # Stop the Squish Server cd $SQUISH_DIR/bin ./squishserver --stop --host localhost &
this is my testscript am I calling/starting the remote AUT properly?
import names def main(): test.log("***************Start Remote Test***************") startApplication("RemoteApp","AUThostIP",39480) clickButton(waitForObject(names.button_jump, 50076)) clickButton(waitForObject(names.button_walk, 50076))
This is the error i receive after a while
13:07:30:056 Info: Starting server of Squish version 6.7.2. 13:07:30:057 Info: Listening on 127.0.0.1:4322 13:07:30:057 Info: Announcing server presence via SSDP 2022-11-23T13:07:30 START Start 'suite_remoteTesting' Test 'suite_remoteTesting' started 2022-11-23T13:07:30 START_TEST_CASE Start 'tst_remote' Test 'tst_remote' started (tst_remote) 2022-11-23T13:07:30 LOG /squish-testcases/suite_remoteTesting/tst_remote/test.py:4: ***************Start Remote Test*************** 2022-11-23T13:27:29 ERROR squish-testcases/suite_remoteTesting/tst_remote/test.py:5: Script Error RuntimeError: Received invalid application id. 2022-11-23T13:27:29 END_TEST_CASE End 'tst_remote' End of test 'tst_remote' 2022-11-23T13:27:29 END End 'suite_remoteTesting' End of test 'suite_remoteTesting' *******************************************************