c2f7638389
Reviewed-by: prr, aivanov |
||
---|---|---|
.. | ||
lib | ||
resource | ||
ButtonDemo.html | ||
ButtonDemo.java | ||
ComboBoxDemo.html | ||
ComboBoxDemo.java | ||
DemoSelection.html | ||
DemoSelection.java | ||
OptionPaneDemo.html | ||
OptionPaneDemo.java | ||
README.md | ||
SliderDemo.html | ||
SliderDemo.java | ||
SwingSetTest.java | ||
TableDemo.html | ||
TableDemo.java | ||
TabsDemo.html | ||
TabsDemo.java | ||
TestJProgressBarAccessibility.java | ||
TreeDemo.html | ||
TreeDemo.java |
Manual javax.accessibility test suite
Configure environment
Swing Set 2
Prepare an appropriate version of Swing Set 2 from JDK demos.
Acessibility frameworks
Testing can be performed without an accessibility framework or with one of these frameworks:
- Windows
- JAWS
- NVDA
- Mac OS X
- Voice over
Executing a test run
-
Start the required accessibility framework, if necessary
-
Swing Set 2 jar default location is
<tested jdk>/demo/jfc/SwingSet2/SwingSet2.jar
-
To override Swing Set 2 jar use
SWINGSET2_JAR
environment variable:jtreg ... -e:SWINGSET2_JAR= -m .../javax/accessibility/manual/...
Performing tests
When a test a started, a UI appears consisting of two frames: test framework frame and Swing Set 2 frame. Test framework frame will contain a name of the test in the title and detailed instructions.
- Follow the test instructions
- If everything goes as expected
- Push "Pass"
- UI for this test closes
- If something goes not accordding to the instructions:
- Push "Fail"
- A screenshot is taken automatically
- Describe the problem
- Retake the screenshot, if necessary
- Interract with the Swing Set 2 UI to make it showing the failure. Hit "Retake screenshot"
- If to demonstrate the failure the UI need to be in a state which prevents using test framework UI, such as model dialogs need to be opened or menu expanded
- Enter delay (in seconds)
- Push "Retake screenshot"
- Prepare the UI
- Wait for the screenshot to be retaken
- Push "Fail" button again
- Screenshot and the description are saved for further analysis
- Test UI closes
Wasning: Do not close any window directly, all windows will be closed once the test is finished as passed or failed.
Note: Keyboard navigation is supported throughout the test framework UI.