alt
Advertisement
Online Training
Career Series
Exforsys
Exforsys









Training By Email

Exforsys Daily Training By Email

Sign up for the Daily Training e-mail newsletter, offering free trainings on various subjects and tips from experts. You can unsubscribe anytime. Please note you will need to confirm your subscription before you start getting daily updates. if you would like to use your own RSS Reader Subscribe Here

Enter your email address:

Delivered by FeedBurner

Signup for Newsletter

Exforsys Weekly News Letter

Sign up for the weekly Exforsys Knowledge e-mail newsletter, offering free trainings on various subjects and tips from experts. You can unsubscribe anytime. Please note you will need to confirm your subscription before you start getting weekly digest.

* Your email address:
Name:
* Enter the security code shown:
 
Site Search
Latest Comments
Who is eligible to get Scholarship?
my parents won't be able to pay for college for me.....but i had a 3.3 gpa my freshman yr. i am now a sophmore...what kind of scholarships can i look for?
The Role of a Chiropractor
I love my chiropractors. The information I have just read, is right to the point of an excellent chiro. and I must say my chiropractors are great. My chiropractors are kind, caring, and knowledgeable...
Tutorial 14: Oracle 9i : Database Triggers
hey this is good one for getting the conecpt as a beginner level
Step by Step Oracle PL-SQL Tutorial
can any body tell me when materialized view is used,
Object Oriented Programming Concepts
Thanks for this. Good.
Photographic Memory
you can create photographic memory, it takes a few months but you should eventually be able to recite a page from a book from less than a second of viewing with proper training.
What is User Acceptance Testing?
This is really a very good understanding about UAT. Actually in your tezt plan document, you always use propar format and its start from Introduction, Scope (a) In Scope (b)Out scope, Impacted system,...
Introduction to ASP.NET with C#
suggest me the book or provide me a notes.........on c#..with with some example.........develop a really ther is a problem in database connectivity
Oracle 10g Tutorials: Tables
George92 - Short answer: you can't. SQL is not hard. It's also a good skill to have.
Basic concepts of OOPS and Structure of C++ program
Great tutorials, for quick learning
Latest Discussions
Testing Tutorials : Where can i get Softwares forTesting tools?..
Microsoft CRM : Exception from HRESULT: 0x80040216 creating quote revisions or invoices..
Freshers Jobs : Instructional Designer - Fresher Stylus Systems Pvt Ltd..
C and C++ : how to open image file in c
Software Testing : HP Quality Center Dumps
Oracle Database : where to download oracle sql*plus help..
Oracle Database : how i know the all table names
Oracle JDeveloper : Oracle 9i tips n tricks documents for Performance Tuning..
USA Immigration : H1B Transfer
Siebel : SARM - Diagnosing performance
Oracle Apps : Oracle apps functional career
Oracle Apps : iWare Logic is Oracle Approved Education Center at Pune, India...
COBOL : Mainframe Excellent Positions
Experienced Job Seekers - India : EMP Referral Walk-In "IBM INDIA":Multiple Skills/Locations :On 7th thr..
C and C++ : without main function how can we run c program..


Free Training
Swing Extreme Testing - The Data Validation Test
Tutorials - Swing Testing

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.

 
Swing Extreme Testing - The name() Test
Tutorials - Swing Testing

The name() Test

Like the wasCancelled()method, the name() method is not thread-safe, so our test class needs another boilerplate helper method:

 
Swing Extreme Testing - The wasCancelled() Test
Tutorials - Swing Testing

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 enter a name, cancel the dialog, and then call wasCancelled().

 
Swing Extreme Testing - The Constructor Test
Tutorials - Swing Testing

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.

 
Swing Extreme Testing - The init() Method
Tutorials - Swing Testing

The init() Method

The job of the init() method is to create and show the SaveAsDialog instance so that it can be tested:

 
Swing Extreme Testing - The ShowerThread Class
Tutorials - Swing Testing

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:

 
Swing Extreme Testing - Unit Test Infrastructure
Tutorials - Swing Testing

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.

 
Swing Extreme Testing - Getting the Text of a Text Field
Tutorials - Swing Testing

Getting the Text of a Text Field

The method is getText(), and there is a variant to retrieve just the selected text:

 
Swing Extreme Testing - Outline of the Unit Test
Tutorials - Swing Testing

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.
 
Swing Extreme Testing
Tutorials - Swing Testing

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 test automatically.

 
Swing Extreme Testing Book Review
Reviews - Books

Swing Extreme Testing Book Review

Swing used to be a simple component offered as an add-on for Java. This plug-in can be used as a GUI (graphical user interface) to develop as an add-on for the Java application. It has the ability to emulate certain platforms eventually building a powerful application. With this plug-in, users will experience the full potential of Java as it uses its native capability and with the help of Swing, different web development languages are added to the application. Swing’s ability to emulate eventually made this plug-in one of the most popular and important tools in Java development that it eventually became part of Java development package.

 
Syndicate
Login
User name

Password



Exforsys Offers
Google Ads
RSS Feeds

Syndicate - Exforsys.com

Partner Sites

Discussion Forum
Interview Questions
Placement Papers
Tech FAQs
Online Quiz
Job Postings
Free Articles and Tutorials
Scripts and Ebooks
AJAX Resources and Information

© 2008 Exforsys.com
Joomla! is Free Software released under the GNU/GPL License.
Page copy protected against web site content infringement by Copyscape