Merge lp://staging/~andrea.corbellini/a4/test-suite into lp://staging/a4
Proposed by
Andrea Corbellini
Status: | Merged |
---|---|
Approved by: | Andrea Corbellini |
Approved revision: | 32 |
Merged at revision: | 52 |
Proposed branch: | lp://staging/~andrea.corbellini/a4/test-suite |
Merge into: | lp://staging/a4 |
Diff against target: |
777 lines (+443/-288) 8 files modified
Makefile (+4/-0) test.py (+45/-0) test_images/drawing.svg (+0/-118) test_images/roi.svg (+0/-170) tests/images/drawing.svg (+118/-0) tests/images/roi.svg (+170/-0) tests/opening_files.py (+39/-0) tests/testhelpers.py (+67/-0) |
To merge this branch: | bzr merge lp://staging/~andrea.corbellini/a4/test-suite |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Andrea Gualano | Approve | ||
Andrea Colangelo | Needs Fixing | ||
Review via email:
|
Description of the change
This branch adds the code for a test suite. I've used LDTP as testing framework. It allows us to start and handle windows in a simple manner (however, when a test fails it behaves badly).
To post a comment you must log in.
I couldn't make the tests work:
$ bzr branch lp:~andrea.corbellini/a4/test-suite
Branched 25 revision(s).
$ cd test-suite/
$ make check
python test.py
** (-c:2332): WARNING **: Trying to register gtype 'WnckWindowState' as enum when in fact it is of type 'GFlags'
** (-c:2332): WARNING **: Trying to register gtype 'WnckWindowActions' as enum when in fact it is of type 'GFlags'
** (-c:2332): WARNING **: Trying to register gtype 'WnckWindowMove ResizeMask' as enum when in fact it is of type 'GFlags' files.TestOpeni ngFiles. test_open_ existent_ file opening_ files.py" , line 20, in test_open_ existent_ file settextvalue( 'txtLocation' , TEST_IMAGE_FILE) testhelpers. py", line 32, in wrapper self.window_ id, *args, **kwargs) pymodules/ python2. 6/ldtp/ client. py", line 50, in __call__ send(self. __name, args) python2. 6/xmlrpclib. py", line 1489, in __request self.__ verbose pymodules/ python2. 6/ldtp/ client. py", line 99, in request ror(e.faultStri ng) Error: Unable to find object name "txtLocation" in application map files.TestOpeni ngFiles. test_open_ incorrect_ file opening_ files.py" , line 57, in test_open_ incorrect_ file settextvalue( 'txtLocation' , os.path. abspath( __file_ _)) testhelpers. py", line 32, in wrapper self.window_ id, *args, **kwargs) pymodules/ python2. 6/ldtp/ client. py", line 50, in __call__ send(self. __name, args) python2. 6/xmlrpclib. py", line 1489, in __request self.__ verbose pymodules/ python2. 6/ldtp/ client. py", line 99, in request ror(e.faultStri ng) Error: Unable to find object name "txtLocation" in application map files.TestOpeni ngFiles. test_open_ inexistent_ file opening_ files.py" , line 38, in test_open_ inexistent_ file settextvalue( 'txtLocation' , 'this-file- does-not- exist') testhelpers. py", line 32, in wrapper self.window_ id, *args, **kwargs) pymodules/ python2. 6/ldtp/ client. py", line 50, in __call__ send(self. __name, args) python2. 6/xmlrpclib. py", line 1489, in __request self.__ verbose pymodules/ python2. 6/ldtp/ client. py", line 99, in request ror(e.faultStri ng) Error: Unable to find object name "txtLocation" in application map
GTK Accessibility Module initialized
GTK Accessibility Module initialized
GTK Accessibility Module initialized
Failed test case: opening_
Traceback (most recent call last):
File "tests/
dialog.
File "tests/
retval = ldtp_method(
File "/usr/lib/
return self.__
File "/usr/lib/
verbose=
File "/usr/lib/
raise LdtpExecutionEr
LdtpExecution
Failed test case: opening_
Traceback (most recent call last):
File "tests/
dialog.
File "tests/
retval = ldtp_method(
File "/usr/lib/
return self.__
File "/usr/lib/
verbose=
File "/usr/lib/
raise LdtpExecutionEr
LdtpExecution
Failed test case: opening_
Traceback (most recent call last):
File "tests/
dialog.
File "tests/
retval = ldtp_method(
File "/usr/lib/
return self.__
File "/usr/lib/
verbose=
File "/usr/lib/
raise LdtpExecutionEr
LdtpExecution
Ran 3 tests (3 failed)