Skip to content

Squish

This is where all questions related to Squish belong

67 Topics 173 Posts
  • Squish WinCC OA custom widget detection

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

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

    Unsolved
    2
    0 Votes
    2 Posts
    815 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
    274 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
    714 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
    580 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
    705 Views
    U
    @jagadish Thank you
  • Animation testing in Squish: Cup filling animation

    Unsolved
    2
    0 Votes
    2 Posts
    467 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.
  • Verification Points and Global Scripted Object Map

    Unsolved
    2
    0 Votes
    2 Posts
    542 Views
    JakubTopolskiJ
    Hi there! How about using text.vpWithObject? You should be able to pass a realname from your custom global object map as the second parameter.
  • 0 Votes
    2 Posts
    727 Views
    JakubTopolskiJ
    Hi Mike, I guess you are defining this function in a python module other than test.py. In general you have at least to ways to include such module in your test: source it - https://doc.qt.io/squish/source-function.html#source-function use native python imports The first approach lets you use your function as it is. However, in most of the cases I recommend using native python import, even though it may require some extra work from you. Your custom Python modules won't have any knowledge of the Squish API until you import the required modules—like the test module you mentioned. import test def addMessageToLog(self, message): test.log(message) You can learn more about it in the https://qatools.knowledgebase.qt.io/squish/howto/using-squish-functions-python-modules-packages/ knowledge base article.
  • This topic is deleted!

    Unsolved
    1
    0 Votes
    1 Posts
    9 Views
    No one has replied
  • Modify picker tool to ignore certain objects

    Solved
    2
    0 Votes
    2 Posts
    537 Views
    H
    You can modify ControlsExt.qml to do this: https://doc.qt.io/squish/how-to-use-the-qml-extension-api.html#qml-extension-api Modify the isIgnored function in the qml file.
  • Coding squish python with PyCharm

    Unsolved
    4
    0 Votes
    4 Posts
    2k Views
    R
    @papers, please To code and test Squish Python scripts with PyCharm, first ensure Squish is installed and properly configured on your system. Add the Squish binary path to the environment variables so PyCharm can access Squish commands. In PyCharm, set up a new Python project and configure the interpreter to include Squish libraries. You can now write and test Squish scripts directly within PyCharm's editor.
  • 如何在pycharm中运行squish生成的代码?

    Unsolved
    3
    0 Votes
    3 Posts
    827 Views
    H
    Similar discussion was posted previously. https://forum.qt.io/topic/150569/coding-squish-python-with-pycharm
  • GitHub Copilot in Squish

    Unsolved
    3
    0 Votes
    3 Posts
    807 Views
    S
    Question first but if answer is no right now, could be a feature request ...
  • Binaries for MacOS ARM

    Unsolved
    2
    0 Votes
    2 Posts
    583 Views
    SGaistS
    Hi, AFAIR, 6.2 is too old to have a pre-built package for macOS ARM.
  • Issue with 'xlib' platform plugin.

    Unsolved
    6
    0 Votes
    6 Posts
    1k Views
    P
    I am currently in contact with Squish's QA support, will post the solution here if/when we find it.
  • FileNotFoundError when running test remotely

    Unsolved
    4
    0 Votes
    4 Posts
    1k Views
    H
    In case you want to access to file on remote system (where squishserver is running), you should access them via functions offered by "remotesystem" object. For more information regarding this object please refer to the following documentation. https://doc.qt.io/squish/squish-api.html#remotesystem-object
  • File dialogs in QML application

    Unsolved
    2
    0 Votes
    2 Posts
    700 Views
    H
    As workaround to overcome native file dialog, please refer to the following Knowledge Base article. https://kb.froglogic.com/squish/qt/howto/automating-native-file-dialogs/
  • 0 Votes
    3 Posts
    810 Views
    S
    Yes, import urllib.request is the correct one. But I used import urllib just to reproduce the fatal error while running the squish test. urllib is not the concern of this topic. I want to discuss the exit code of squishrunner with --retry 1 whenever there is a fatal error. I would expect the non-zero exit code but it returns 0.