This is the mail archive of the frysk@sources.redhat.com mailing list for the frysk project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: About dogtail on x86 and ppc64


Elena Zannoni wrote:
Wu, thanks for starting looking at this.  Len is using dogtail
successfully on x86 for testing of Frysk, so I suspect something in
your setup.  On ppc64, Len was going to try it today, but since that
platform is more of an unknown, I am cc-ing Zack directly as well. But
in general I think Len can offer you some pointers on how to set
things up.

elena


Wu Zhou writes:
> Hello all,
> > We can setup dogtail on x86 and ppc64 as well.
> > On both platform, we run "python ./gedit-test-utf8-procedural-api.py".
> > Here is the results:
> > On x86:
> ========
> # python ./gedit-test-utf8-procedural-api.py
> Creating logfile at > /tmp/dogtail/logs/gedit-test-utf8-procedural-api_20060712-093635 ...
> Detecting distribution: Red Hat/Fedora/derived distribution
> Warning: AT-SPI error: pre method check: add: Unknown CORBA exception > id: 'IDL:omg.org/CORBA/COMM_FAILURE:1.0'
> GTK Accessibility Module initialized
> Warning: AT-SPI error: pre method check: add: Unknown CORBA exception > id: 'IDL:omg.org/CORBA/COMM_FAILURE:1.0'
> Bonobo accessibility support initialized
> Warning: AT-SPI error: pre method check: add: Unknown CORBA exception > id: 'IDL:omg.org/CORBA/COMM_FAILURE:1.0'
> Warning: AT-SPI error: pre method check: add: Unknown CORBA exception > id: 'IDL:omg.org/CORBA/COMM_FAILURE:1.0'
> Warning: AT-SPI error: pre method check: add: Unknown CORBA exception > id: 'IDL:omg.org/CORBA/COMM_FAILURE:1.0'

I haven't seen those warnings so soon in a script. Can you tell me if the 'sniff' utility works?


> /tmp/dogtail/screenshot_20060712-093640.png
> Screenshot taken: /tmp/dogtail/screenshot_20060712-093640.png
> click on {child with name="Save" ("?$A4f(B(S)", "$A1#4f(B(S)", "$A1#4f(B", "?$A4f(B", )}
The above line doesn't look right at all. Can you paste the output of the 'locale' command? I'm guessing your locale is breaking dogtail's automatic runtime translation.

> Traceback (most recent call last):
> File "./gedit-test-utf8-procedural-api.py", line 56, in ?
> focus.dialog(u'Save As\u2026')
> File "/usr/lib/python2.4/site-packages/dogtail/procedural.py", line > 78, in __call__
> result = FocusApplication.node.findChild(predicate, > requireResult=False, recursive = False)
> File "/usr/lib/python2.4/site-packages/dogtail/tree.py", line 769, > in findChild
> result.debugName = pred.describeSearchResult()
> File "/usr/lib/python2.4/site-packages/dogtail/predicate.py", line > 235, in describeSearchResult
> return '%s dialog'%self.dialogName
> File "/usr/lib/python2.4/site-packages/dogtail/i18n.py", line 144, > in __str__
> result = '"%s" (%s)' % (self.untranslatedString, translations)
> UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position > 8: ordinal not in range(128)
The above traceback is due to the fact that the runtime translation isn't working properly.

> On ppc64:
> ========
> # python ./gedit-test-utf8-procedural-api.py
> Creating logfile at > /tmp/dogtail/logs/gedit-test-utf8-procedural-api_20060712-133632 ...
> Detecting distribution: Red Hat/Fedora/derived distribution
> /tmp/dogtail/screenshot_20060712-133637.png
> Screenshot taken: /tmp/dogtail/screenshot_20060712-133637.png
> click on {child with name="Save"}
> activate on {child with name="Browse for other folders"}
> activate on {child with name="Desktop" roleName='table cell'}
> click on {child with name="Save"}
> click on {child with name="Quit"}
> > ** (process:26377): WARNING **: Failed to send buffer
> > ** (process:26377): WARNING **: Failed to send buffer
> > ** (process:26377): WARNING **: Failed to send buffer
> > ** (process:26377): WARNING **: Failed to send buffer
> ......
> ** (process:26377): WARNING **: Failed to send buffer
The above warning messages are pretty benign, considering the script has already run to completion. If you ever see them in the middle of a script, I'd be worried.

> The difference I noticed is:
> > 1. There are some warning messages there in ppc64 complaining that > failed to send buffer
The messages appear on all architectures, just not all the time.

> 2. the gedit session quited on ppc64, don't on x86
> I guess it work correctly on ppc64, not on x86.
It looks like the difference here is probably your locale. On ppc64 you were using some form of en_US or en_GB, correct?
> 3. on x86, it complained with some warning message:
> Warning: AT-SPI error: pre method check: add: Unknown CORBA exception > id: 'IDL:omg.org/CORBA/COMM_FAILURE:1.0'
I've seen those messages before (but never where you saw them) and they're generally not a good sign. The first step is telling me what locale you were using, so I can try to reproduce.
> I want to get some suggestion from you, what we need to do to test > dogtail seriously? Thanks a lot
Hopefully we can get these problems solved, so you can get some good testing done :)

Zack


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]