TS 67 CDevProjects

Connected Developer "Kenai Projects" Test Specification

Author: Petr Dvorak
Version: 6.7
Last update: 2009/04/01
Introduction: This document is test specification for Features related to the Kenai projects, their creation, opening, presence in the IDE with associated services, etc.



Contents


Test suite: Common Kenai UI

Purpose: To verify that the main menu is present and contains the right items.
Setup: Start IDE with a fresh userdir and with the command-line switch "-J-Dkenai.com.url=https://testkenai.com"

File:Screenshot login window TS 67 CDevProjects.png? Screenshot - login dialog

  1. Main Menu
    1. Open "Team>Kenai" from the main menu
    • EXPECTED RESULT: Following menu items are present:
      - Login to Kenai...
      - Share Project on Kenai...
      - Open Kenai Project...
      - Get Sources From Kenai...
      --------------
      - Send Chat Message...
      - Show Contact List
  2. Login Dialog - invalid credentials
    1. Invoke "Team>Kenai>Login to Kenai" from the main menu
    2. Fill in some random/invalid credentials
    3. Click Login button
    • EXPECTED RESULT: Login must fail.
  3. Login Dialog
    1. Invoke "Team>Kenai>Login to Kenai" from the main menu
    2. Fill in credentials of some existing testkenai user
    3. Click Login button
    • EXPECTED RESULT: You should be logged in. The Kenai dashboard shows up and it starts opening your (test)Kenai projects (those projects have display name in the boldface).
  4. Logout
    1. Follow the previous test case if you didn't...
    2. Invoke "Team>Kenai>Logout"
    • EXPECTED RESULT: You must be logged out - you can verify it in the main menu or in the Kenai dashboard ("Login to Kenai" link is present)
      The Kenai projects that were opened in the dashboard are still present nut they are not bold anymore...
  5. Login - Remember me
    1. Invoke "Team>Kenai>Login to Kenai"
    2. Verify no credentials are filled in
    3. Fill in credentials of an existing testkenai user
    4. Check the "Remember me" checkbox
    5. Click the "Login" button
    6. Wait until the projects are loaded and invoke "Team>Kenai>Logout"
    7. Invoke "Team>Kenai>Login to Kenai"
    • EXPECTED RESULT: The credentials you filled in are pre-filled in the form and they can be used for login (correct credentials were persisted).
  6. The Kenai Dashboard
    1. Close IDE and start it with a fresh userdir
    2. Invoke "Window>Kenai" from the main menu
    • EXPECTED RESULT: The Kenai dashboard shows up by the Projects/Files/Services view (if those views are present).


Test suite: New Kenai Project

Purpose: To verify that a new Kenai project can be created via IDE.
Setup: Start IDE with a fresh userdir and with the command-line switch "-J-Dkenai.com.url=https://testkenai.com"
Note: This suite is only about creating a project on Kenai. It is not about sharing sources. You can share your project by committing/pushing a project in the repository later - this is done the same way as in any other repository. Alternatively, you can use "Share on Kenai" to share your sources, see next testsuite.

  1. Create a New Kenai Project - main menu (direct)
    1. Invoke "Team>Kenai>Share Project on Kenai" from the main menu
    2. Fill in the project details (unique name, display name, description and license)
    3. If you are not logged in, use the "Login to Kenai" button in the top of the dialog and log in using some credentials
    4. Choose the issue tracking and source code management details
    5. You can select which NetBeans projects should be shared on Kenai
    6. Click Finish and wait for the dialog with the local repository path to show up (note the repository path somewhere)
    • 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 Kenai 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. Create a New Kenai Project - main menu (via open dialog)
    1. Invoke "Team>Kenai>Open Kenai Project" from the main menu
    2. Click the "Create New Project" button
    3. Follow the same steps as in the previous test case to share a project
    • 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 Kenai 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.
  3. Create a New Kenai Project - Kenai dashboard
    1. Open the Kenai dashboard
    2. Click the "Open Project..." link in the upper right corner of the dashboard
    3. Click the "Create New Project" button
    4. Follow the same steps as in the previous test case to share a project again
    • EXPECTED RESULT: A dialog announcing a successful project creation and some other details should show up. A new project is created and opened in the Kenai dashboard - it should be in the bottom of the list and its display name should be in boldface.
  4. Share a project, popup - success
    1. Create a Netbeans project (for example a Java Application) or use some existing project that is not versioned yet
    2. Right-click the project in the Projects view and invoke "Share On Kenai"
    3. If you are not logged in to Kenai, log in using the Login button
    4. Fill in some project name, project display name, description and choose some license
    5. Leave the checkbox "Commit the source into repository" checked
    6. Click the Help button and verify that the Help is displayed properly (close the help then)
    7. Click Finish
    • EXPECTED RESULT: A project is created on Kenai and sources are committed to the repository using the SVN (check it on web). User must be logged in in order to create a project on Kenai.
  5. Share a project, popup - no commit
    1. Create a Netbeans project (for example a Java Application) or use some existing project that is not versioned yet
    2. Right-click the project in the Projects view and invoke "Share On Kenai"
    3. If you are not logged in to Kenai, log in using the Login button
    4. Fill in some project name, project display name, description and choose some license
    5. Uncheck "Commit the source into repository" checkbox
    6. Click Finish
    • EXPECTED RESULT: A project is created on Kenai and the SVN repository is created too for the project, but sources are not yet committed to the repository on Kenai (check it on web). You can see the blue badges in the Projects view and also the font color of some files is indicating the status of the file (green is locally new). You can perform a commit action from the project's context menu ("Subversion>Commit").
  6. Share a project, popup - invalid name
    1. Create a Netbeans project (for example a Java Application) or use some existing project that is not versioned yet
    2. Right-click the project in the Projects view and invoke "Share On Kenai"
    3. If you are not logged in to Kenai, log in using the Login button
    4. Fill in a project name that has already been taken
    5. Fill in a project name that is longer than 20 characters or contains some disallowed elements
    • EXPECTED RESULT: A warning message about the duplicate/wrong project name shows up in the bottom of the wizard, project can not be created.
      Note: The warning about the duplicate name shows up shortly after the "Kenai Project Name" loses focus or after you click finish - this is due to the fact that connection to web is used...
  7. Share a project, popup - already versioned
    1. Right-click the project that you have already shared on Kenai (the first test case of this suite) in the Projects view and invoke "Share On Kenai"
    • EXPECTED RESULT: A warning message "Local Project is Already Shared via Versioning System" shows up in the bottom of the wizard, project can not be created.
  8. Share on Kenai, popup - multiple selection
    1. Select more than one unversioned NetBeans projects
    2. Right-click the selection
    3. invoke Share on Kenai
    • EXPECTED RESULT: If at least one project can be shared, a Share on Kenai dialog should show up, otherwise you should be informed that there are no projects to share. Only the projects that can be versioned show up in the Share on Kenai dialog (in list of projects to share, in the 2nd step)


Test suite: Acquiring Kenai Projects

Purpose: To verify it is possible to open a Kenai project in the Kenai dashboard and to get project's sources from Kenai.
Setup: Start IDE with a fresh userdir and with the command-line switch "-J-Dkenai.com.url=https://testkenai.com"

File:Screenshot open project TS 67 CDevProjects.png? Screenshot - open project dialog

  1. Featured and Recent project
    1. Invoke "Team>Kenai>Open Kenai Project"
    2. Wait until Featured and Recent projects load
    3. Open Kenai dashboard (Ctrl+8) and click "Open Kenai Project" button
    • EXPECTED RESULT: There are projects in both Fetured and Recent tabs. They are cached, so the 2nd opening should be much faster...
  2. Open project - main menu
    1. Invoke "Team>Kenai>Open Kenai Project"
    2. Fill something in the filter (for example "test")
    3. Chose some project from the list of results and click the Open button
    • EXPECTED RESULT: Kenai dashboard shows up, the project you opened is visible in the dashboard. If the project is your project, it should have its display name in the boldface.
  3. Open project - Kenai dashboard
    1. Open the Kenai dashboard (invoke "Window>Kenai")
    2. Click the "Open Project" button in the upper right corner of the dashboard
    3. Fill something in the filter (for example "test")
    4. Chose some project from the list of results and click the Open 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 from Kenai - main menu
    1. Invoke "Team>Kenai>Get Sources From Kenai"
    2. Click the Browse button by the "Kenai Repository" field
    3. Fill something in the filter (for example "test")
    4. Chose some project from the list of results and click the OK button
    5. If the project uses subversion, you can specify the folder to get (optimally, run this test case twice, once for project with Hg, once for project with Svn)
    6. Specify the path for local copy (or leave the default one)
    7. Click "Get From Kenai" 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 from Kenai - Kenai dashboard
    1. Open some Kenai project with a repository (see previous test cases)
    2. Expand the nodes of the project in the Kenai 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 (optimally, run this test case twice, once for project with Hg, once for project with Svn)
    5. Specify the path for local copy (or leave the default one)
    6. Click "Get From Kenai" 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.
  6. Get Sources from Kenai - Kenai dashboard (edge cases - clients not installed)
    1. Try to get some project's sources using the previous steps when Hg/Svn is not installed
    • EXPECTED RESULT: A dialog with instructions should show up.



Test suite: Kenai Dashboard

Purpose: To verify the functionality of the Kenai dashboard.
Setup: Start IDE with a fresh userdir and with the command-line switch "-J-Dkenai.com.url=https://testkenai.com". Open some Kenai project (see previous test cases) and focus the Kenai dashboard ("Windows>Kenai").

File:Screenshot dashboard TS 67 CDevProjects.png? Screenshot - Kenai dashboard

  1. Navigation on the Kenai web pages
    1. Expand a node of some project and all its subnodes
    2. Click the "details" link below the project's display name
    3. Check on links on the Details page that opens
    • EXPECTED RESULT: Every project has "Members", "Issues" and "Sources" nodes and also the Details link mentioned in this test case. The links on the details page must navigate you to a proper page - a web browser is opened when you click them.
  2. Log in from the Kenai dashboard
    1. If you are already logged in, logout using the main menu item "Team>Kenai>Logout"
    2. Click "Login" link in the top of the dashboard
    3. Fill in credentials of some existing user and click Login
    • EXPECTED RESULT: You are logged in, projects that were opened remain opened, all your projects are opened as well and they are displayed in the boldface.
  3. Refresh the whole project list
    1. Click the "Refresh" 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.
  4. Refresh a single project
    1. Right-click the project in the Kenai dashboard
    2. Invoke "Refresh" from the popup menu
    • EXPECTED RESULT: A single project is refreshed, changes made via a web interface should be reflected in the IDE.
  5. Project details from the popup menu
    1. Right-click a project in the Kenai dashboard
    2. Invoke "Details" from the popup menu
    • EXPECTED RESULT: A view with Kenai project details opens. There are 3 tabs: communication, issue tracking and development. Links on the view should work as expected, all 3 tabs should contain related information (communication: mailing list, chat - if logged in, forum; issue tracking: find/report issue button, link to web, type of issuetracker; development: list of reposiroties, get button)
  6. Remove the project from the dashboard
    1. Click the 'X' button by an opened project in the Kenai dashboard
    2. Right-click another opened project in the Kenai dashboard
    3. Invoke "Close" from the popup menu
    4. Repeat the first steps a few times
    5. Restart the IDE
    • EXPECTED RESULT: A project is removed from the list once you click Close. The status of the Kenai dashboard is persistent between the restarts.
  7. "What is Kenai?" link
    1. Logout from the Kenai (Team>Kenai>Logout)
    2. Remove all projects from the Kenai dashboard (follow the previous test case)
    3. When all projects are removed, there is a link "What is Kenai?" - click it
    • EXPECTED RESULT: A web browser opens, a page with Kenai 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