About testLocalDiscoveryToggle and testPrinterOffSendGoodbyePacket #21
Comments
For testLocalDiscoveryToggle, the assumption is that the listener will not discover any mdns announcements once Local Discovery is turned off. I see there was a change from using self.browser to mdns_browser a couple of months ago. I wonder if that could have affected this test. Could you do me a favor and compare the source code of the old and new LogoCert Tool and see if there are any differences that look like they might have affected these two tests? |
I have compared the source code of the old and new LogoCert Tool. Old Tooldef add_service(self, zeroconf, type, name): New Tooldef add_service(self, zeroconf, service_type, name): I think there is something wrong with the testcert.py of the new tool in line 1841 and line 1929(code is same as line 1841). There is a new issue I want to confirm which occurs just because the order of the tests in my opinion. |
Yes, looks like your logic might be correct. I'll take a look at the source Kelly On Fri, Apr 1, 2016 at 3:30 AM, YYWeave notifications@github.com wrote:
|
I made some changes, see if this fixes the issues. I don't think the testPrinterIdleNoBroadcastPrivet should affect any tests, Kelly On Fri, Apr 1, 2016 at 3:30 AM, YYWeave notifications@github.com wrote:
|
Please verify if the changes fixed this. |
Only the issue of testLocalDiscoveryToggle was fixed. |
Ok, I've committed the changes, please verify the fix. |
・testLocalDiscoveryToggle
We have manually checked our printer respects GCP Mgt page when local discovery toggled.
But this test result is "failed" and here is the error message:
File "C:...\cloudprint_logocert-master\testcert.py", line 1841, in testLocalDiscoveryToggle
self.assertFalse(mdns_browser.listener.discovered[k])
AssertionError:
{'info': ServiceInfo(
type='_privet._tcp.local.',
name=u'XXXXXXXXXX._privet._tcp.local.',
address='\xc0\xa8\xd53',
port=80, weight=0, priority=0,
server=u'YYYYYYYY.local.',
properties=
{
'ty': 'XXXXXXXXXX',
'url': 'https://www.google.com/cloudprint',
'note': 'XXXXXXXXXX',
'cs': 'online',
'txtvers': '1',
'type': 'printer',
'id': '82f0ce26-ab86-215f-64af-4293ad10d473'
}
),
'found': False,
'proto': '_privet._tcp.local.'
} is not false
※XXXXXXXXXX and YYYYYYYYYY are the names of our printer.
・testPrinterOffSendGoodbyePacket
Using the tool called wireshark we have checked that our printer sent goodbye packet when powered off.
But the result is almost same as Q2. Just the line where error occurred is different.
File "C:...\cloudprint_logocert-master\testcert.py", line 1929, in testPrinterOffSendGoodbyePacket
self.assertFalse(mdns_browser.listener.discovered[k])
AssertionError: …(the next message is same as testLocalDiscoveryToggle)
When we use the old tool downloaded around Sep. of last year,
The results of testLocalDiscoveryToggle and testPrinterOffSendGoodbyePacket are “Passed”.
But using the latest tool with the same printer firmware, both are “Failed”.
Could you give us some advises to fix these issues?
The text was updated successfully, but these errors were encountered: