Test Driving Your S-Wing - PowerPoint PPT Presentation

About This Presentation
Title:

Test Driving Your S-Wing

Description:

As an author I would like to be prompted for confirmation on exit ... Jemmy (Netbeans) http://jacareto.sourceforge.net. Jacreto. http://jacareto.sourceforge.net ... – PowerPoint PPT presentation

Number of Views:82
Avg rating:3.0/5.0
Slides: 15
Provided by: patri52
Category:
Tags: driving | jemmy | test | wing

less

Transcript and Presenter's Notes

Title: Test Driving Your S-Wing


1
Test Driving Your S-Wing
By Patrick Kua emailpat ltatgt thekua.com pkua
ltatgt thoughtworks.com
2
The Agenda
3
Developer Loop
Acceptance Tests x1
4
Writing Acceptance Tests
5
(No Transcript)
6
VS
Source
Test
7
  • public void testOnExitIAmAskedForConfirmation()
  • MainApplication application
    TestHelper.getMainApplication()
  • ConfirmationDialog dialog
    application.clickExit()
  • assertNotNull(dialog)
  • assertEquals(Are you sure you want to
    Exit?,
  • dialog.getMessage())
  • dialog.clickCancel()
  • assertTrue(application.isShowing())

8
How To Implement
  • No Frameworks (yay!)
  • Model View Presenter
  • Test Things Only Worth Testing
  • Unit Test as Much as Possible
  • Code Changes Based on Tests
  • Demonstration

9
How it all works (Yawn I mean Architecture)
10
Implementing Confirmation of Exit
Actually Exit
11
Abbot Costello
  • Alternatives include
  • Marathon Man
  • http//marathonman.sourceforge.net
  • Jemmy (Netbeans)
  • http//jacareto.sourceforge.net
  • Jacreto
  • http//jacareto.sourceforge.net
  • JFC Unit
  • http//jfcunit.sourceforge.net
  • Pounder
  • http//pounder.sourceforge.net

http//abbot.sourceforge.net/
12
Robust Acceptance Tests
13
Top Tips
14
The resources for this presentation can be found
at http//www.thekua.com/conferences/xp2006
Questions?
Write a Comment
User Comments (0)
About PowerShow.com