IPhone Basic Acceptance Tests

From Aptana Development

Contents

Installation

  1. Launch the Aptana Start Page
  2. Download the Aptana plugin for Apple iPhone Support and install
    1. Ensure no dependency errors popup
  3. Restart the IDE
  4. Go to Window->Preferences->Aptana->Editors->HTML->Preview
    1. Ensure the iPhone preview browser is added and selected

Project Creation

  1. Go to Window->Preferences->Aptana->Editors->HTML->Preview
  2. Deselect the iPhone preview
  3. Select OK
  4. Create a new iPhone project
  5. Add MochiKit library
  6. Select Finish
    1. Ensure a dialog pops up notifying that the iPhone preview is not enabled and asking if it should be enabled
    2. Select Yes to enable it
  7. Ensure project created with iPhone icon
  8. Ensure following files exist in project:
    1. index.html
    2. iPhoneArrow.png
    3. iPhoneToolbar.png
    4. lib folder with MochiKit inside
  9. Ensure index.html is opened in the HTML editor with the iPhone Preview
  10. Click outside the browser
    1. Ensure the iPhone rotates when clicked
  11. Click the top phone toolbar (where the battery icon is)
    1. Ensure it expands and collapses the top of the browser
  12. Add the following content to the page
<a href="http://www.aptana.com">test</a>
  1. Go to the iPhone preview
  2. Select the new link
  3. Click the back button on the phone
    1. Ensure it goes back to the original page
  4. Click the forward button on the phone
    1. Ensure it goes forward to www.aptana.com

Runtime

  1. Select Run button
    1. Ensure iPhone Application Server dialog launches
    2. Ensure console created in Console view for <project name>
  2. Put server URL inside Firefox (with Firebug disabled) or iPhone itself
    1. Ensure logging message printed to console
  3. Type alert('test'); in Console View and hit enter
    1. Ensure Firefox displays alert
  4. Type window.location in Console View and hit enter
    1. Ensure URL of page is printed to console
  5. Stop application server
    1. Ensure console removed and no longer displayed
  6. Rename project and rerun *Next Release Only
    1. Ensure application launches still *Next Release Only
  7. Delete project *Next Release Only
    1. Ensure prompt is shown asking to delete iPhone configuration *Next Release Only

Samples View

  1. Preview iPhone EXT Accordion Sample
  2. Import EXT Accordion Sample
  3. Click run button and verify EXT Accordion Sample project launches

Links