Home | Trees | Index | Help |
---|
Package guiunittest :: Module guitestcase :: Class GUITestCase |
|
object
--+ |TestCase
--+ | GUITestCase
Method Summary | |
---|---|
__init__(self,
*args,
**kwargs)
| |
Acts as if the given widget was clicked. | |
Stops the executing of the test at the caller's position, returning control to qt's main loop. | |
Sends a double-click event to the given widget. | |
This function schedules the callback to be executed when 'millis' has elapsed | |
Sends a key press event to the given widget. | |
Sends a key release event to the given widget. | |
Makes a drag with the mouse. | |
Sends a mouse move event for the given widget. | |
Sends a press event for the given widget. | |
Sends a mouse release event for the given widget. | |
Forces Qt to process any events pending in the queue. | |
Must be called in the setUp() method, giving the test widget. | |
Hook method for deconstructing the test fixture after testing it. | |
Acts as if a key was typed in the given widget. | |
Types the text over the given widget. | |
Inherited from TestCase | |
| |
| |
| |
Fail the test unless the expression is true. | |
Fail if the two objects are unequal as determined by their difference rounded to the given number of decimal places (default 7) and comparing to zero. | |
Fail if the two objects are unequal as determined by their difference rounded to the given number of decimal places (default 7) and comparing to zero. | |
Fail if the two objects are unequal as determined by the '==' operator. | |
Fail if the two objects are unequal as determined by the '==' operator. | |
Fail if the two objects are equal as determined by their difference rounded to the given number of decimal places (default 7) and comparing to zero. | |
Fail if the two objects are equal as determined by their difference rounded to the given number of decimal places (default 7) and comparing to zero. | |
Fail if the two objects are equal as determined by the '==' operator. | |
Fail if the two objects are equal as determined by the '==' operator. | |
Fail unless an exception of class excClass is thrown by callableObj when invoked with arguments args and keyword arguments kwargs. | |
| |
Run the test without collecting errors in a TestResult | |
| |
Fail immediately, with the given message. | |
Fail the test if the expression is true. | |
Fail if the two objects are equal as determined by their difference rounded to the given number of decimal places (default 7) and comparing to zero. | |
Fail if the two objects are equal as determined by the '==' operator. | |
Fail the test unless the expression is true. | |
Fail if the two objects are unequal as determined by their difference rounded to the given number of decimal places (default 7) and comparing to zero. | |
Fail if the two objects are unequal as determined by the '==' operator. | |
Fail unless an exception of class excClass is thrown by callableObj when invoked with arguments args and keyword arguments kwargs. | |
| |
| |
Hook method for setting up the test fixture before exercising it. | |
Returns a one-line description of the test, or None if no description has been provided. | |
Inherited from object | |
x.__delattr__('name') <==> del x.name | |
x.__getattribute__('name') <==> x.name | |
x.__hash__() <==> hash(x) | |
T.__new__(S, ...) -> a new object with type S, a subtype of T | |
helper for pickle | |
helper for pickle | |
x.__setattr__('name', value) <==> x.name = value |
Class Variable Summary | |
---|---|
int |
ALT = 1024 |
int |
CONTROL = 512 |
int |
LEFT = 1 |
int |
MIDDLE = 4 |
int |
NOBUTTON = 0 |
int |
RIGHT = 2 |
int |
SHIFT = 256 |
Method Details |
---|
click(self, widget, button=None, position=None, state=None)Acts as if the given widget was clicked. Equivalent to send a mousePress followed by a mouseRelease.
|
debugHere(self)Stops the executing of the test at the caller's position, returning control to qt's main loop. Useful to debug the tests. |
doubleClick(self, widget, button=None, position=None, state=None)Sends a double-click event to the given widget.
|
executeOnElapsed(self, callback, msecs)This function schedules the callback to be executed when 'millis' has elapsed
|
keyPress(self, widget, key, state=None)Sends a key press event to the given widget.
|
keyRelease(self, widget, key, state=None)Sends a key release event to the given widget.
|
mouseDrag(self, widget, pressOn, releaseOn, button=None, state=None)Makes a drag with the mouse.
|
mouseMove(self, widget, position=None, state=None)Sends a mouse move event for the given widget.
|
mousePress(self, widget, button=None, position=None, state=None)Sends a press event for the given widget.
|
mouseRelease(self, widget, button=None, position=None, state=None)Sends a mouse release event for the given widget.
|
processEvents(self)Forces Qt to process any events pending in the queue. |
setWidget(self, widget, show=True, wait=None)Must be called in the setUp() method, giving the test widget.
|
tearDown(self)Hook method for deconstructing the test fixture after testing it.
|
type(self, widget, key, state=None)Acts as if a key was typed in the given widget. Equivalent to a keyPress followed by a keyRelease.
|
typeText(self, widget, text)Types the text over the given widget. |
Class Variable Details |
---|
ALT
|
CONTROL
|
LEFT
|
MIDDLE
|
NOBUTTON
|
RIGHT
|
SHIFT
|
Home | Trees | Index | Help |
---|
Generated by Epydoc 2.1 on Wed Nov 24 14:15:09 2004 | http://epydoc.sf.net |