Skip to content

Squish

This is where all questions related to Squish belong

79 Topics 202 Posts
  • Launch AUT does not start application,

    Unsolved
    2
    0 Votes
    2 Posts
    103 Views
    H
    @Kenneth17 By the way, does the same issue can be reproduced while launching the application via "startaut" tool? Ex: startaut --verbose --port=9999 "C:\Program Files\MRMC\MHC\client\MHCClient.exe" For more information regarding launching application via "startaut" tool, please refer to our following documentation. https://doc.qt.io/squish/attaching-to-running-applications.html https://doc.qt.io/squish/cli-startaut.html#startaut
  • Easy identification of objects?

    Unsolved
    3
    0 Votes
    3 Posts
    710 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

    Unsolved
    2
    0 Votes
    2 Posts
    148 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
    546 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]
  • How to change prefix for test suite / test case directory name?

    Unsolved
    1
    0 Votes
    1 Posts
    120 Views
    No one has replied
  • Question about ignored panes in Preferences / PyDev

    Solved python preferences
    2
    0 Votes
    2 Posts
    213 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
    282 Views
    M
    Ah, perfect. Will try this on Monday. Thanks for the link and have a nice weekend!
  • I want Connect AUT with Java Squish.

    Unsolved
    1
    0 Votes
    1 Posts
    223 Views
    No one has replied
  • This topic is deleted!

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

    Unsolved license
    1
    0 Votes
    1 Posts
    132 Views
    No one has replied
  • 0 Votes
    2 Posts
    6k 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
    2k 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
    520 Views
    No one has replied
  • Squish TeamCity integration: export JUnit XML

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

    Unsolved
    2
    0 Votes
    2 Posts
    1k 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
    496 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)
  • Check CSS pseudo elements with squish web API

    Unsolved
    2
    0 Votes
    2 Posts
    1k Views
    H
    You can execute JavaScript code with "evalJS" function. Following is an example, if you want to get the content of the element created by "::after" CSS pseudo element, ~ Squish script in Python ~ tmp = evalJS(f'let tmp = window.getComputedStyle(document.getElementsByClassName("ribbon")[0], "::after").content; tmp') test.log(f'{tmp}') ~ Squish script in Python ~ ~ Associated HTML code ~ <html> <head> <title>Test</title> <style> .ribbon::after { content: "This is a content added by ::after of CSS pseudo element."; background-color: #ffba10; border-color: black; border-style: dotted; } </style> </head> <body> <p class="ribbon">Look at the orange box after this text. </p> </body> </html> ~ Associated HTML code ~ NOTE : For more information regarding "evalJS" function and its usage, please refer to our following documentation. https://doc.qt.io/squish/web-evaljs-function.html#web-evaljs-function https://doc.qt.io/squish/how-to-use-the-web-api.html#how-to-use-evaljs
  • 1 Votes
    3 Posts
    985 Views
    MRosiekM
    Hi @jagadish , thank you for your answer. Using Squish IDE when I run automatic tests is not an option. Im only using squishtest module from python code. Well that suggestion about using TightVNC as another process controlled from python was the best option for me. I just run TightVNC client via subprocess module and later when tests finished i just killed it.
  • Issue Performing Right-Click with Mouse Click Function Using Only Two Coordinates

    Unsolved
    3
    0 Votes
    3 Posts
    1k Views
    U
    @jagadish Thank you
  • Animation testing in Squish: Cup filling animation

    Unsolved
    2
    0 Votes
    2 Posts
    753 Views
    J
    @Pritha-Suresh you can modify the path where the video is getting saved by passing the path to the "test.startVideoCapture(/path)" to do animation testing you will need external tools like opencv or someting similar. It will be easier to test any internal property corresponding to the animation rather than attempting to test the filling animation.