官术网_书友最值得收藏!

JUnit project example

The JUnit example project is based on a realistic software development project whose goal is to deliver JUnit Version 4.4. The JUnit Project team uses Rational Team Concert to plan, track, collaborate, and deliver the release. The project is set up in such a way that the Team Artifacts view gives you a feeling that the project is already started with many releases, builds, and work items.

Working with Sandbox

Rational Team Concert lets you play with and explore the complete product from a hosted installation called Sandbox. This is a very convenient way for many who want to explore Rational Team Concert without worrying about installing and configuring.

Access the Sandbox at https://jazz.net/sandbox and login with your jazz.net credentials. You can get to Sandbox through any standard web browser and then use it to create your own project and start working. A single project area can be created per Sandbox per user. Once you have the jazz.net user credentials, it just takes few minutes to set up a project; or you could explore one of the two provided read-only examples—Junit and Call Center.

Note

The Sandbox is for evaluation and testing only and is not to be used for production data. The data is not backed up and will be periodically scrubbed. We will however do our best to keep the Sandbox running as we understand that many of you are using it to give demos and run evaluations—jazz.net.

When working with the Sandbox, you do not have to install any extra software on your machines. If you wish to play with either the Eclipse or Visual Studio clients, you could download them separately and connect to the Rational Team Server on the Web.

Tip

Connecting to Sandbox from the client:

Once you download the client, you can connect to Rational Team Concert's Sandbox with the repository URL https://jazz.net/Sandbox/rtc. Use your jazz.net credentials for the Sandbox connections.

Working with Sandbox

After creating a project area, you can send project invitations to any registered Jazz user and play with different roles. You can also explore several Rational Team Concert features right from the Sandbox account, as follows:

  1. You can create and customize the dashboards. Here you can add several viewlets to help you better understand the project and your role.
  2. Project areas show you a list of the projects. In Sandbox, you can see your own project and other projects from Jazz registrants.
  3. Once you define the project area, you can create work items and create queries on the work items.
  4. You can explore the project's release, sprint, and backlog plans and see the plan progress.
  5. Explore the source code, repository workspaces, and modules from the Source Control section of the Sandbox.
  6. Build Definitions, Build Engines, and Build Queue can be explored from the Builds section.

Walking through a working example is a great way to learn Rational Team Concert. The JUnit Project gives us an opportunity to effortlessly set up the project and explore the features. In this section, you will set up the project and explore a bit of client and Sandbox application. The idea is to get familiar with the Rational Team Concert client's features on the project area, views, and perspectives and know how to administer the project with Rational Team Concert's web application.

Note

If you are using Rational Team Concert on Tomcat, it is very easy to import the JUnit Project and start exploring the project artifacts. Refer to Appendix B, Installing the Express-C Edition with the Tomcat Server, to get complete step-by-step instructions on how to do the import.

When using the Eclipse client for the first time, we need to connect to the Server Repository and the wizard asks for details, such as the Jazz Repository Connection URL, username, and password. Connect to https://jazz.net/Sandbox/rtc for the Sandbox experience as shown next:

Working with Sandbox

The next page displays a set of example projects from the Jazz Sandbox.

Select the example project as JUnit Project and click Finish. The JUnit Project is imported into the client and you can now explore the Team Artifacts, Team Organization, Process Templates, and other views.

Switching from the work items perspective to Jazz Administration perspective lets you do a variety of admin tasks such as:

  • Create a project areas
  • Administer the project users
  • Invite project team members
  • Deploy the process templates to repository

In the following section, we will be introduced to work items and Jazz Administration perspectives and their respective views. This will give us a brief overview of the Rational Team Concert's perspectives and views.

Work items perspective

If you are a team member, you can open the "work items" perspective and start exploring the views. From here you have a complete overview of your current tasks, project events, and the project build health. This is, in fact, the most used perspective for a team member.

Work items perspective includes several views such as Team Artifacts, My Work, and Team Central views that help you as a team member.

Team Artifacts view

Rational Team Concert installs the necessary code, templates, team members, and roles and gives you an out-of-the-box project. The Team Artifacts view contains a very important collection of project items.

Team Artifacts view

Repository Connections gives you a list of currently connected repositories. You can get server information such as Server name, edition, build ID, and license type. Other information such as username, password, and URL for the team server is available. Client access license is also mentioned in the Repository Connections. In general, this section gives you an overview of the server connection, client license, and login credentials.

The Project Section contains the defined Builds, Plans, Source Control, and Work items related to that specific project. You can request new builds, view the old builds, define the build definitions, and build engines. Sprint and release planning is an integral part of the Team Artifacts. You can get a complete picture of the open and completed tasks.

The Source Control section in Team Artifacts has all components of the project and the association of the components to several streams.

Note

A stream is a repository object that includes one or more components. Streams are typically used to integrate the work done in workspaces. Team members deliver their own changes to the stream and accept other team members' changes from the stream into their repository workspaces.

In any traditional project considerable time is spent in work planning and issue management by team leads and team members. It could be bugs, enhancements, or new features, but without an integrated solution with the development environment, you spend time on referring the disconnected systems of the development environment and issue/bug management tools. You can take advantage of the pre-defined work item queries and use the shared queries from your project team. Depending on the process template you use, Rational Team Concert knows a variety of work item types such as bugs, enhancements, tasks, and user stories.

Note

A work item is a way of keeping track of the tasks and issues that your team needs to address during the development cycle. The status and number of work items are indicators of the health of your project.

The next thing we want to do is to create the Repository Workspace and import the code into the Rational Team Concert client. Go to JUnit Project | Project Area | Source Control | JUnit, right click and select New | Repository Workspace.

Tip

We can also create the Repository Workspace from the My Repository Workspace within the Team Artifacts. All the Repository Workspaces that you create will appear in the "My Repository Workspaces".

Enter the name you desire and description of the project in the dialog and click Next.

Team Artifacts view

Select the workspace visibility depending on your project needs and click Next.

Team Artifacts view

In the next step, select the available components of the project that interests you (as shown next). By default, the Load repository workspace after creation is checked. This means once the Repository Workspace is added, the code for the respective components will also be loaded. In this case, you can see the imported code in the project explorer of Rational Team Concert's client.

Team Artifacts view

Once the Workspace Repository is created, various components are loaded. There are different options to load the Repository Workspace; for now select the Find and load Eclipse projects to add the projects to the client, as seen next.

The "load" action invokes a wizard that gives you a choice to select how to load the projects. The root component has three Eclipse projects that we can load by selecting Find and load Eclipse projects from the wizard.

Team Artifacts view

In the next page, select the projects that you want to import. Optionally select the directory location of the source code to be imported, as shown next:

Team Artifacts view

You can browse the source code from package explorer of Rational Team Concert's client, as in the following screenshot:

Team Artifacts view

Now we can explore the JUnit Project plans. From the team artifacts view, go to various Sprint and Release plans. Sprint backlog shows a list of all tasks for each team member, along with each task's status (open versus completed). A Release backlog shows all the sprints for that release and a high-level view of the task status:

Team Artifacts view

Team Collaboration being perhaps the most important feature of Rational Team Concert, the client provides a way to see and subscribe to the news feeds that let you know everything happening in your project. The news feeds gives you a good platform to understand who is doing what, on a regular basis. All the information regarding the team changes, builds, and plans are tracked and stored for future reference. These feeds can be added to your favorites, and you use the URL of the feed to publish and follow from other websites.

My Work view

The My Work view is the most commonly used view for a team member. This view shows work items that are assigned to you in several categories. Inbox section has the work items that are recently assigned to you. These work items must be processed to keep them either in the Current Work or Future Work section. The Current Work section contains work items that belong to current iteration. These items must be arranged and planned in the order of completion. Future Work section includes all open, closed, and unplanned work items for the future iterations, as shown next:

My Work view

Team Central view

The Team Central view includes multiple sections that help you as a team member to have a transparency over the project development. This view has news feeds, build updates, open items in graphical representation, new unassigned work items, and team load. You get a real time view of the project load on various team members as seen in the following screenshot:

Team Central view

Jazz Administration perspective

The Jazz Administration perspective provides several views and editors to assist the project administrator. As an administrator, you can use these views to manage users, process templates, and to manage the team artifacts. Jazz Administration perspective includes process template, team organization, and team artifacts view. Team artifacts view caters the same functionality described in the work item's perspective.

Process Template view

You normally attach a process template when a project area is created. Process template is a guide and compass for the process followed in the project. Rational Team Concert provides set of templates for common processes such as Scrum, OpenUP, Cloudburst, and SimpleTeam process. Process Template view contains set of templates deployed in that Jazz repository as shown next:

Process Template view

Team Organization view

Rational Team Concert integrates the team into the project and development environment. The Eclipse client enables you to view and manage the users for a project. Along with assigning the users, you can also assign the roles for each user in that project. Remember that each user can have one or more project roles, such as team member, stakeholder, Scrum master, and product owner. The project roles very much depend on the process template that we choose. In our case, these roles result from the Scrum template.

Team Organization view

Ideally, you can add another team member for development team and assign role. From the Team Organization view, select the Team Area and open it. In the Team Area editor, you can add a team member and assign appropriate roles. However, because this JUnit Project is a read-only demo, we cannot save any newly added members to the repository. The following screenshot shows the members' feature:

Team Organization view

When you add a new user, Rational Team Concert will automatically ask whether or not you'd like to send a project invitation. This contains all the information the user needs to join the project and start working, including the team repository name, the user ID, and the project area name, as shown next:

Team Organization view

JUnit Project on the Web Interface

Many features available on the client are also available on the Web Interface for team server. A team member, stakeholder, or manager can log into the online application and get an overview of the project. In fact, the complete project management can be done from the online application too. Information on the dashboards, project areas, work items, plans, source control, and builds can be obtained from the online team server application.

The online application dashboards are the most useful ones to get a quick overview of the project. The dashboard has a customizable interface and user can add, delete, or modify the existing views. The following is a screenshot of the dashboard for the JUnit Project:

JUnit Project on the Web Interface

In general, the dashboard gives an overview of all the plans, tasks that have been recently opened or closed, and any blocking items. The project manager can connect to the team server and get the project status at the click of a button. Along with the work items, you will also see the Sprint and Release backlog and the percentage of the work completion. As a manager, you could get a real time graphs for the burn-down, actual work versus estimated tasks, and many others.

Team Advisor

Every operation in Rational Team Concert enforces a set of pre-conditions and post-conditions. When an operation needs to be executed and pre-conditions are not met, the error and reasons are communicated to the user with the help of the Team Advisor view. This view shows the list of all the operations that violated the pre-conditions and the reasons. Team Advisor increases the confidence of the team members as it describes the reasons why an operation did not work.

As an example, open the JUnit Team Area and add a user as a project member. Rational Team Concert provides a convenient way to add users to the Team Area by providing a lots of registered users with the Jazz Team Repository; an administrator can select the users and add to the project. As soon as the user is successfully added to the Team Area, the administrator can send the team an invitation e-mail:

Team Advisor

Remember that the JUnit Project is a read-only project from the Jazz Sandbox and any modifications are not permitted. In our case, the Team Advisor shows that the save operation could not be completed as the user does not have sufficient privileges. As you can see from the view, the Team Advisor shows you the complete description of violation and how it must be rectified.

Team Advisor

The JUnit Project gives a starting platform to explore several features of both Rational Team Concert's client and server. In this section, you have imported the JUnit example project, explored the team artifacts with work items, builds, plans, source code, and other components of the project.

You have seen how easy it is to connect to a repository, add a new team member to the project, create the Repository Workspace, and start working on the project right away. Finally, you explored the JUnit Project on Rational Team Concert web application. This project is intended to give you familiarity with several Eclipse clients' views and other functional areas.

主站蜘蛛池模板: 饶平县| 上栗县| 榆中县| 淮阳县| 仙游县| 中阳县| 罗城| 临颍县| 辽阳县| 思茅市| 汽车| 茶陵县| 汉沽区| 钦州市| 镇宁| 上蔡县| 夹江县| 潞城市| 合山市| 乌审旗| 常州市| 营山县| 盐池县| 海宁市| 博爱县| 若尔盖县| 宿州市| 将乐县| 靖江市| 巨野县| 武威市| 隆化县| 敖汉旗| 五原县| 藁城市| 怀远县| 右玉县| 肥城市| 积石山| 阿克陶县| 锦屏县|