← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #226713]: How to create an instance of an inherited class in unittest Python so that I can register the instance of that class in simpleXMLRPCServer

 

Question #226713 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/226713

    Status: Answered => Open

Aravind is still having a problem:
That doesn't seem to work and I'm getting a error while executing it:

ValueError: no such test method in <class 'sample.XYZ'>: runTest
ERROR: Module: sample(the python file name) could not be imported 

Instead, "self.server.register_instance(XYZ)" will work and listen for
the requests from the client.

But the issue here is calling the D() method from the XMLRPC client like
handraise = client.D()   # any other ways of calling D() which is inside the class XYZ in the server?

At present when the call is made , it is yielding an error message:
Fault: <Fault 1: "<type 'exceptions.TypeError'>:unbound method D() must be called with XYZ instance as first argument (got nothing instead)">


Thanks

-- 
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.