Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Request for guidance Attaching Squish test to a remote running application
Forum Updated to NodeBB v4.3 + New Features

Request for guidance Attaching Squish test to a remote running application

Scheduled Pinned Locked Moved Unsolved General and Desktop
1 Posts 1 Posters 327 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • B Offline
    B Offline
    bril
    wrote on last edited by
    #1

    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'
    *******************************************************
    
    
    1 Reply Last reply
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved