DCSIMG
April 2010 - Posts - Eran Ruso
Sign in | Join | Help

April 2010 - Posts

How To Do A Software Design Description (SDD) With Architecture Tools In Visual Studio 2010

פורסם בתאריך Apr 25 2010, 11:18 AM על ידי Eran Ruso

When I work with customers on there Application Lifecycle Management (ALM) especially on the Development Process we always come to the question: “What about the SDD?”

I must admit that the answer I had was: “Keep write word documents” I don’t need to tell you what was there response to that.

Now with the Visual Studio 2010 Architecture Tools (Come with the Visual Studio 2010 Ultimate Edition) my answer changes to: “You can do it as part of your solution”

The Architecture Tools supports the Unified Modeling Language (UML) Diagrams, you can create your diagrams in a Modeling project that is managed in your solution.

I have posted about the “How To Investigate Existing Code Using The Visual Studio 2010 Architect Tools”.

On This post I will show some of the abilities we get with the Visual Studio 2010 Architecture Tools when creating your Software Design Description (SDD)

This post is a little long, I have entered the abilities of the Architecture Tools and a little explanation on each of the diagrams.

Start with creating a new “Modeling Project” added to your solution.

 

Step_1_create_modeling_project

Now add the Diagram you like to the new added “Modeling Project”

Diagrams_Manu

 Layer Diagram:

  1. Gives the ability to define the different layers in the Application’s Architecture
  2. Gives the ability to validate the code against the layers

LayerDiagram

 Use Case Diagram:

Shows the functionality provided by a system in terms of actors, their goals represented as use cases, and any dependencies among those use cases.

Use_Case_Diagram 

Class Diagram:

The class diagrams describes the structure of a system by showing the system's classes, their attributes, and the relationships among the classes.

Class_Diagram

 Sequence Diagram:

  1. Shows how objects communicate with each other in terms of a sequence of messages
  2. Also indicates the lifespan of objects relative to those messages

Siquence_diagram

Activity Diagram:

Represents the business and operational step-by-step workflows of components in a system. An activity diagram shows the overall flow of control.

Activity_Diagram 

Component Diagram:

Depicts how a software system is split up into components and shows the dependencies among these components.

Component_Diagram

So you can see that you can manage the SDD using the Architecture Tools, the bigger advantage is that it evolves with the code, each version has its own SDD.

Have Fun!!!

No More TeamPrise From Now On Team Explorer Everywhere

פורסם בתאריך Apr 21 2010, 10:31 PM על ידי Eran Ruso

Microsoft announced that they have bought TeamPrise in the last quarter of 2009, you can read about it in one of the posts I have published:

http://blogs.microsoft.co.il/blogs/eranruso/archive/2009/12/03/microsoft-has-purchased-teamprise-division-of-sourcegear.aspx

The good news are that now we have a new Microsoft tool that is based on the good old TeamPrise, it is called “Team Explorer Everywhere”, it contains the Eclips plug-in and cross-platform command-line client for Visual Studio 2010 Team Foundation Server.

You can read more in Martin Woodward post about it and regarding the upgrades from TeamPrise to Team Explorer Everywhere.

Have Fun!!!

Visual Studio 2010 Coded UI Test User Guide - Get A Coded UI Test Created In Manual Test Using The MTM Tool

פורסם בתאריך Apr 20 2010, 12:13 AM על ידי Eran Ruso

This post is the Third post out of Four that builds the Visual Studio 2010 Coded UI Test User Guide. See the first post: “Visual Studio 2010 Coded UI Test User Guide - Introduction” and the second post: “Visual Studio 2010 Coded UI Test User Guide - Create A Simple Coded UI Test”

On this post I will show how to create a Coded UI Test based on prerecorded Coded UI Test.

In the Microsoft Test Management (MTM) tool you run Test Plans with the Test Runner, In case that the “Action Log and Action Recording” collector is turned on the Test Runner will create a Coded UI Test in the background while running the Manual Test.

The recorded Coded UI Test is very simple and basic test that will not answer the Automation Test Effort requirements but its a start.

The Tester that is assigned on creating the Automated Tests can have a very good starting point using these prerecorded tests.

The way to do it is based on one of the posts I have already published that covers this section: “Creating A Coded UI Test From A Manual Recording In TFS 2010”

Next Guide Part: "Visual Studio 2010 Coded UI Test User Guide - Add Validation To Your Coded UI Tests"

Have Fun!!!

TFS 2010 Work Items Visualization Tool

פורסם בתאריך Apr 18 2010, 10:50 AM על ידי Eran Ruso

There is a new tool based on DGML technology that visualize Work Items and there links.

The tool is very simple to use, yet very powerful.

Its a simple EXE file that launches a WPF application.

Follow these step to use it:

Step 1: Choose the collection to use and click Connect

Step 2: Select the Team Project and click Select

Step_1_set_Team_Project

Step 3: Choose a Query

Step 4: Choose the Work Items to Analyze

Step_2__Select_query_and_items

Step 5: Choose the Link Types you like to Analyze

Step 6: Choose the type of Analysis you like to have

Step_3__select_types_and_type_of_analysis

Step 7: Click Work Items button to start the Analysis

 Step_5_click_button

You can see the result graph, it contains the Work Items and there links including the Changesets and there files.

 Step_6_another_diagram

 Step_6_the_diagram

You can find the application in the codeplex site: http://visualization.codeplex.com/

Have Fun!!!

TFS 2010 Lab Management – Creating a Virtual Environment

פורסם בתאריך Apr 13 2010, 02:44 PM על ידי Eran Ruso

The Lab Management that was presented with the Microsoft Test and Lab Management (MTLM) is an amazing ability.

With the lab management you can create virtual environments made of one computer or more in minutes.

The ability of managing virtual environments as a lot of advantages when it comes to development and testing, you can now have your private Test Environment or Dev environment, you can save a state of each of the computers when ever you like to, you save space and hardware of physical computers etc.

In this post I like to show how you can create a new virtual environment out of two existing virtual machines that are already deployed on the Host (Saves Time):

Step 1: Launch the MTLM

Step 2: Choose Lab Center in the main dropdown menu

Step 3: Open the “New” Dropdown menu

Step_1_New_env_Out_of_deployed

You will now have 3 options:

  1. New physical environment
  2. New virtual environment
  3. Compose virtual environment (Was added in the Release Candidate)

Step 4: Choose “Compose virtual environment” in order to create environment out of already deployed virtual machines (On the host Hyper-V)

Step_2_Compose

Step 5: Type a Name and make sure that “All Hosts” is selected (Default host group)

Step_3_Name_it

Step 6: In the Machines tab choose the virtual machines and add them to the Environment.

 Step_4__Add_Machines

Step 7: For each of the virtual machines choose the role of the virtual environment.

 Step_5_choose_rule

At this stage you have an almost ready to use Environment.

 Step_6__Finish_Choose_rules

Step 8: Choose Machine Properties Tab

Here you can’t change anything because as I already said the virtual machines are already deployed on the host.

 Step_7_Next

Step 9: Choose the Capabilities tab

Step 10: Choose both checkboxes

Note: In the deployed virtual computers I have installed Build agent and Test agent so I will be able to run tests and builds workflow on these machines.

 Step_8_Choose_abilities

Step 11: Go to the Summary tab and Click Finish

 Step_9_Finish

You can see that the environment is running and that the Lab Management is trying to connect to the installed agents on the virtual machines.

 Step_10_running

All now is ready for use…

 Step_11_ready_to_go

On my future posts I will also show how to set environments from templates and more of the Lab Management capabilities.

Have Fun!!!

TFS 2010, Visual Studio 2010 and .NET 4.0 Released

פורסם בתאריך Apr 12 2010, 10:12 PM על ידי Eran Ruso

Finally it is here!!!

We have waited so long for it, we have tried the different CTPs and the Beta 1, we have used the Beta 2 and the Release Candidate and now we have the “real thing” the Release To Market version (RTM)

Martin Hinshelwood has written a grate post that will help to upgrade TFS to the TFS 2010 RTM, you can read more here.

Regarding the Visual Studio upgrade you can read here.

Have Fun!!!

How To Set TFS Work Item Field Size

פורסם בתאריך Apr 06 2010, 10:40 AM על ידי Eran Ruso

The way to set the field size is very simple, all you have to do is set the MinimumSize attribute of the field to the desired Width and Height.

MinimumSize=(Width,Height)

For Example: MinimumSize=(200,150)

In case you work with the Process Editor you will need to use the attributes field to add that attribute.

field_size

If the size that was chosen does not fit the screen a scroll bar will be shown.

Have Fun