Skip to content
This repository has been archived by the owner on Dec 29, 2022. It is now read-only.

testChromePrintPageRange and testLocalPrintPageRange issue #95

Closed
marctan opened this issue Dec 7, 2016 · 9 comments
Closed

testChromePrintPageRange and testLocalPrintPageRange issue #95

marctan opened this issue Dec 7, 2016 · 9 comments
Assignees

Comments

@marctan
Copy link
Contributor

marctan commented Dec 7, 2016

Hi Kelly/GCPTeam,

We are having this weird issue under testChromePrintPageRange and testLocalPrintPageRange. This test will try to set the page range to 2-3 but as you can see from the attached screenshot, it failed to do that.

These two tests are frequently failing using Windows 10. We are not sure if this is OS related. We've tried running this test using Windows 7 and everything works fine, there are no failures. We've also tried setting the page range manually and it works fine. We also suspect that this is a network connection related issue. Our internet connection is sometimes slow so maybe that's the cause of this failure or maybe this is a webdriver/selenium issue?.

Windows 10 - Fail
testlocalprintpagerange failure - win10

Windows 10 - Fail
testchromeprintpagerange failure - win10

Windows 7 - Success
testchromeprintpagerange - success - windows 7

Thanks,
Marc

@kdlucas
Copy link
Contributor

kdlucas commented Dec 7, 2016 via email

@marctan
Copy link
Contributor Author

marctan commented Dec 9, 2016 via email

@kdlucas
Copy link
Contributor

kdlucas commented Dec 12, 2016

Great, we'd like any feedback you can give us on version 2.0 of the tool.

@marctan
Copy link
Contributor Author

marctan commented Dec 14, 2016

Hi Kelly,

Here's what we've found while running the test tool 2.0:

During startup of the tool we've encountered this error:
ty info error

And there's also another error which will only show if the printer model/name has a Space (' ') in config.py

printer name with space error

Thanks,
Marc

@lrbom
Copy link
Contributor

lrbom commented Dec 14, 2016

Hi Marc,

I am the developer of the logocert_api branch.

This branch is not quite production ready yet. All existing test coverage should be there, but it's still undergoing code reviews and will need to be tested thoroughly after. This branch will continue to see quite a bit of changes until it is fully ready. Also, I've not started testing logocert_api on Windows yet. The arrow and random character strings are used for colorizing text in Unix. Please bear with me while I push through testing in the coming weeks.

However, It is awesome to see this branch being Alpha-tested and I am happy to hear feedback from you and help along the way.

Addressing the issues you encountered:

Startup error:

  • The setup code has been replaced in the past week (among many other updates) and the error should not occur anymore. Please pull from the latest logocert_api branch.

Registration error:

  • From looking at your Privet services, I'm guessing that printer name you have in _config.py is 'ModelName' and the error occurs when 'ModelName ' is used. What is likely happening is that you already have registered printers under your test account that start with 'ModelName '.

  • For this test specifcally, the GCP /search interface is used to find all registered printers under your test account that starts with the _config.py name you've set. The test expects this list to be empty because the device should not be registered yet. Since there are other similarly named printers registered under your test account, it's returning an non-empty list and thus failing.

  • If this indeed is the case, all you have to do is to keep your test account clean of all printers except the one you are currently testing. In other words, only the printer you are testing should be registered under your account during the time of testing (only for the suites that require the printer to be registered however). I am open to adding an update to strictly match the specified printer name also so other printers can stay registered.

Hopefully this solves your problems!

Cheers,
Kevin

@kdlucas
Copy link
Contributor

kdlucas commented Dec 16, 2016

Marc, please grab the latest source and try again, as we want to get as much feedback in version 2.0 of the tool on as many platforms as possible. I think most of our development has been on Linux, so it would be interesting to get OS X or Windows users to provide some feedback.

@kdlucas
Copy link
Contributor

kdlucas commented Feb 16, 2017

Note: once we merge the logocert_api branch back into the main branch, we'll close this issue.

@marctan
Copy link
Contributor Author

marctan commented Feb 17, 2017 via email

@kdlucas
Copy link
Contributor

kdlucas commented Feb 17, 2017

Sounds good, and thanks for the update.

@kdlucas kdlucas closed this as completed Feb 17, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants