Hi Nouar,<br><br>This is interesting to know :) In our automation environment in VMware, we do have http_proxy settings, we haven&#39;t noticed any such issue. If this is an Open Source project, can I verify it ?<br><br>Thanks<br>

Nagappan<br><br><div class="gmail_quote">On Tue, Oct 13, 2009 at 7:14 AM, Nouar Garcia-Mardambek <span dir="ltr">&lt;<a href="mailto:Nouar.Garcia@sun.com">Nouar.Garcia@sun.com</a>&gt;</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;">





<div bgcolor="#ffffff" text="#000000">
Hi ldtp-experts,<br>
<br>
I&#39;ve an application (python / wxpython) that reads a configuration file
when it launched and set/unset the python environment variables:<br>
HTTP_PROXY/http_proxy to the URL of the http proxy to be used if any is
defined, or keep a direct connection to the internet.<br>
<br>
This application provides a Preferences menu to set the information
about the http (and https) proxy settings + 2 radio buttons to toggle
between the two network configurations. The dialog is very similar to
the Connection Settings in Firefox.<br>
<br>
The same function is called when the application is started and when it
changes the proxy setting in the Preferences menu:<br>
proxy holds the definition of the http proxy URL built up.<br>
os.environ[&#39;HTTP_PROXY&#39;] = os.environ[&#39;http_proxy&#39;] =  proxy<br>
os.environ[&#39;FTP_PROXY&#39;] = os.environ[&#39;ftp_proxy&#39;] =  proxy<br>
urllib2.install_opener(urllib2.build_opener(urllib2.ProxyHandler()))<br>
<br>
I&#39;ve written a script A: <br>
1) launch my application with launchapp()<br>
2) change the Connection Settings by calling this menu Preferences<br>
3) go back to the main frame<br>
4) call another dialog that does not deal with the network<br>
5) select a view that uses the proxy set to fetch over the network the
needed data<br>
6) check if any Error window is showing up, if none call a Quit menu
and exit the application<br>
<br>
On OpenSolaris 2009.06 and ubuntu 9.04 with ldtp 1.7.1,  I&#39;ve noticed
if I launch this test in a python script, all the steps are executed as
expected without any problem. I can run the script in a loop without
problem.<br>
<br>
When this test is launched by pyunit
(TestSuite/TestCase/TextTestRunner), any additional tests executed
after, over the same application fail in the call of 
guiexist/waittillguiexist(main_frame): the call pauses for a while and
after gets the error: <b>TypeError unpack non-sequence</b> as a
response although the application is launched with success.<br>
<br>
In my execution environment LDTP_DEBUG is set to 2, am I breaking the
connection between the server and the client during this test and only
sys.exit() clean up the situation by closing the sockets ? does
reinitldtp( ) fix my issue as I don&#39;t understand what&#39;s really doing ?<br>
<br>
Looking forward to your advice, best regards.<br>
<br>
nouar.<br>
<pre cols="130"></pre>
</div>

<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>
<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>