Sadly, it's still not working. This time it can't find the control called "tbtnTypeafilename". Also, even in the previous version the Location text field was visible, so the problem seems to be that it can't find the controls by name.
This is what happens: an A4 main window opens, then an Open File dialog titled "a4" opens and gets focus, then nothing happens for a few seconds; then it happens again twice (a main window and a dialog for each test). None of these windows gets closed automatically.
It doesn't close random windows anymore.
Is there any way to see which window the "dialog" variable actually captures? or to get the names of the window controls?
Output:
$ make check
python test.py
** (-c:23319): WARNING **: Trying to register gtype 'WnckWindowState' as enum when in fact it is of type 'GFlags'
** (-c:23319): WARNING **: Trying to register gtype 'WnckWindowActions' as enum when in fact it is of type 'GFlags'
** (-c:23319): WARNING **: Trying to register gtype 'WnckWindowMoveResizeMask' as enum when in fact it is of type 'GFlags'
GTK Accessibility Module initialized
GTK Accessibility Module initialized
GTK Accessibility Module initialized
Failed test case: opening_files.TestOpeningFiles.test_open_existent_file
Traceback (most recent call last):
File "tests/opening_files.py", line 24, in test_open_existent_file
dialog.click('tbtnTypeafilename')
File "tests/testhelpers.py", line 32, in wrapper
retval = ldtp_method(self.window_id, *args, **kwargs)
File "/usr/lib/pymodules/python2.6/ldtp/client.py", line 50, in __call__
return self.__send(self.__name, args)
File "/usr/lib/python2.6/xmlrpclib.py", line 1489, in __request
verbose=self.__verbose
File "/usr/lib/pymodules/python2.6/ldtp/client.py", line 99, in request
raise LdtpExecutionError(e.faultString)
LdtpExecutionError: Unable to find object name "tbtnTypeafilename" in application map
Failed test case: opening_files.TestOpeningFiles.test_open_incorrect_file
Traceback (most recent call last):
File "tests/opening_files.py", line 69, in test_open_incorrect_file
dialog.click('tbtnTypeafilename')
File "tests/testhelpers.py", line 32, in wrapper
retval = ldtp_method(self.window_id, *args, **kwargs)
File "/usr/lib/pymodules/python2.6/ldtp/client.py", line 50, in __call__
return self.__send(self.__name, args)
File "/usr/lib/python2.6/xmlrpclib.py", line 1489, in __request
verbose=self.__verbose
File "/usr/lib/pymodules/python2.6/ldtp/client.py", line 99, in request
raise LdtpExecutionError(e.faultString)
LdtpExecutionError: Unable to find object name "tbtnTypeafilename" in application map
Failed test case: opening_files.TestOpeningFiles.test_open_inexistent_file
Traceback (most recent call last):
File "tests/opening_files.py", line 46, in test_open_inexistent_file
dialog.click('tbtnTypeafilename')
File "tests/testhelpers.py", line 32, in wrapper
retval = ldtp_method(self.window_id, *args, **kwargs)
File "/usr/lib/pymodules/python2.6/ldtp/client.py", line 50, in __call__
return self.__send(self.__name, args)
File "/usr/lib/python2.6/xmlrpclib.py", line 1489, in __request
verbose=self.__verbose
File "/usr/lib/pymodules/python2.6/ldtp/client.py", line 99, in request
raise LdtpExecutionError(e.faultString)
LdtpExecutionError: Unable to find object name "tbtnTypeafilename" in application map
Ran 3 tests (3 failed)
Sadly, it's still not working. This time it can't find the control called "tbtnTypeafilen ame". Also, even in the previous version the Location text field was visible, so the problem seems to be that it can't find the controls by name.
This is what happens: an A4 main window opens, then an Open File dialog titled "a4" opens and gets focus, then nothing happens for a few seconds; then it happens again twice (a main window and a dialog for each test). None of these windows gets closed automatically.
It doesn't close random windows anymore.
Is there any way to see which window the "dialog" variable actually captures? or to get the names of the window controls?
Output:
$ make check
python test.py
** (-c:23319): WARNING **: Trying to register gtype 'WnckWindowState' as enum when in fact it is of type 'GFlags'
** (-c:23319): WARNING **: Trying to register gtype 'WnckWindowActions' as enum when in fact it is of type 'GFlags'
** (-c:23319): 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 24, in test_open_ existent_ file click(' tbtnTypeafilena me') 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 "tbtnTypeafilename" in application map files.TestOpeni ngFiles. test_open_ incorrect_ file opening_ files.py" , line 69, in test_open_ incorrect_ file click(' tbtnTypeafilena me') 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 "tbtnTypeafilename" in application map files.TestOpeni ngFiles. test_open_ inexistent_ file opening_ files.py" , line 46, in test_open_ inexistent_ file click(' tbtnTypeafilena me') 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 "tbtnTypeafilename" 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)