Is it possible to 'see' by using e.g. VNC actual GUI when executing tests using squishtest python library?
-
Hello,
To be started with, I am running my AUT on remote machine using Linux like OS. This application is served inside docker container which also forwards VNC ports and squish related ports.
I have simple test cases written in python using squishlibrary. Basically what I would want to achieve is to see actual GUI when executing these test cases. Something similar when I open "Remote Control" in Squish IDE.
What I have achieved so far is:
I was able to attach to my application using: squishtest.attachToApplication(aut) method with configured toolkit as "Qt". After that I am able for example fetch some properties from my app and test their values.I m wondering if it is possible to configure or attach to my application in some way that it will allow me to see GUI interface.
I have found method called: connectTo(target) but I am not able to run it with success. I thought that I can use this method instead attachTo and get visual on my UI.
PS. When I use connectTo("vnc://192.168.0.170:5900") I get following error:
Squish couldn't start the AUT because the program doesn't exist. Make sure the AUT is really built and was not removed. Also make sure that the path to the AUT is correct in the settings.PS. I am able to connect to my app using VNC when I use VNC client like e.g. TightVNC over 5900 port and then I am able to see GUI and interact with it using mouse, keyboard etc.
Could you please help me with this matter?
Best Regards,
Mateusz -
Hi @MRosiek
best way to see your remote screen is using the "Remote Control" in Squish IDE. from where you can use all other features of squish like the record video etc..
In your case its simple just open the VNC display on which ever your already using the TightVNC over 5900 port and run your test case,
You will see the application being launched by Squish and tested by Squish on this display.I have used this in past and it works fine, this should solve your situation.
Let me know if this helps.You can always raise support tickets directly from SquishIDE
https://doc.qt.io/squish/collect-information-for-squish-support-dialog.html