Integration Testing Example
Address Book is a Mac OS X application that manages and displays personal contact information via vCards (virtual cards). However, Address Book does more than just manage contact information; it also lets you actively use your contact information in other applications. Clicking on a contact's email address in Address Book for example, will start a new email addressed to the contact in the Mail application.
Test Specs:
Platform: Mac OS X (10.3.5)
Applications: Mac OS X Address Book Facility: Address Book, iChat, iCal, Mail, Safari
Objective:
The purpose of this test will be to verify that the Address Book facility functions as expected when used in conjunction with iChat, iCal, Mail, and Safari.* Our test script will validate the following:
- Address Book startup
- Importing vCards into Address Book
- Interaction between Address Book and Mail
- Interaction between Address Book and iCal
- Interaction between Address Book and Safari
Test Details:
The test scripts will repeat the following steps 10 times.
- One of the following methods of starting Address Book will be chosen at random:
- From the Mac OS X Applications' folder
- Clicking on a vCard
- From iCal's window menu
A successful startup will be indicated by the appearance of the Address Book application menu in the top menu bar.
- One of the following import methods will be chosen at random.
- Selecting Import from the File menu.
- Dragging cards into Address Book's window.
A successful import will be indicated by the text message "Adding x cards" or "Importing x cards": x is the number of cards imported/added. Our test script will use a set of 6 vCards (provided with test scripts) to test the import mechanism. The vCards must be placed on the desktop and must be visible at all times during test execution.
- Interaction between Address Book and Safari. Clicking on a home page URL in Address Book should invoke Safari to load the Web page. Success will be based on whether the URL in Safari's address field matches the URL clicked on in Address Book.
- Interaction between Address Book and Mail. Clicking on "Send Email" in Address Book should start the composition of a new email in Mail. Success will be determined when the recipient email address in Mail matches the email address in Address Book.
- Interaction between Address Book and iChat. Clicking on "iChat" should start a new iChat session. Success will be determined when the IM name of the iChat session matches the IM name in Address Book.
Scripts:
- main.script: Test execution will commence from this script.
- startApp.script: Launches a specified application on Mac OS X.
- startAddrBook.script: Starts Address book.
- importCards.script: Validates the vCard import.
- searchAddrBook.script: Conducts a search for a specific card in Address Book.
- getCardInfo.script: Retrieves card information.
- testSafari.script: Tests the interaction between Address Book and Safari.
- testMail.script: Tests the interaction between Address Book and Mail.
- testiChat.script: Tests the interaction between Address Book and iChat.
- tripleClick.script: Implements a triple-click, used for selecting blocks of text.