Comments (7)
Can you please clarify what you mean by "setting the type of InputTrayUnit"?
from cloudprint_logocert.
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.
from cloudprint_logocert.
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.
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.
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.
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.
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)
- Can LocalPrint.PDFPageRange test check if page_range is supported in CDD HOT 1
- GCP Tool Questions, version 2 HOT 1
- Local API Creatjob HOT 3
- fails testJobStateMissingToner() HOT 2
- fails testJobStateWithPaperJam() HOT 5
- LocalPrinting returned Failed due to “Local Print Job not found using GCP /jobs api”. HOT 7
- 1.6.34 NotInCDD.margins failed HOT 8
- PrivetRegistration.PrinterPanelCancel/PrivetAPI.RegistrationInvalidUserAuthToken failed HOT 2
- CDD.duplex failed HOT 2
- Error message for test Printer.RemoveMediafromTray doesn't match string search HOT 1
- testDeviceOffNoAdvertisePrivet issue HOT 1
- a special test file (85748k) cannot be printed through GCP HOT 1
- FitToPage option in device HOT 1
- “Could not convert to PDF” will pops up in manage GCP window when we select customized signal page of PPT to print. HOT 2
- Google converted the 1st, 2nd page of a special pdf file as blank if print on the printer which is not support PDF through GCP
- 1.13.9 & 1.13.10 have the same Test Case ID
- Google Cloud Print is not converting Excel sheet properly.
- if possible to add/support "Imaging Drum" in 1.10.8 Printer.RemoveTonerCartridg
- ZIJANG-8330 Thermal Receipt Printer is writing blank page
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cloudprint_logocert.