Does anyone know of a automated GUI testing package for that works with PyQT besides Squish? Nothing against Squish I am just looking for other packages. It would be cool if there were an open source package. I am doing my testing under Linux.
-
Y'know, I have a whole book on "Scripted GUI Testing with Ruby" (pragprog.com/titles/idgtr/scripted-gui-testing-with-ruby) that I got from a Ruby User Group meeting, but I've never read it so find out what kind of tools they use.ewall– ewall2009-10-24 00:12:41 +00:00Commented Oct 24, 2009 at 0:12
-
What are you trying to accomplish with this testing?Kaleb Pederson– Kaleb Pederson2009-12-03 16:48:11 +00:00Commented Dec 3, 2009 at 16:48
-
I'm very curious to know the final solution you used~Drake Guan– Drake Guan2011-02-10 09:43:50 +00:00Commented Feb 10, 2011 at 9:43
-
2We bought Squish. It works well and they are responsive but I love the open source python testing community and wanted to go there first.Paul Hildebrandt– Paul Hildebrandt2011-02-12 01:25:10 +00:00Commented Feb 12, 2011 at 1:25
-
The Python wiki has some info on this: wiki.python.org/moin/PyQt/GUI_Testing Hope this helps someone!sunyata– sunyata2017-08-09 15:19:06 +00:00Commented Aug 9, 2017 at 15:19
Add a comment
|
4 Answers
WATSUP has worked for me.
1 Comment
Paul Hildebrandt
Thanks, WATSUP looks interesting for Windows GUI testing. Unfortunately I need Linux PyQT GUI testing.
You should be able to use pyunit in conjunction with PyQT.
3 Comments
Paul Hildebrandt
While pyunit (called unittest in stdlib) is good for normal unit testing it doesn't handle GUI testing.
sunyata
@PaulHildebrandt At the time of writing Python unittest works with PyQt, please see this article. Kind Regards, Tord
John McGehee
I am the author of "this article." I merged the
johnnado.com / voom.net blog article into the example code github.com/jmcgeheeiv/pyqttestexample to make a unified open source project. Contributors wanted!You can use py.test with the pytest-qt plugin. There's a simple example of how it can be used here
Another alternative is to use the built-in unittest module together with QtTest (parts of QtTest has been built into PyQt). A longer example is given in this article
All of this is free and open source :)
2 Comments
sunyata
Comparing these two alternatives the first combination gives you more features and a nicer API, while the second has the advantage of not adding more dependencies
John McGehee
I am the author of "this article." I merged the
johnnado.com / voom.net blog article into the example code github.com/jmcgeheeiv/pyqttestexample to make a unified open source project. Contributors wanted!