System tests with HTML samples.#10553
Conversation
|
The appveyor docs tell me that Internet Explorer 11, two versions of Chrome, and two versions for Firefox are installed. |
This comment has been minimized.
This comment has been minimized.
Adds one basic chrome test. Explicitly set Python version when running NVDA for system tests as test runner does not inherit environment variables.
ef1ca80 to
736e2c0
Compare
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
- Ignore separator in application title. - Allow variations in the number of tab presses required to get to the start marker.
This comment has been minimized.
This comment has been minimized.
LeonarddeR
left a comment
There was a problem hiding this comment.
I find this pretty hard to review, at it is not clear to me what's new code and what has been moved somehow. How would you advise to review this?
Yeah, I understand. The main thing is getting feedback to know if it's easy to understand how the tests are written. Would you be able to write a system test after looking at this for a bit? Edit: I have also updated the description of this PR to point out the conventions used:
|
|
Since mostly the code has only been re-organized, the most important thing is to ensure that the tests are easy to understand these are the files in Other than that, one interesting change is how to interact with the remote library |
michaelDCurran
left a comment
There was a problem hiding this comment.
I'm happy with the changes, including being able to read the tests themselves. I would like however to see a second chrome test added before this is merged, so we have the confidence that multiple chrome tests don't cause strangeness with Chrome trying to be started twice or what ever would happen.
|
As we discussed, I have run the same test multiple times (leaving chrome open) which did not cause any issues. I'll go ahead and merge this. |
Example from "Fix double speaking label in angular checkbox" #10552
Summary of the issue:
Description of how this pull request fixes the issue:
/librariesnamedSomethingLibthe name of the module must match the name of the class used as the library, so the module is given an initial capital letter. Private functions / variables should all start with underscore. Public library "keywords" should use underscore to separate words.run_keywordno longer has to be called manually.Overview of the refactoring done:
NVDA Core/startupShutdownNVDA.robotrobot/startupShutdownNVDA.pyrobot/startupShutdownNVDA.robotlibraries/nvdaRobotLib.pylibraries/NvdaLib.pylibraries/SystemTestSpy/configManager.pylibraries/systemTestUtils.pybecomeslibraries/SystemTestSpy/blockUntilConditionMet.py.libraries/helperLib.pycode fromlibraries/AssertsLib.pylibraries/sendKey.pybecomeslibraries/KeyInputLib.pybasically a straight rename.libraries/speechSpy.pybecomeslibraries/SystemTestSpy/speechSpySynthDriver.pylibraries/systemTestSpy.pybecomeslibraries/SystemTestSpy/speechSpyGlobalPlugin.pyNVDA Core/variables.pyno longer necessary, strings can easily be defined in test code now written in PythonThe chrome tests are added:
robot/chromeTests.pyrobot/chromeTests.robotTesting performed:
Ran the tests locally and on Appveyor
Known issues with pull request:
Doesn't close chrome at the completion of the test.
Change log entry:
Section: Changes for developers:
Automated testing of NVDA with Chrome and a HTML sample is now possible.