More Related Content
More from Kazuhiro Eguchi
More from Kazuhiro Eguchi (8)
Automate the Swing application testing
- 8. 3.
//JFrame
FrameFixture frame = WindowFinder.findFrame( MyJFrame.class ).using( robot );
//
FrameFixture frame = new FrameFixture( robot, myJFrame );
JFrameFixture
- 9. 4.
//
JTextComponentFixture accountField = frame.textBox( “accountField” );
accountField.enterText( “root” );
//OK
JButtonFixture okButton = frame.button( “okButton” );
okButton.click();
“root” “accountField”
“okButton”
click
JFrameFixture
- 12. Swing
JFrame
JPanel JPanel
JTextField JButton JButton
- 14. name
//name accountField textBox
frame.textBox( “accountField” ).
“accountField”
JFrameFixture
- 16. JFrame
JPanel JPanel
JTextField JButton JButton
okButton okButton
- 17. • Fixture
click()
doubleClick()
enterText( String text )
drag()
etc
- 18. • Fixture
• require
• JUnit assert
requireText( String text )
requireEditable()
requireEnabled()
requireVisible()
etc
- 20. • Timeout
• Pause Condition
requireEnabled(Timeout timeout)
Pause
pause( Condition condition, Timeout timeout)
- 21. Pause
• Condition
• Timeout
• WaitTimedOutError
Editor's Notes
- \n
- \n
- \n
- \n
- \n
- \n
- \n
- \n
- \n
- \n
- \n
- \n
- \n
- \n
- \n
- \n
- \n
- \n
- \n
- \n
- \n