Java UI Unit Testing with jemmy
Upcoming SlideShare
Loading in...5
×
 

Java UI Unit Testing with jemmy

on

  • 1,584 views

 

Statistics

Views

Total Views
1,584
Views on SlideShare
1,584
Embed Views
0

Actions

Likes
0
Downloads
5
Comments
0

0 Embeds 0

No embeds

Accessibility

Categories

Upload Details

Uploaded via as Adobe PDF

Usage Rights

CC Attribution-NonCommercial LicenseCC Attribution-NonCommercial License

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

Java UI Unit Testing with jemmy Java UI Unit Testing with jemmy Presentation Transcript

  • 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 useractions which can be performed on• Jemmy2 for Swing/AWT• Jemmy3 for JavaFx componentsWhats JemmyWednesday, 22 May, 13
  • • 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 as JUnit, for example)could be used to execute tests.• Record-Replaying ToolJemmy is not ....Wednesday, 22 May, 13
  • • 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
  • 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
  • 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 May, 13
  • DEMOWednesday, 22 May, 13
  • • integrated with BDD( Behavior-Driven Development )• Borden Automated Regression Test supportedFuture IntegrationWednesday, 22 May, 13
  • 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• http://github.com/cucumber/cucumber-jvmWednesday, 22 May, 13
  • Q & AWednesday, 22 May, 13