[LDTP-Dev] RPC error when trying to connect to cobra-winldtp

Nagappan Alagappan nagappan at gmail.com
Mon Jan 13 11:55:28 PST 2014


Hi Thomas,

You can set the following environment variables on Windows box:

set LDTP_DEBUG=1 # If you need debug output printed on console
set LDTP_LISTEN_ALL_INTERFACE=1 # If you need to listen other than
localhost, default is listen only on localhost

On Linux side:

export LDTP_DEBUG=1

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.

Side note: I tried LDTP git head on Ubuntu 13.10.

Thanks
Nagappan


On Mon, Jan 13, 2014 at 10:43 AM, Thomas Andrews <tandrews at grok.co.za>wrote:

> Hi,
>
> I get the following error when I try to connect from a linux machine to a
> windows machine:
>
> xmlrpclib.Fault: <Fault 0: 'Request contains too many param elements based
> on method signature.'>
>
>
> On the server (windows XP machine called xp-pc) I am doing this:
>
>     CobraWinLDTP.exe
>
> On the client (debian linux machine) I am doing this in a bash shell:
>
>     export LDTP_SERVER_ADDR=xp-pc
> then:
>     python
>     >>> from ldtp import *
>     >>> getapplist()
>
>
> 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.
>
> I used wireshark to capture the RPC transaction from TCP/IP and this is
> what I got:
>
> 8<----------8<----------8<----------8<----------8<----------
> 8<----------8<----------8<----------8<----------
> From the client (Linux PC):
>
> POST /RPC2 HTTP/1.1
> Host: xp-vm:4118
> Accept-Encoding: gzip
> User-Agent: xmlrpclib.py/1.0.1 (by www.pythonware.com)
> Content-Type: text/xml
> Content-Length: 155
> <?xml version='1.0'?>
> <methodCall>
> <methodName>getapplist</methodName>
> <params>
> <param>
> <value><struct>
> </struct></value>
> </param>
> </params>
> </methodCall>
>
> Then response from the server (windows PC):
>
> HTTP/1.1 200 OK
> Content-Length: 485
> Content-Type: text/xml
> Server: Microsoft-HTTPAPI/1.0
> Date: Mon, 13 Jan 2014 16:41:16 GMT
> <?xml version="1.0"?>
> <methodResponse>
>   <fault>
>     <value>
>       <struct>
>         <member>
>           <name>faultCode</name>
>           <value>
>             <i4>0</i4>
>           </value>
>         </member>
>         <member>
>           <name>faultString</name>
>           <value>
>             <string>Request contains too many param elements based on
> method signature.</string>
>           </value>
>         </member>
>       </struct>
>     </value>
>   </fault>
> </methodResponse>
> 8<----------8<----------8<----------8<----------8<----------
> 8<----------8<----------8<----------8<----------
>
> So it looks to me like the RPC communication is fine.
> I installed Cobra-winldtp using CobraWinLDTP-4.0.0.msi from
> http://code.google.com/p/cobra-winldtp/
> On linux I have LDTP version  2.3.1-1 installed (Debian).
>
> Can anyone help, please?
>
> Many thanks,
> Thomas
> _______________________________________________
> LDTP-dev mailing list
> LDTP-dev at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/ldtp-dev
>



-- 
Cross platform GUI testing
Linux Desktop (GUI Application) Testing Project -
http://ldtp.freedesktop.org
Cobra - Windows GUI Automation tool - https://github.com/ldtp/cobra
ATOMac - Mac GUI Automation tool - https://github.com/pyatom/pyatom
http://nagappanal.blogspot.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/ldtp-dev/attachments/20140113/e7954d9b/attachment.html>


More information about the LDTP-dev mailing list