Warin LaocharoenKnowledge-Sharing Session - 23 May 2013Java UI Unit Testing withJemmyWednesday, 22 May, 13
• Whats Jemmy• Jemmy API Usage• Unit Testing with Jemmy• Future Integration• Q&AAgendaWednesday, 22 May, 13
• A Java library that is used to createautomated tests for Java GUI applications.• It contains methods to reproduce all us...
• not so many tutorials• not so many presentations and documents• few samplesWhats Jemmy ( cont. )Wednesday, 22 May, 13
• Test HarnessMeaning it is not a tool for test execution.Any harness which is able to execute testswritten in Java (such ...
• the same JVM as tested-application• simulate user operations on components by callingevents• search components recursive...
Jemmy Workflow• Find controls you need to do action for• Do something with that control• Verify Results of the actionFind D...
Jemmy API• Operatorsused for capture components & actions• QueueTool / Timeoutstiming tool• UtilityWednesday, 22 May, 13
Unit Testing with Jemmy• integrated with Mock Framework (EasyMock)• support Continuous Integration (Jenkins)Wednesday, 22 ...
DEMOWednesday, 22 May, 13
• integrated with BDD( Behavior-Driven Development )• Borden Automated Regression Test supportedFuture IntegrationWednesda...
Based on GherkinsStep Definitions• Given•When•Then•Anddefined syntax with:Wednesday, 22 May, 13
References• http://jemmy.java.net• http://wiki.netbeans.org/Jemmy• http://www.slideshare.net/pa810p/jemmy-introduction• ht...
Q & AWednesday, 22 May, 13
Upcoming SlideShare
Loading in …5
×

Java UI Unit Testing with jemmy

2,729 views

Published on

Published in: Technology
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
2,729
On SlideShare
0
From Embeds
0
Number of Embeds
6
Actions
Shares
0
Downloads
18
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Java UI Unit Testing with jemmy

  1. 1. Warin LaocharoenKnowledge-Sharing Session - 23 May 2013Java UI Unit Testing withJemmyWednesday, 22 May, 13
  2. 2. • Whats Jemmy• Jemmy API Usage• Unit Testing with Jemmy• Future Integration• Q&AAgendaWednesday, 22 May, 13
  3. 3. • A Java library that is used to createautomated tests for Java GUI applications.• It contains methods to reproduce all useractions which can be performed on• Jemmy2 for Swing/AWT• Jemmy3 for JavaFx componentsWhats JemmyWednesday, 22 May, 13
  4. 4. • not so many tutorials• not so many presentations and documents• few samplesWhats Jemmy ( cont. )Wednesday, 22 May, 13
  5. 5. • Test HarnessMeaning it is not a tool for test execution.Any harness which is able to execute testswritten in Java (such as JUnit, for example)could be used to execute tests.• Record-Replaying ToolJemmy is not ....Wednesday, 22 May, 13
  6. 6. • the same JVM as tested-application• simulate user operations on components by callingevents• search components recursively by given criteria• criteria defined as implementation ofComponentChooser InterfaceHow Jemmy works ?Wednesday, 22 May, 13
  7. 7. Jemmy Workflow• Find controls you need to do action for• Do something with that control• Verify Results of the actionFind Do VerifyFailure AnalysisPass PassPassFailed Failed FailedWednesday, 22 May, 13
  8. 8. Jemmy API• Operatorsused for capture components & actions• QueueTool / Timeoutstiming tool• UtilityWednesday, 22 May, 13
  9. 9. Unit Testing with Jemmy• integrated with Mock Framework (EasyMock)• support Continuous Integration (Jenkins)Wednesday, 22 May, 13
  10. 10. DEMOWednesday, 22 May, 13
  11. 11. • integrated with BDD( Behavior-Driven Development )• Borden Automated Regression Test supportedFuture IntegrationWednesday, 22 May, 13
  12. 12. Based on GherkinsStep Definitions• Given•When•Then•Anddefined syntax with:Wednesday, 22 May, 13
  13. 13. References• http://jemmy.java.net• http://wiki.netbeans.org/Jemmy• http://www.slideshare.net/pa810p/jemmy-introduction• http://github.com/cucumber/cucumber-jvmWednesday, 22 May, 13
  14. 14. Q & AWednesday, 22 May, 13

×