MyITBlog.com - IT Professionals Online Journal
 
  Home  |   Site News  |   About Us  |   Privacy  |   FAQ  |   Contact   Add Blog Entry  |  Login  |  Register   
 My Account
Username
Password
Remember me
Lost Password?


 Categories


admin's User Blog
Profile  |   User Blog  |   Votes  |   Friends
 


 < Previous   Showing Page: 2 of 54   Next >Order by Date | Hits | Total Votes

0
Votes
Swing Extreme Testing in Tech Notes   
by admin on 16 Jul 2008, 19:45
Swing Extreme Testing by Tim Lavers, Lindsay Peters This book is a practical guide to automated software testing for extreme Java programming using Swing GUIs, with lots of ready-to-use real-life examples and source code for automated testing of the software components usually regarded as too hard to...
Total Hits: 116      0 Comments Add Comment  Visit



0
Votes
Swing Extreme Testing - Outline of the Unit Test in Tech Notes   
by admin on 16 Jul 2008, 19:45
Outline of the Unit Test The things we want to test are: Initial settings: The text field is empty. The text field is a sensible size. The Ok button is disabled. The Cancel button is enabled. The dialog is a sensible size.
Total Hits: 99      0 Comments Add Comment  Visit



0
Votes
Swing Extreme Testing - Getting the Text of a Text Field in Tech Notes   
by admin on 16 Jul 2008, 19:45
Getting the Text of a Text Field The method is getText(), and there is a variant to retrieve just the selected text:
Total Hits: 103      0 Comments Add Comment  Visit



0
Votes
Swing Extreme Testing - Unit Test Infrastructure in Tech Notes   
by admin on 16 Jul 2008, 19:45
Unit Test Infrastructure Having seen the broad outline of the test class and the UI methods needed, we can look closely at the implementation of the test. We'll start with the UI Wrapper class and the init() and cleanup()methods.
Total Hits: 98      0 Comments Add Comment  Visit



0
Votes
Swing Extreme Testing - The ShowerThread Class in Tech Notes   
by admin on 16 Jul 2008, 19:45
The ShowerThread Class Since SaveAsDialog.show() blocks, we cannot call this from our main thread; instead we spawn a new thread. This thread could just be an anonymous inner class in the init()method:
Total Hits: 91      0 Comments Add Comment  Visit



0
Votes
Swing Extreme Testing - The init() Method in Tech Notes   
by admin on 16 Jul 2008, 19:45
The init() Method The job of the init() method is to create and show the SaveAsDialog instance so that it can be tested:
Total Hits: 101      0 Comments Add Comment  Visit



0
Votes
Swing Extreme Testing - The Constructor Test in Tech Notes   
by admin on 16 Jul 2008, 19:45
The Constructor Test A freshly constructed SaveAsDialog should be in a known state, and we need to check the things we listed at the start of this chapter.
Total Hits: 92      0 Comments Add Comment  Visit



0
Votes
Swing Extreme Testing - The wasCancelled() Test in Tech Notes   
by admin on 16 Jul 2008, 19:45
The wasCancelled() Test The first of our API tests is to check the wasCancelled() method. We will basically do three investigations. The first test will call wasCancelled()before the dialog has been cancelled. The second test will cancel the dialog and then call the method. In the third test we will...
Total Hits: 103      0 Comments Add Comment  Visit



0
Votes
Swing Extreme Testing - The name() Test in Tech Notes   
by admin on 16 Jul 2008, 19:45
The name() Test Like the wasCancelled()method, the name() method is not thread-safe, so our test class needs another boilerplate helper method:
Total Hits: 95      0 Comments Add Comment  Visit



0
Votes
Swing Extreme Testing - The Data Validation Test in Tech Notes   
by admin on 16 Jul 2008, 19:45
The Data Validation Test The Ok button of the SaveAsDialog should only be enabled if the name that has been entered is valid. A name can be invalid if it contains an illegal character, or if it has already been used.
Total Hits: 103      0 Comments Add Comment  Visit




Show Page: 1 [ 2 ] 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54
Copyright © 2008 MyITBlog.com