Giter Site home page Giter Site logo

Comments (7)

lrbom avatar lrbom commented on June 2, 2024

Can you please clarify what you mean by "setting the type of InputTrayUnit"?

from cloudprint_logocert.

rskak1 avatar rskak1 commented on June 2, 2024

The meaning of "setting the type of InputTrayUnit" is the setting in CDD.
The setting is as follows.
"input_tray_unit": [{"vendor_id": "manual","custom_display_name_localized": [{"locale": "EN",
"value": "Bypass Tray" }],"type": "CUSTOM"},{"vendor_id": "tray1","custom_display_name_localized": [
{"locale": "EN","value": "Tray 1"}],
"type": "CUSTOM"}],

In google cloud print , it is displayed as follows.
tray

from cloudprint_logocert.

lrbom avatar lrbom commented on June 2, 2024

I see.
Can you please provide the log message of the 2 test failures? I am wondering if the tool is failing to detect the error message of if the error message is incorrect.

Thanks,
Kevin

from cloudprint_logocert.

rskak1 avatar rskak1 commented on June 2, 2024

The log message of testOpenPaperTray() is below

LogoCert INFO: Test ID: 09f3f838-922b-4526-b5b8-bd83806816d0
LogoCert INFO: Result: Failed
LogoCert INFO: Name: Printer.OpenPaperTray
LogoCert INFO: Notes: required keyword(s) "input/tray/cassette" not in UI state message: is open

The log message is not output in testNoMediaInTray().
The following is output to the console.

ERROR: testNoMediaInTray (main.PrinterState)

===================================================================
Verify no media in paper tray reported correctly.


Traceback (most recent call last):
File "C:\Python27\cloudprint_logocert-master\testcert.py", line 3351, in testN
oMediaInTray
suffixes=('is empty')):
File "C:\Python27\cloudprint_logocert-master\testcert.py", line 3300, in Verif
yUiStateMessage
(keywords, _device.cdd['uiState']['caption']))
KeyError: 'caption'

The contents of uiState when testOpenPaperTray() is below.
"uiState": {"summary": "IDLE","severity": "MEDIUM","printer": {
"vendor_item": [{"severity": "NONE","message": ""}],"output_bin_item": [{"severity": "NONE","message": " is 0% full","level_percent": 0}],"input_tray_item": [{"severity": "NONE","message": " is 100% full",
"level_percent": 100},{"severity": "MEDIUM","message": " is open"}],"marker_item": [{"severity": "NONE",
"color": "BLACK","message": "Black toner level is 100%","level_percent": 100}]},"caption": " isopen","num_issues": 1},

The contents of uiState when testNoMediaInTray() is below.
"uiState": {"summary": "IDLE","severity": "LOW","printer": {"vendor_item": [{"severity": "NONE","message": ""}],"output_bin_item": [{"severity": "NONE","message": " is 0% full","level_percent": 0}],"input_tray_item": [
{"severity": "LOW","message": " is empty"},{"severity": "LOW","message": " is empty"}],
"marker_item": [{"severity": "NONE","color": "BLACK","message": "Black toner level is 100%","level_percent": 100}]},"num_issues": 2},

from cloudprint_logocert.

lrbom avatar lrbom commented on June 2, 2024

Hi,

Thanks for providing me with the log messages and sorry for taking some time to get back to you!
I've pushed a fix which should get rid of the " KeyError:'caption' " issue.

As for the failing test cases:

  • testOpenPaperTray():
    Since the "caption" field exists in the uiState object, it is used for verification instead of the individual error messages. However, the caption value does not contain any of the necessary keywords in "input" , "tray", or "cassette". This should be fixed on the printer side.

  • testNoMediaInTray():
    Same issue here but for the individual error message fields, they should also the keywords.

Please let me know if anything is unclear.

Thanks,
Kevin

from cloudprint_logocert.

rskak1 avatar rskak1 commented on June 2, 2024

I think that it is not a problem on the printer side that the caption value does not contain keywords necessary for "input", "tray", or "cassette".

Whether the caption value contains keywords necessary for "input", "tray", or "cassette" depends on the type setting of input_tray_unit of CDD.
If set to a value other than CUSTOM (eg INPUT_TRAY), it is included in the caption value.
When set to CUSTOM, it is not included in the caption value.
Since setting up CUSTOM is permitted by specifications, I think that it is a matter of response content from Google server.

Type setting is "CUSTOM", the caption value from the server is "is open" .
Type setting is "INPUT_TRAY", the caption value from the server is "Input tray is open".
Type setting is "BYPASS_TRAY", the caption value from the server is "Bypass tray is open".
Type setting is "MANUAL_FEED_TRAY", the caption value from the server is "Manual feed tray is open".
Type setting is "LCT", the caption value from the server is "Large capacity tray is open".
Type setting is "ENVELOPE_TRAY", the caption value from the server is "Envelope tray is open".
Type setting is "ROLL", the caption value from the server is "Roll is open".

If set to CUSTOM and ROLL, the result of testOpenPaperTray() will fail.

from cloudprint_logocert.

lrbom avatar lrbom commented on June 2, 2024

After speaking with the server side developers, they have agreed that this is a bug and will be looking into this. I will let you know when this is resolved. Until then, please ignore the failures for the 2 testcases that we discussed for your printer.

from cloudprint_logocert.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.