PySide Bugzilla Closed for New Bugs

PySide is now a Qt Add-on and uses the Qt Project's JIRA Bug Tracker instead of this Bugzilla instance. This Bugzilla is left for reference purposes.

Bug 872 - Squish GUI Tests work with QT & PyQt but not Pyside.
: Squish GUI Tests work with QT & PyQt but not Pyside.
Status: CLOSED FIXED
Product: PySide
Classification: Unclassified
Component: PySide
: 1.0.3
: PC Linux
: P3 normal
Assigned To: renato filho
:
:
:
  Show dependency treegraph
 
Reported: 2011-06-01 04:08 EEST by mjackson
Modified: 2011-06-22 20:14 EEST (History)
9 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description mjackson 2011-06-01 04:08:02 EEST
Hey Guys, trying to get "Squish" to work with PySide but not having much luck.

Works out of the box with PyQt & native QT but in my test cases in PySide time
out.

The docs talk about squish inserting a hook into the QT executable (it's
designed for testing C++ binaries) but not how this hook is achieved.

    """The squishserver starts the AUT and injects the Squish hook into it. The
hook is a small library that makes the AUT's live running objects accessible
and that can communicate with the squishserver."""

Also the QT docs talk about using squish
http://developer.qt.nokia.com/wiki/Category:Tools::Squish

but again nothing that gives me much as to why PySide isn't compatible or how
to go about making it work.

example app:

#!/usr/bin/env python

from PySide.QtGui import *
from PySide.QtCore import *


class MyMainWindow(QMainWindow) :
    def __init__(self, parent=None) :
        QMainWindow.__init__(self, parent=None)

def main() :
    app = QApplication([])
    window = MyMainWindow()
    window.show()
    app.exec_()


if __name__ == '__main__' :

    main()

example squish test (simply open & close the application):

def main():
    startApplication("test.py")
    sendEvent("QCloseEvent", waitForObject(":_MyMainWindow"))


startApplication("test.py") works and the application opens but 
sendEvent("QCloseEvent", waitForObject(":_MyMainWindow")) times out and
eventually errors with ::

Detail LookupError: Object ':_MyMainWindow' not found. Could not match
properties:
    type for object name: ':_MyMainWindow' 


tested with:
PySide v1.0.1 / PySide v1.0.3
Squish v4.0.3

definitely works with
PyQt 4.7.2:


Cheers dudes.
Comment 1 renato filho 2011-06-20 23:36:45 EEST
fixed on shiboken commit:

commit 2ca9a8b3963b4d8896c4a55afec9161c38574acc
Author: Renato Filho <renato.filho@openbossa.org>
Date:   Mon Jun 20 15:18:22 2011 -0300

and pyside commit:

commit 7220804be6899b59ae267c8432fbaf05a90f5d96
Author: Renato Filho <renato.filho@openbossa.org>
Date:   Mon Jun 20 15:23:04 2011 -0300
Comment 2 renato filho 2011-06-22 20:14:07 EEST
release 1.0.4