sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #17727
Re: [Question #228125]: How to generate reports using HtmlTestRunner for unittests which involve xml-rpc communication?
Question #228125 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/228125
Status: Needs information => Open
Aravind gave more information on the question:
Sorry for the lack of clarity in my question. I will re-frame it this
way:
----------------------------------------------------------------------------------------------
On one machine ABC I have,
class ABC():
def add():
.......
def subtract():
.......
class MachineABCTest(unittest.TestCase):
def test_ABC(self):
x1 = abc_client.multiply() #method which resides in MachineXYZTest
y1 = abc_client.divide() #method which resides in MachineXYZTest
suite = unittest.TestLoader().loadTestsFromTestCase(MachineABCTest)
self.abc_server.register_instance(ABC()) # methods add & subtract registered
runner = HTMLTestRunner.HTMLTestRunner(stream=fp, verbosity=2)
runner.run(suite)
--------------------------------------------------------------------------------------------------
And on the other machine,
class XYZ():
def multiply():
.......
def divide():
.......
class MachineXYZTest(unittest.TestCase):
def test_XYZ(self):
x2 = xyz_client.add() #method which resides in MachineXYZTest
x2 = xyz_client.subtract() #method which resides in MachineXYZTest
suite = unittest.TestLoader().loadTestsFromTestCase(MachineXYZTest)
self.xyz_server.register_instance(XYZ()) # methods multiply & divide registered
runner = HTMLTestRunner.HTMLTestRunner(stream=fp, verbosity=2)
runner.run(suite)
----------------------------------------------------------------------------------------------
It would have generated report if there was only one call being made from ABC like
x1 = abc_client.multiply() #method which resides in MachineXYZTest
and xyz_server serving that request. In this case the report will be generated on the client end(here, ABC).
The problem occurs if there's a 2-way communication occurring 'or' there
are more than one request(as said above) being made(from ABC to XYZ or
vice-versa) .
Thanks a lot.
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.