<div dir="ltr">Hi Ara,<br><br>Could you please try the same procedure with at-poke ?<br><br>Thanks<br>Nagappan<br><br><div class="gmail_quote">On Thu, Aug 21, 2008 at 2:50 AM, Ara Pulido <span dir="ltr"><<a href="mailto:ara@ubuntu.com">ara@ubuntu.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hello all,<br>
<br>
Let me explain the situation I have been running lately:<br>
<br>
I am writing some tests for the Update Manager in Ubuntu [1]. This<br>
application searches for updates in the Ubuntu repositories and install<br>
the selected ones.<br>
<br>
The first time the application runs, if you check for new updates, it<br>
will ask for the SUDO password. The test runs correctly.<br>
<br>
The second time, as the SUDO password is valid for sometime, it does not<br>
ask for the password. In the test script this is solved with something<br>
like:<br>
<br>
if guiexist(SUDO_WINDOW):<br>
set_password()<br>
else<br>
do nothing<br>
<br>
After that the test tries to close the update-manager window. If the<br>
application asked for the password, it closes correctly, but if it<br>
bypasses the password (because it was already set), it does not find the<br>
update-manager anymore:<br>
<br>
Property: label - Value: Update Manager<br>
window_prop: Update Manager<br>
Key: btnClose btnClose<br>
Warning: AT-SPI error: pre method check: add: Unknown CORBA exception<br>
id: 'IDL:<a href="http://omg.org/CORBA/COMM_FAILURE:1.0" target="_blank">omg.org/CORBA/COMM_FAILURE:1.0</a>'<br>
Application: update-manager not running<br>
Unable to get handle<br>
resp_len = 117<br>
Sending..<br>
156<br>
Response packet: <?xml version="1.0"<br>
encoding="utf-8"?><RESPONSE><ID>MainThread43</ID><STATUS><CODE>-984</CODE><MESSAGE>Application not running</MESSAGE></STATUS></RESPONSE><br>
Msg:<br>
Bytes sent: 160<br>
Thu Aug 21 11:35:07 2008: ldtp-utils.c:49:ldtp_read_data() : Connection<br>
refused<br>
handle_client: error:<br>
unregister_window_creation_event - client-handler.c - 74<br>
client-handler.c - 77 - Argument NULL<br>
Removing sockfd: 17 - 2<br>
Removed sockfd: 17 - 1<br>
Removed 2 entries from client context hash table<br>
Clients: 1<br>
<br>
I tried running reinitldt(), but it fails.<br>
<br>
Does anyone know why does this happen and how it could be solved?<br>
<br>
Thanks,<br>
Ara.<br>
<br>
_______________________________________________<br>
LDTP-dev mailing list<br>
<a href="mailto:LDTP-dev@lists.freedesktop.org">LDTP-dev@lists.freedesktop.org</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/ldtp-dev" target="_blank">http://lists.freedesktop.org/mailman/listinfo/ldtp-dev</a><br>
</blockquote></div><br><br clear="all"><br>-- <br>Linux Desktop (GUI Application) Testing Project - <a href="http://ldtp.freedesktop.org">http://ldtp.freedesktop.org</a><br><a href="http://nagappanal.blogspot.com">http://nagappanal.blogspot.com</a><br>
</div>