TS 73 CDevProjects

Team Server Projects Test Specification for NetBeans 7.3

Author: Štěpán Žebra
Version: 1.2
Last update: 3.9.2012
Introduction: Test specification for testing the management of Team Server (Connected Developer) projects - their creation, opening, presence in the IDE with associated services, etc. For all test suites it is required that the user must have existing account at java.net or kenai.com or some other Team Server instance.
Comments: This document is heavily based on TS_69_CDevProjects which is now obsolete.

Contents


Test suite: Common Team Server UI

Purpose: Test that the main menu is present and contains correct items.
Setup: Freshly installed NetBeans IDE with clean userdir and Team Server plugin installed.

  1. Main Menu
    1. Go to main menu Team | Team Server.
    • EXPECTED RESULT: Following menu items are present:
      - Login...
      - Logout...
      --------------
      - java.net
      --------------
      - Add Team Server...
  2. java.net Menu
    1. Go to main menu Team | Team Server | java.net.
    • EXPECTED RESULT: Following menu items are present:
      - New Project...
      - Open Project...
      - Get Sources...
      --------------
      - Send Chat Message...
      - Show Contact List
      --------------
      - Edit Team Server...
      - Remove Team Server
  3. Login - invalid credentials
    1. Invoke Team | Team Server | Login... main menu action.
    2. Fill in some random/invalid credentials.
    3. Push the Login button.
    • EXPECTED RESULT: Login fails with "Authentication failed" message.
  4. Login
    1. Invoke Team | Team Server | Login... main menu action.
    2. Fill in credentials of a valid user.
    3. Untick the "Remember me" checkbox.
    4. Push the Login button.
    • EXPECTED RESULT: Login process is successfully completed. "Team" dashboard shows up with username and logout link in it's top area and "Open Projects" and "My Projects" categories.
  5. Logout
    1. While logged in, invoke Team | Team Server | Logout....
    • EXPECTED RESULT: Logout process is successfully completed. "Team" dashboard contains Login... link in it's top area and "My Projects" category disappears. Any projects that were opened in "Open Projects" category are still present.
  6. Login - Remember me
    1. Invoke Team | Team Server | Login... main menu action.
    2. Verify no credentials are filled in.
    3. Fill in credentials of a valid user.
    4. Verify "Remember me" checkbox is ticked.
    5. Push the Login button.
    6. Wait until all the login and after-login actions are completed.
    7. Click on the logout link in the "Team" dashboard.
    8. After the user is logged out and the dashboard is refreshed, click on the Login... link.
    • EXPECTED RESULT: The credentials you filled in are pre-filled in the form and they can be used for login (correct credentials were persisted).
  7. "Team" Dashboard
    1. Close the "Team" Dashboard.
    2. Restart the IDE.
    3. Invoke Window | Team main menu action.
    • EXPECTED RESULT: "Team" dashboard shows up by the Projects/Files/Services view (if those views are present).


Test suite: New Team Server Project

Purpose: Test that a new Team Server project can be created via IDE.
Setup: Team Server plugin installed.

  1. Create a new Team Project
    1. Invoke Team | Team Server | java.net | New Project... main menu action.
    2. Fill in the project details (unique name, display name, description and license).
    3. If you are not logged in, use the "Login..." button in the top of the dialog and log in as a valid user.
    4. Push the Next > button to continue to the next step.
    5. Choose the source code management and issue tracking details.
    6. Push the Next > button to proceed to the summary.
    7. Push Finish and wait until the creation is complete.
    • EXPECTED RESULT: A dialog announcing a successful project creation and some other details (local repository path) should show up. A new project is created and opened in the "Team" dashboard - it should be in the bottom of the list and its display name should be in boldface. Check that the local repository was created correctly.
  2. Share a project on Team Server
    1. Invoke File | New Project... main menu action and create a new project (for example a Java Application).
    2. In the "Projects" view, invoke Share on Team Server... pop-up menu action on the root node of the newly created project.
    3. If you are not logged in, use the "Login..." button in the top of the dialog and log in as a valid user.
    4. Fill in the project details (unique name, display name, description and license).
    5. Push the Next > button to continue to the next step.
    6. Choose the source code management and issue tracking details.
    7. Verify that the checkbox "Commit the source into repository right now" ticked.
    8. Push the Next > button to proceed to the summary.
    9. Push Finish and wait until the creation is complete.
    • EXPECTED RESULT: The project is created on the Team Server and sources are committed to the repository using the selected SCM.


Test suite: Acquiring Team Server Projects

Purpose: Test that it's possible to open a Team Server project in the dashboard and get the project's sources.
Setup: Team Server plugin installed.

  1. "Featured" and "Recently Created" projects
    1. Invoke Team | Team Server | java.net | Open Team Project....
    2. Switch between the "Featured" and "Recently Created" tabs to check the loading progress.
    3. Wait until the projects are loaded.
    4. Select one of the featured projects and push the Open from Team Server button.
    5. Invoke Team | Team Server | java.net | Open Team Project... again.
    6. Select one of the recently created projects and push "Open from Team Server" button.
    • EXPECTED RESULT: There are projects in both Fetured and Recent tabs. On the first dialog opening, it takes some time to load all the projects. When the "Open Team Project" dialog is opened for the second time, the projects are already loaded. The projects which were selected to be opened are present in the "Open Projects" category of the "Team" dashboard.
  2. Open project with search - main menu
    1. Invoke Team | Team Server | java.net | Open Team Project....
    2. Type something in the "Search" box (for example "test") and push Search.
    3. Wait for the projects to load.
    4. Choose some project from the list of results and push the Open from Team Server button.
    • EXPECTED RESULT: Project is opened in the "Team" dashboard. If the project is your project, it should have its display name in the boldface.
  3. Open project with search - "Team" dashboard
    1. Go to the "Team" dashboard (Ctrl+8).
    2. Click the Open Team Project... icon button in the upper right corner of the dashboard.
    3. Type something in the "Search" box (for example "test") and push Search.
    4. Wait for the projects to load.
    5. Choose some project from the list of results and push the Open from Team Server button.
    • EXPECTED RESULT: The project you opened shows up in the dashboard. If the project is your project, it should have its display name in the boldface.
  4. Get Sources - main menu
    1. Invoke Team | Team Server | java.net | Get Sources....
    2. Click the Browse... button next to the "Kenai Repository" field.
    3. Type something in the "Search" box (for example "test") and push Search.
    4. Chose some project from the list of results and push OK.
    5. If the project uses Subversion, you can specify the "Folder to Get".
    6. Specify the path for local copy (or leave the default one) in the "Local Folder" field.
    7. Push the Get From Team Server button.
    • EXPECTED RESULT: Sources are checked out/cloned to the destination you specified. If the repository contains a NB project, you are prompted if you want to open the project, otherwise you are prompted if you want to create a NB project.
  5. Get Sources - "Team" dashboard
    1. Open some Team Project with a repository (see previous test cases).
    2. Expand the nodes of the project in the "Team" dashboard, so that you can see the node named "Sources".
    3. Click the get link below the "Sources" node.
    4. If the project uses Subversion, you can specify the "Folder to Get".
    5. Specify the path for local copy (or leave the default one) in the "Local Folder" field.
    6. Push the Get From Team Server button.
    • EXPECTED RESULT: Sources are checked out/cloned to the destination you specified. If the repository contains a NB project, you are prompted if you want to open the project.


Test suite: "Team" Dashboard

Purpose: Test the functionality of the "Team" dashboard.
Setup: Team Server plugin installed. Some project opened in "Team" dashboard.

  1. Navigation on the Team Server web pages
    1. Expand a node of some project and all its subnodes.
    2. Click the details link below the project's display name.
    • EXPECTED RESULT: Every project has "Members", "Issues" and "Sources" nodes and also the details link. After clicking the link, Details page is opened in the editor area. The links on the Details page must navigate you to a proper page - a web browser is opened when you click them.
  2. Refresh the whole project list
    1. Click the Refresh icon button in the top of the dashboard.
    • EXPECTED RESULT: The list of projects that are currently opened is refreshed, changes made via a web interface should be reflected in the IDE.
  3. Refresh a single project
    1. Right-click a project in the "Team" dashboard.
    2. Invoke Refresh action from the popup menu.
    • EXPECTED RESULT: A single project is refreshed, changes made via a web interface should be reflected in the IDE.
  4. Project details from the popup menu
    1. Right-click a project in the "Team" dashboard.
    2. Invoke "Details" action from the popup menu
    • EXPECTED RESULT: A page with the project details opens. There are 3 tabs: "Communication", "Issue Tracking" and "Development". Links on the page should open a web browser on a valid URL.
  5. Remove the project from the dashboard
    1. Click the X icon button by an opened project in the "Team" dashboard.
    2. Right-click another opened project in the "Team" dashboard.
    3. Invoke Close action from the popup menu.
    4. Restart the IDE.
    • EXPECTED RESULT: A project is removed from the list once you invoke Close. The status of the "Team" dashboard is persistent between the restarts.
  6. "What is Team Server?" link
    1. Logout from all Team Servers.
    2. Remove all projects from the "Team" dashboard.
    3. When all projects are removed, there is a link What is Team Server? - click it.
    • EXPECTED RESULT: A web browser opens, a page with Team Server overview is opened.


Not logged in. Log in, Register

By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo