Spaces Testing

From Eclipsepedia

Jump to: navigation, search

Contents

Introduction

Run through all test cases if possible. Bugs should be reported here: https://bugs.eclipse.org/bugs/enter_bug.cgi?product=Spaces

Feel free to add new test cases, or adapt and elaborate the existing test cases.

Test cases

Basic Add Space dialog

ID 4329 :: Test Case Add local space

Summary

-

Steps

  1. Open the spaces view
  2. Press Add Space Location in the view's toolbar
  3. Select "Local File System" provider (if not already selected)
  4. Enter a path with invalid characters (such as space)
  5. Remove illegal characters
  6. Make sure the path is something like "/mp/MySpace" Select "create new space"
  7. Press Done

Expected Results

  1. Spaces View opens
  2. The Add Space Dialog appears
  3. All fields except "path" should be disabled
  4. Field should trun yellow and a message should appear
  5. The field should turn white and no message should be displayed
  6. -
  7. The location should appear in the spaces view

ID 4335 :: Test Case Add Xdrive Space

Summary

You must have an xdrive account for this test

Steps

  1. Open Spaces view (Select Windows > Open View > Other > Spaces)
  2. Press Add Space
  3. Select Xdrive
  4. Enter information for the Xdrive account
  5. Select option to create space

Expected Results

  1. View opens
  2. Add space dialog opens
  3. Port and login field shoud be disabled
  4. Enter your xdrive account information
  5. Space is created and it displays in the spaces view

Publishing

ID 4338 :: Test Case Basic Publishing

Summary

As a preparatory step you need to create a plugin project in your workspace. This plugin does not have to have any special traits.

Steps

  1. Right click over the project
  2. Select Spaces > Publish
  3. Select space
  4. Select Update Site Publishing
  5. Add an UpdateSite suggest "MyUpdateSite"
  6. Press next to finish publishing
  7. Copy or write down this URL


Expected Results

  1. Context menu appears
  2. The spaces publishign wizard appears
  3. Select an xdrive space already added to catalog
  4. It is possible to continue the wizard
  5. The update site is added to the list, it can be selected and it is posible to continue in wizard
  6. Progress monitors appear as publishign takes place
  7. The URL is displayed and it can be copied to the clipboard

ID 4340 :: Test Case Advanced publishing and import

Summary

-

Steps

  1. Create a plugin project that depends on something that is in your target platform, but that does not come with a normal Eclipse 3.3. distribution.
  2. checkin the source at a publicly available source repository (you can use eclipsesvn.cloudsmith.com for testing)
  3. Perform publishing as described in 4338:Basic Publishing
  4. With an Eclipse IDE that lacts the bundle your plugin is dependent on, run the Spaces Import Wizard
  5. Paste the URL to the spaces update site you published to
  6. Select that update site bundles should be importet as source, and that all dependent non existing bundles should be stored in your workspace
  7. Finish the wizard
  8. Perform verification

Expected results

  • Verify that the source projects were created and that the non installed bundles are placed in your Eclipse WS.

ID 4342 :: Test Case Add space while publishing

Summary

-

Steps

  1. Start publishing for a plugin project you have created.
  2. Instead of selecting an existing space, press button to add a space
  3. Add a space (local or xdrive)
  4. (return to wizard)
  5. Continue publishing in the newly added space

Expected Results

  • The new space is added, it is displayed in the list, it is possible to select, and publishing can finish with the newly added space.

Spaces view

ID 4326 :: Test Case Basic Spaces View functionality

Summary

In preparation for this test, you must have installed spaces, and have added some space locations, and performed publishing.

Steps

  1. Open Spaces View (Select Windows > Open View > Other > Spaces)
  2. Drill down into all nodes
  3. Righ mouse click over a space to get a context menu
  4. Discard a location
  5. Add a location (same again for instance)

Expected Results

  1. Spaces view opens and shows a tree with two nodes - space providers and spaces - there should be a count of available providers and spaces
  2. Note any irregular odd behavior - there should be a pending... node when things are fetched in the background. The content should then appear.
  3. Context menu for a space should have
    • create (disabled if space already exists)
    • refresh (over a space)
    • reset/new password
    • discard location
  4. Note that it disappears from the view
  5. Note that the location appears when added

Exceptional behaviour

ID 4345 :: Test Case not stating password for xdrive

Summary

In preparation for this test, you need to clear/rest passwords if you have stored the previously.

Steps

  1. Open Spaces View and drill down into a space node that requires password
  2. When prompted for password, press cancel
  3. Press refresh over the space node that displayes "not logged in"
  4. Enter password (do not store it)

Expected Results

  1. No information from the space should be displayed. System should shown "not logged in" in the tree.
  2. No information from the space should be displayed. System should shown "not logged in" in the tree.
  3. A new prompt for password is displayed
  4. Tree displays information from the space

ID 4347 :: Test Case backing out of bad password

Summary

-

Steps

  1. In the spaces view - Clear the password for a space
  2. store the wrong pasword
  3. attempt to drill down
  4. reset password again and enter correct password
  5. drill down again

Expected Results

  1. A confirmation dialog appears, press ok to clear
  2. the wrong password is stored
  3. the attempt should fail with a "non logged in" node in the tree
  4. -
  5. Information from space appears in the tree