<div dir="ltr">Thanks for the update Thomas, good to know things are working for you.<div><br></div><div>Thanks</div><div>Nagappan</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Jan 14, 2014 at 9:32 PM, Thomas Andrews <span dir="ltr"><<a href="mailto:tandrews@grok.co.za" target="_blank">tandrews@grok.co.za</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
  
    
  
  <div bgcolor="#FFFFFF" text="#000000">
    Thanks Nagappan, I installed the debs from <br><div class="im">
    <a href="http://download.opensuse.org/repositories/home:/anagappan:/ldtp2:/deb/" target="_blank">http://download.opensuse.org/repositories/home:/anagappan:/ldtp2:/deb/
    </a><br></div>
    and the problem is solved, so the issue was indeed the Debian
    packages being too old.<br>
    <br>
    Many thanks<span class="HOEnZb"><font color="#888888"><br>
    Thomas</font></span><div><div class="h5"><br>
    <br>
    <a href="http://download.opensuse.org/repositories/home:/anagappan:/ldtp2:/deb/" target="_blank"></a>
    <div>On 01/14/2014 08:22 PM, Nagappan
      Alagappan wrote:<br>
    </div>
    <blockquote type="cite">
      <div dir="ltr">Hi Thomas,
        <div><br>
        </div>
        <div>Try installing latest LDTP on your Linux box, it should
          work fine. I guess that might be the issue, probably the
          Debian package wasn't updated. Linux LDTP released version is
          3.5.</div>
        <div><br>
        </div>
        <div>Thanks</div>
        <div>Nagappan</div>
      </div>
      <div class="gmail_extra"><br>
        <br>
        <div class="gmail_quote">On Tue, Jan 14, 2014 at 1:15 AM, Thomas
          Andrews <span dir="ltr"><<a href="mailto:tandrews@grok.co.za" target="_blank">tandrews@grok.co.za</a>></span>
          wrote:<br>
          <blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
            <div bgcolor="#FFFFFF" text="#000000"> Thanks Nadappan,<br>
              <br>
              I think the firewall is not the problem because it makes
              no difference if I disable the Windows firewall
              completely.<br>
              <br>
              Can it be that ldtp version 2.3.1-1 (on the Linux PC) is
              incompatible with version 4.0.0 of CobraWinLDTP ?<br>
              <br>
              When I set LDTP_DEBUG=1 on the Windows machine, I can see
              that there is communication between the two machines as
              soon as I execute "from ldtp import *" on python on the
              linux PC:
              <div><br>
                <br>
8<----------8<----------8<----------8<----------8<----------8<----------8<----------8<----------8<----------<br>
              </div>
              C:\Program Files\VMware\CobraWinLDTP>CobraWinLDTP.exe<br>
              <br>
              Command Prompt - CobraWinLDTP.exe<br>
              Listening on all interface<br>
              Total Commander 7.50a - Thomas Andrews<br>
              Waiting for clients<br>
              Lister - [c:\Program Files\VMware\CobraWinLDTP\README.txt]<br>
              Command Prompt<br>
              Program Manager<br>
              <br>
              Command Prompt - CobraWinLDTP.exe<br>
              Total Commander 7.50a - Thomas Andrews<br>
              Lister - [c:\Program Files\VMware\CobraWinLDTP\README.txt]<br>
              Command Prompt<br>
              Program Manager<br>
              Command Prompt<br>
              Waiting for clients<br>
              Processing request<br>
              Waiting for clients<br>
              Processing request<br>
              Waiting for clients<br>
              Processing request<br>
              Waiting for clients<br>
              Processing request<br>
              Waiting for clients<br>
              Processing request<br>
              Waiting for clients<br>
              Processing request<br>
              Waiting for clients<br>
              Processing request<br>
              Waiting for clients<br>
              etc.... many more of these...
              <div><br>
8<----------8<----------8<----------8<----------8<----------8<----------8<----------8<----------8<----------<br>
                <br>
              </div>
              This is what I see on the Linux machine:
              <div><br>
                <br>
8<----------8<----------8<----------8<----------8<----------8<----------8<----------8<----------8<----------<br>
              </div>
              $ export LDTP_SERVER_ADDR=xp-pc<br>
              $ export LDTP_DEBUG=1<br>
              $ python<br>
              Python 2.7.3 (default, Jan  2 2013, 13:56:14) <br>
              [GCC 4.7.2] on linux2<br>
              Type "help", "copyright", "credits" or "license" for more
              information.
              <div><br>
                >>> from ldtp import *<br>
                >>> getapplist()<br>
              </div>
              Traceback (most recent call last):<br>
                File "<stdin>", line 1, in <module><br>
                File "/usr/lib/python2.7/dist-packages/ldtp/client.py",
              line 70, in __call__<br>
                  return self.__send(self.__name, args)<br>
                File "/usr/lib/python2.7/xmlrpclib.py", line 1578, in
              __request<br>
                  verbose=self.__verbose<br>
                File "/usr/lib/python2.7/dist-packages/ldtp/client.py",
              line 187, in request<br>
                  raise e
              <div><br>
                xmlrpclib.Fault: <Fault 0: 'Request contains too many
                param elements based on method signature.'><br>
                >>> <br>
              </div>
              <div>
8<----------8<----------8<----------8<----------8<----------8<----------8<----------8<----------8<----------<br>
                <br>
              </div>
              By the way, I have installed python on the server (Windows
              machine) and I can execute the same test locally on that
              machine successfully:
              <div><br>
                <br>
8<----------8<----------8<----------8<----------8<----------8<----------8<----------8<----------8<----------<br>
              </div>
              Python 2.7.6 (default, Nov 10 2013, 19:24:18) [MSC v.1500
              32 bit (Intel)] on win32<br>
              Type "copyright", "credits" or "license()" for more
              information.
              <div><br>
                >>> from ldtp import *<br>
                >>> getapplist()<br>
              </div>
              ['explorer', 'cmd', 'TOTALCMD', 'explorer', 'pythonw',
              'taskmgr', 'gvim', 'sh']
              <div><br>
                >>> <br>
8<----------8<----------8<----------8<----------8<----------8<----------8<----------8<----------8<----------<br>
                <br>
              </div>
              So it looks to me like it is just an incompatibility
              between ldtp and cobrawinldtp. Can this be?<br>
              <br>
              Many thanks,<br>
              Thomas
              <div>
                <div><br>
                  <br>
                  <div>On 01/13/2014 09:55 PM, Nagappan Alagappan wrote:<br>
                  </div>
                  <blockquote type="cite">
                    <div dir="ltr">Hi Thomas,
                      <div><br>
                      </div>
                      <div>You can set the following environment
                        variables on Windows box:</div>
                      <div><br>
                      </div>
                      <div>set LDTP_DEBUG=1 # If you need debug output
                        printed on console</div>
                      <div>set LDTP_LISTEN_ALL_INTERFACE=1 # If you need
                        to listen other than localhost, default is
                        listen only on localhost</div>
                      <div><br>
                      </div>
                      <div>On Linux side:</div>
                      <div><br>
                      </div>
                      <div>export LDTP_DEBUG=1</div>
                      <div><br>
                      </div>
                      <div>I tried your scenario after setting above
                        environment variables. More over, have enabled
                        inbound firewall rule on my windows box to
                        accept request on port 4118. Everything worked
                        as expected.</div>
                      <div><br>
                      </div>
                      <div>Side note: I tried LDTP git head on Ubuntu
                        13.10.</div>
                      <div><br>
                      </div>
                      <div>Thanks</div>
                      <div>Nagappan</div>
                    </div>
                    <div class="gmail_extra"><br>
                      <br>
                      <div class="gmail_quote">On Mon, Jan 13, 2014 at
                        10:43 AM, Thomas Andrews <span dir="ltr"><<a href="mailto:tandrews@grok.co.za" target="_blank">tandrews@grok.co.za</a>></span>
                        wrote:<br>
                        <blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
                          <br>
                          I get the following error when I try to
                          connect from a linux machine to a windows
                          machine:<br>
                          <br>
                          xmlrpclib.Fault: <Fault 0: 'Request
                          contains too many param elements based on
                          method signature.'><br>
                          <br>
                          <br>
                          On the server (windows XP machine called
                          xp-pc) I am doing this:<br>
                          <br>
                              CobraWinLDTP.exe<br>
                          <br>
                          On the client (debian linux machine) I am
                          doing this in a bash shell:<br>
                          <br>
                              export LDTP_SERVER_ADDR=xp-pc<br>
                          then:<br>
                              python<br>
                              >>> from ldtp import *<br>
                              >>> getapplist()<br>
                          <br>
                          <br>
                          The client can connect to port 4118 on the
                          server no problem, but the server appears to
                          somehow not understand the request from the
                          client. I downloaded a copy of
                          VisualUIAVerify, and it can see the windows
                          programs running no problem.<br>
                          <br>
                          I used wireshark to capture the RPC
                          transaction from TCP/IP and this is what I
                          got:<br>
                          <br>
8<----------8<----------8<----------8<----------8<----------8<----------8<----------8<----------8<----------<br>
                          >From the client (Linux PC):<br>
                          <br>
                          POST /RPC2 HTTP/1.1<br>
                          Host: xp-vm:4118<br>
                          Accept-Encoding: gzip<br>
                          User-Agent: <a href="http://xmlrpclib.py/1.0.1" target="_blank">xmlrpclib.py/1.0.1</a> (by <a href="http://www.pythonware.com" target="_blank">www.pythonware.com</a>)<br>
                          Content-Type: text/xml<br>
                          Content-Length: 155<br>
                          <?xml version='1.0'?><br>
                          <methodCall><br>
<methodName>getapplist</methodName><br>
                          <params><br>
                          <param><br>
                          <value><struct><br>
                          </struct></value><br>
                          </param><br>
                          </params><br>
                          </methodCall><br>
                          <br>
                          Then response from the server (windows PC):<br>
                          <br>
                          HTTP/1.1 200 OK<br>
                          Content-Length: 485<br>
                          Content-Type: text/xml<br>
                          Server: Microsoft-HTTPAPI/1.0<br>
                          Date: Mon, 13 Jan 2014 16:41:16 GMT<br>
                          <?xml version="1.0"?><br>
                          <methodResponse><br>
                            <fault><br>
                              <value><br>
                                <struct><br>
                                  <member><br>
                                    <name>faultCode</name><br>
                                    <value><br>
                                      <i4>0</i4><br>
                                    </value><br>
                                  </member><br>
                                  <member><br>
                                    <name>faultString</name><br>
                                    <value><br>
                                      <string>Request contains too
                          many param elements based on method
                          signature.</string><br>
                                    </value><br>
                                  </member><br>
                                </struct><br>
                              </value><br>
                            </fault><br>
                          </methodResponse><br>
8<----------8<----------8<----------8<----------8<----------8<----------8<----------8<----------8<----------<br>
                          <br>
                          So it looks to me like the RPC communication
                          is fine.<br>
                          I installed Cobra-winldtp using
                          CobraWinLDTP-4.0.0.msi from <a href="http://code.google.com/p/cobra-winldtp/" target="_blank">http://code.google.com/p/cobra-winldtp/</a><br>
                          On linux I have LDTP version  2.3.1-1
                          installed (Debian).<br>
                          <br>
                          Can anyone help, please?<br>
                          <br>
                          Many thanks,<br>
                          Thomas<br>
_______________________________________________<br>
                          LDTP-dev mailing list<br>
                          <a href="mailto:LDTP-dev@lists.freedesktop.org" target="_blank">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">
                      <div><br>
                      </div>
                      -- <br>
                      <div>Cross platform GUI testing</div>
                      Linux Desktop (GUI Application) Testing Project -
                      <a href="http://ldtp.freedesktop.org" target="_blank">http://ldtp.freedesktop.org</a><br>
                      Cobra - Windows GUI Automation tool - <a href="https://github.com/ldtp/cobra" target="_blank">https://github.com/ldtp/cobra</a>
                      <div>ATOMac - Mac GUI Automation tool - <a href="https://github.com/pyatom/pyatom" target="_blank">https://github.com/pyatom/pyatom</a></div>
                      <div><a href="http://nagappanal.blogspot.com" target="_blank">http://nagappanal.blogspot.com</a></div>
                    </div>
                  </blockquote>
                  <br>
                </div>
              </div>
            </div>
          </blockquote>
        </div>
        <br>
        <br clear="all">
        <div><br>
        </div>
        -- <br>
        <div>Cross platform GUI testing</div>
        Linux Desktop (GUI Application) Testing Project - <a href="http://ldtp.freedesktop.org" target="_blank">http://ldtp.freedesktop.org</a><br>
        Cobra - Windows GUI Automation tool - <a href="https://github.com/ldtp/cobra" target="_blank">https://github.com/ldtp/cobra</a>
        <div>ATOMac - Mac GUI Automation tool - <a href="https://github.com/pyatom/pyatom" target="_blank">https://github.com/pyatom/pyatom</a></div>
        <div><a href="http://nagappanal.blogspot.com" target="_blank">http://nagappanal.blogspot.com</a></div>
      </div>
    </blockquote>
    <br>
  </div></div></div>

</blockquote></div><br><br clear="all"><div><br></div>-- <br><div>Cross platform GUI testing</div>Linux Desktop (GUI Application) Testing Project - <a href="http://ldtp.freedesktop.org" target="_blank">http://ldtp.freedesktop.org</a><br>

Cobra - Windows GUI Automation tool - <a href="https://github.com/ldtp/cobra" target="_blank">https://github.com/ldtp/cobra</a><div>ATOMac - Mac GUI Automation tool - <a href="https://github.com/pyatom/pyatom" target="_blank">https://github.com/pyatom/pyatom</a></div>

<div><a href="http://nagappanal.blogspot.com" target="_blank">http://nagappanal.blogspot.com</a></div>
</div>