Skip to content

Squish

This is where all questions related to Squish belong

83 Topics 216 Posts
Qt 6.11 is out! See what's new in the release blog
  • MBT questions

    Unsolved
    1
    0 Votes
    1 Posts
    3k Views
    No one has replied
  • License server api /v1/statistics behavior

    Solved license
    3
    0 Votes
    3 Posts
    4k Views
    C
    I recommend to contact technical support regarding this. However, the Floating License Server (FLS) is being superseded by the Qt License Server (QLS). And the general plan is to phase out use of FLS over time. So going forward, it is best to check the respective API of QLS instead. https://doc.qt.io/qtlicenseserver/qls-overview.html https://doc.qt.io/qtlicenseserver/qls-restapi.html
  • I want Connect AUT with Java Squish.

    Solved
    2
    0 Votes
    2 Posts
    1k Views
    C
    I recommend to contact the technical support via customer portal (https://account.qt.io). In a nutshell: Install Squish for Java on VM2. Important: In installer, choose the JRE/JDK folder that is executing your application. And double check the Java versions supported by Squish. Double check and ensure network connectivity (Squish uses TCP) between the VMs. Configure squishserver to allow connections from VM1's IP address: https://doc.qt.io/squish/how-to-do-automated-batch-testing.html#rgr-disttesting Start squishserver on VM2. Ideally use the --verbose flag, and capture the output. For example: /path/to/squishserver --verbose 2>&1 >squishserver_log.txt Configure Squish IDE to use the squishserver on VM2: https://doc.qt.io/squish/preferences-dialog.html#servers-pane
  • How to change prefix for test suite / test case directory name?

    Solved
    2
    0 Votes
    2 Posts
    1k Views
    C
    Squish typically requires these prefixes. Removing them is generally not supported.
  • How to call test methods with Python module squishtest?

    Solved python
    2
    0 Votes
    2 Posts
    2k Views
    M
    Found it. I overlooked the following traceback in the logs. Traceback (most recent call last): File "/mnt/ssd2/develop/experiments/python-squish/mysquishtest.py", line 16, in <module> squishtest.waitForApplicationLaunch() RuntimeError: Waiting for application timed out When I remove the call squishtest.waitForApplicationLaunch() it works and I can use squishtest.test.compare() to test conditions.
  • Not able to pick any object Suddenly

    Solved
    2
    0 Votes
    2 Posts
    2k Views
    K
    Resolved, just had to start a test and using the menu toolbar open application objects view before running the test
  • Launch AUT does not start application,

    Unsolved
    4
    0 Votes
    4 Posts
    2k Views
    K
    @henry.ishiyama yes, twhen its forced to run in a port nothing is listening on that port.
  • mouseClick() function does not work when coordinates are passed in

    Solved
    2
    1 Votes
    2 Posts
    2k Views
    MRosiekM
    Alright, that was quick... First thing I misinterpreted the button int value. I wanted leftButton to be pressed. I used int value 4 instead of 1. Next one was that I thought Im clicking desired object on the screen but it was composed from few others so coordinates 0,0 was pointing beyond the element which I was planning to click upon.
  • Easy identification of objects?

    Solved
    3
    0 Votes
    3 Posts
    2k Views
    MRosiekM
    @PR04 You can check in SquishIDE if object Exists with given set of properties. Frist you need to start AUT/connect to it, open Scripted Object Map and select your symbolic name (1. - on the screenshot) Later you press Check Existence (2. - on the screenshot) It will tell you if your list of properties in real name are OK and object can be found. Check out this screenshot from my SquishIDE: [image: 72637c04-cada-4bae-89ee-7fea5c28ee5e.png]
  • Squish for java, right-click to show context menu

    Solved
    2
    0 Votes
    2 Posts
    2k Views
    H
    It might be necessary specify the button as: squish.MouseButton.RightButton However it is not clear exact error message you are facing. Therefore it might be better to share support information logs in the future. For more information regarding obtaining the support information logs, please refer to the following knowledge based article. Collecting the most important information (Linux, macOS, Windows) @Pieter-Knelissen said in Squish for java, right-click to show context menu: I have a row in a table and when I right-click on the row, a context menu should appear. I can find the row in the table but have no clue how to bring up the context menu and select an item. Some trial: 'obj' is the object representing the row 'common.Applications_Setup_ContextMenu' is the name of the menu as found during recording. squish.nativeMouseClick( obj, button=RightButton ) squish.activateItem(squish.waitForObjectItem(common.Applications_Setup_ContextMenu, "Remove project")) but it complains about 'RightButton'. I tried squish.RightButton, MouseButton.RightButton and various permutations of capitalization..... I have 2 questions: what is the right way to bring up the context menu? where can I find definitions of constants like 'RightButton' ?
  • Squish for Java, select an item in a list box

    Solved
    8
    1 Votes
    8 Posts
    4k Views
    H
    @Pieter-Knelissen sorry for the delay. regarding the attributes/methos available, it depends on the UI component used and the UI structure. For example in our above sample test case "tmpObj" for the given sample application, After the test case hits the breakpoint, and see the "Variables View", you will see "type" of each local variable. And the "type" for "tmpObj" is javax_swing_JList. (Attached screenshot) Therefore, from there on, you have to look into the JList and related UI component documentation to access the desired attributes and methods. [image: 9366681d-0b7c-4dfa-93c8-2f3cb6c22144.png]
  • Question about ignored panes in Preferences / PyDev

    Solved python preferences
    2
    0 Votes
    2 Posts
    2k Views
    M
    I got this answer from support: SquishIDE is based on Eclipse, and PyDev is the Python IDE plugin Squish uses. As noted in the documentation, the Debug and Interpreters panes preferences in PyDev are ignored because Squish uses either the Python installation shipped with it or an external one configured via squishconfig. Therefore, any settings you apply in those panes will not take effect.
  • How to use Python virtual environments with Squish IDE 9.1.1?

    Solved squish python
    3
    0 Votes
    3 Posts
    2k Views
    M
    Ah, perfect. Will try this on Monday. Thanks for the link and have a nice weekend!
  • This topic is deleted!

    Unsolved
    1
    0 Votes
    1 Posts
    62 Views
    No one has replied
  • 0 Votes
    2 Posts
    7k Views
    H
    @IamSumit can you reproduce the issue and share the Support Information logs. Please refer to the following Knowledge Base Article regarding how to obtain the Support Information is https://qatools.knowledgebase.qt.io/misc/collecting-support-info/collecting-support-information-linux-mac-windows/
  • Connecting to desktop application from Squish IDE

    Unsolved
    2
    0 Votes
    2 Posts
    3k Views
    H
    @merve In case you are requirement is to use VNC, it is necessary to use Squish for VNC package. For more information regarding this, please refer to the following documentation. https://doc.qt.io/squish/squish-for-vnc-tutorials.html By the way, what is the GUI Toolkit of the application which you are interested in automating the GUI test? Is it Qt?
  • Squish WinCC OA custom widget detection

    Unsolved
    1
    0 Votes
    1 Posts
    1k Views
    No one has replied
  • Squish TeamCity integration: export JUnit XML

    Unsolved
    1
    0 Votes
    1 Posts
    1k Views
    No one has replied
  • Invalid metadata

    Unsolved
    2
    0 Votes
    2 Posts
    3k Views
    H
    @HarryGoddardTech said in Invalid metadata: I'm getting the following error when I run "Squish for Qt 9.0.0" Please clarify what you mean by this. For example, Do you get the error when launching the Squish IDE? or During the execution of the already existing test suite? It might be worth checking the "System Level" and/or "User Level" PATH environment variable to confirm no Qt related path is included.
  • Squish for Qt 9.0.0 looking for startwinaut.exe

    Solved
    2
    0 Votes
    2 Posts
    2k Views
    H
    Solved! the suit.conf file has a setting "WRAPPERS" which needs to be set to "Qt" (case sensitive). If set to "Windows" then Squish will attempt to start the AUT in a "Windows" manner (startwinaut)