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

January 2010 - Posts

How To Configure Build Services To A Specific TFS 2010 Collection

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

In TFS 2010 we use collections, collections act as different “Servers” that the team can use in order to create separation between different groups of projects.

The build services can service one collection at a time.

In order to change the collection that  the Build Services is servicing do the following:

Step 1: Launch the “Team Foundation Administration Console”

Step 2: Choose the “Team Foundation Build Configuration” menu item

1_console_menue

You can see the collection that is being served at point 1.

Step 3: Stop the build service. (Point 2)

2_configure_build

Sep 4: Click on the build “Properties” option

3_click_properties

Step 5: In the properties window click the “Browse…” button.

4_browse_for_collection

Step 6: To choose the target collection mark it and click the “Connect” button

5_connect_to_a_collection

Step 7: Now that you have all in place start the build service.

Note: Some times it will fail to restart, just retype the Password of the account that runs the build service and try again.

6_Click_Start

At this point you will have the build service up and running, if it is the first time you specify the build services to service this collection you will need top create a controller and an agent.

Step 8: Click the “New Controller”.

7_New_controller

Step 9: Choose a name for the controller and click “OK”.

8_Controller_name

Step 10: Wait until the controller will be ready and add a new Agent

9_add_new_agent

Step 11: Choose a name for the Agent, you can also add tags and set the working folder for the agent, when done click “OK”

10_add_new_agent

Step 12: See that all are in read state in order to start creating builds, you can also add more agents for this controller.

11_done

Now all is done you can go to the collection’s projects and use the build services.

Have Fun!!!

How To Connect To The TFS 2010 With Team Explorer 2008

פורסם בתאריך Jan 19 2010, 09:01 PM על ידי Eran Ruso

Many users don’t like to work with the Visual Studio 2010 because it is still a Beta or just because they are not ready to upgrade there Visual Studio yet but still they like to use the TFS 2010.

Microsoft has release a forward compatibility update that lets Team Explorer 2008 with SP1 connect to the TFS 2010, the compatibility installation file can be downloaded from here.

After you install the compatibility add-in launch the Visual Studio 2008 and follow the steps:

Step 1: Open the Team Explorer by clicking its icon

1_open_TE

Step 2: Click the plus icon

2_Add_server  

Step 3: Click the Servers… button

 

3_Add_servers

Step 4: Click the Add… button

4_add_servers

Step 5: Add the server URL and click OK

5_Adding_URL

You can see in my example that I have connected to the “vs2010beta2” server and to the “defaultcollection” collection.

6_server_url

Step 6: you can see that the server was added, click Close

7_The_server_was_added

Step 7: In this window you can choose one or more of the collection’s projects

9_The_server_was_added_choose_project

You can now start working with the chosen projects.

10_the_project_presented

Have Fun!!!

LESS Is More When It Comes To Software Performance Testing

פורסם בתאריך Jan 17 2010, 09:00 AM על ידי Eran Ruso

Lately I here many people talk about the need for Performance Testing.

It seems that Performance Testing gets a lot of popularity based on the “Need For Speed” of the customers, people today don’t like to wait… 

In this post I will talk about the most common types of Performance Testing.

I will start with LESS Approach, Less is the initials of: Load, Endurance, Stress and Spike.

Load Testing

The test target is to check that the system can handle expected load of users doing different scenarios in the system.

Lets take for example two scenarios in a blog:

  1. User that knows the URL to a specific post so he gets to it immediately. (From RSS for example)
  2. User that gets to the blog’s home page and searches for posts in the blog’s Tag List.

Tags list in my blog:

Topics

Lest continue with the blog’s example and estimate a load of 200 concurrent users during a regular day at the pick hours that 75% are using the first scenario and 25% are doing the second scenario.

First we will need to record the scenarios with there think times and then we will run the performance test with the correct percentage of users using each of the scenarios.

The load we will use will be 20 users and then we will use steps up to 200 users.

Endurance Testing

The test target is to check the reliability of the system.

In this test we like to check that the system can handle an expected load of users doing different scenarios in the system for long periods of time.

If we will take the blog example I will use the 200 users that 75% are using the first scenario and 25% are doing the second scenario for a period of 48 hours, I will check that the system still gives me the same performance after this period of time.

Stress Testing

The test target is to find the upper limit that the system can handle.

What I like to know now is with how many users or requests the system will stop giving me reasonable performance.

One of the most common mistakes is to try to make the system fail,  long before the system fails you will get unacceptable performance, for example what use can you do with a system that shows you a web page after 2 minutes?

Again with the blog example, I will use the same scenarios, this time with no think times in order to create a grater load on the system, I will start with 200 users which I already know that works and add steps of 20 users each time until I will get responses grater than 10 seconds.

Spike Testing

The test target is to check that the system can handle spikes of users and can gracefully handle a sudden load in the system.

One last time the blog example, I will use again the same scenarios, I will start with the load of 200 users and after a few minutes I will suddenly add 50 users for a short time and reduce it back to 200 users, I will repeat the procedure a few more times.

Summary

There are more types of Performance Tests but these four types can give you a good perspective over the system under test and can be a good start for decision making.

In order to succeed in your performance testing effort the use of LESS approach should be done after planning your performance testing effort, more on Planning Performance Testing in different post.

Have Fun!!!

TFS 2010 Work Items Basic User Guide – Create New Work Items Out Of An Existing Work Items

פורסם בתאריך Jan 11 2010, 09:00 AM על ידי Eran Ruso

This post is the Fifth post out of Five that builds the TFS 2010 Work Items Basic Guide. See the first post: “TFS 2010 Work Items Basic User Guide – Introduction”

I have already published regarding the creation of new Work Items: “TFS 2010 Work Items Basic User Guide – Create New Work Items”, about the Work Item Links: “TFS 2010 Work Items Basic User Guide – Work Item Link Types” and about creating and using queries: “TFS 2010 Work Items Basic User Guide – Create And Use Queries”

On this post I will talk about creating Work Items out of existing work items.

Creating Work Items out of existing Work Items can be done in two ways:

  1. Create a copy of the existing Work Item
  2. Create a related Work Item to the Existing Work Item

1_icons

To create a copy do the following:

Step 1: Open the existing Work Item and Click on the “Copy Work Item”  button.

In the screenshot you can see the existing Work Item.

4_The_origin

Step 2: Choose the target Team Project and the Work Item Type.

You can choose any Work Item Type you like, I have chosen the same type “Requirement”.

2_Choose_type

What you will now have is a copy of the source Work Item, in case you will choose to create a different Work Item Type from the source Work Item Type only the sheared fields will be filled.

In the Links tab of the new Work Item you will see a link to the source Work Item.

When saving your new Work Item you will get cross links, there will be a link from the source Work Item to the new Work Item and vice versa.

5_the_copy

Many times you will need to create Work Items that are similar, using the copy Work Item option saves a lot of Copy/Pastes and time.

To create a related Work Item do the following:

Step 1: Open the existing Work Item and Click on the “New Linked Work Item…”  button.

Step 2: Choose the type of the link the Work Item Type type the Work Item title and click the OK button.

6_The_links_window

A new work item is now created that will be linked to the Existing Work Item, the link type is the one you have chosen in step 2.

7_the_linked_item

All you got left to do is “Save” the new Work Item.

That was the last post in the “TFS 2010 Work Items Basic User Guide”, it is not an easy work writing it so I will really appreciate your comments (Good or Bad) on it.

 

Have Fun!!!

Creating A Coded UI Test From A Manual Recording In TFS 2010

פורסם בתאריך Jan 07 2010, 07:21 AM על ידי Eran Ruso

The question that I am being asked a lot is: “In my Plan Settings I am recording the test steps of my manual tests, what can I do with the Coded UI recording that is created?”

The answer to this question is simple, you can easily create Coded UI tests and change them to suit your automation test effort based on these recordings.

How to create a Coded UI test out of an existing recording?

Step 1: Create or open a Test Project

Step 2: Add a new Coded UI Test

1_add_new_coded_ui_test

Step 3: In the window that Pops Up choose: “Use an existing action recording” radio button and click OK.

2_existing_action_recording

Step 4: Find the Test Case that contains the Coded UI Recording in the window that pops up and click OK.

3_find_Test_Case

Finally you will get a code for Coded UI based on the Recording, now all you have to do is modify the code to suit your needs.

Note: The files in the screenshot are the files that will be generated.

Result

Have Fun!!!

TFS 2010 Work Items Basic User Guide – Create And Use Queries

פורסם בתאריך Jan 07 2010, 06:41 AM על ידי Eran Ruso

This post is the Forth post out of Five that builds the TFS 2010 Work Items Basic Guide. See the first post: “TFS 2010 Work Items Basic User Guide – Introduction”

I have already published posts regarding the creation of new Work Items: “TFS 2010 Work Items Basic User Guide – Create New Work Items” and about the Work Item Links: “TFS 2010 Work Items Basic User Guide – Work Item Link Types”

On this post I will talk about Queries.

In order to see the Work Items you have entered to the Team System you will need to create a "Search", the way you search the Team System is by Queries.

Queries contains filters, you can put filters on each of the Work Item fields.

There Are two groups of queries:

  • Team Queries – These queries are available to the entire group and are created and modified by the Project Administrator.
  • My Queries – These are personal queries that will be available to me only and are created and modified by the user.

types 

In order to create a query do the following:

Step 1: Right Click the "Work Item" folder in the Team Explorer and choose "New Query"

New_Query_Step_1

There are 3 types of queries:

  1. Flat List (Default) – A query that is based on Work Items only without any filter on the linked Work Items. (First Level Only)
  2. Work Items and Direct Links – A query that is based on all the filters of the Flat List, Filters on the Linked Work Item Type and Filters on the Link Types.
  3. Tree of Work Items – A query that is based on all the filters of the Flat List and on the Linked Work Item Type where the link type are Parent/Chilled.

Query_Types_Step_1

For the “Flat List” there are two sections in the Query editor window:

  1. Filters Section – Where you can add filters to your query, filters can be added to every field exist in you work item type.
  2. Results Section – Where you will see the results of the query you build.

Flat_List_Sections

For the “Work Items and Direct Link” there are four sections in the Query editor window:

  1. Filters On Work Items Section – Where you can add filters to your query, filters can be added to every field exist in you work item type.
  2. Filters On Work Item Types (Linked) – Where you can add filters on the linked work items by there Work Item Type.
  3. Filters On Link Types – Where you can add filters by the link type.
  4. Results Section – Where you will see the results of the query you build.

Work_Items_and_Direct_Link

For the “Tree of Work Items” there are three sections in the Query editor window:

  1. Filters On Work Items Section – Where you can add filters to your query, filters can be added to every field exist in you work item type.
  2. Filters On Work Item Types (Linked) – Where you can add filters on the linked work items by there Work Item Type.
  3. Results Section – Where you will see the results of the query you build.

Note: The link type that will be shown is of type Parent/Chilled

Tree_of_Work_Items 

Step 2: Choose the Query type you like to build.

Step 3A: No matter what type of query you choose to build you will need to start by adding filters to the query, in case you like to see all the Work Items that are in the system don't add any filters just run the query with the default Team Project filter.

For this example I have added the "Assigned To" filter, I have set it to be "@Me".

Note: The default filter just set the Team Project contexts of the query, @Project means the project I am in now and @Me for the Assigned To field means assigned to my user name.

Choosing_filter_step_1

Choose_filter_value_step_2 

If you use the “Flat List” go to step 4

Step 3B: If you use the “Work Items and Direct Link” or the “Tree of Work Items” you will now need to add filters for the linked work item types, just add Work Item Types to the “Filters On Work Item Types (Linked)” section.

In my example I have added “Test Case” as filter, you can add as many as you need.

Adding_Test_Case_Filter

If you use the “Tree of Work Items” go to step 4

Step 3C: If you use the “Work Items and Direct Link” you will now need to add filters for the link types, to do that you will choose the “Top level work items” radio button and use the check boxes of the “Types of links:” to control the returned linked items.

In my example I have chosen “Tested By” as filter, you can choose more than 1.

Links_types

Step 4: When you have finished setting the filters run the query to see if you get the results you need, click the "Run" button from the menu.

Run_button

results

You get a list of work items that answers the filters you have just set, see that the linked work items that where returned are from type “Test Case” and the link type is “Tested By”.

Step 5: By default you get the “Link Type”, “Work Item Type”, “Title”, “Assigned To” and “State” columns in the results window, in order to change that just click “Columns Options” button and choose the columns that you like to see and there order.

choose_columns 

Step 5: From the left hand side choose each of the fields you like to see in the results window and pass them to the right hand side of the window, you can also choose their locations by using the arrow buttons located next to the left hand side of the window and you can also control their default width by changing the value in the text box under the arrow buttons.

Add_Priority

I have chosen to see the “Priority" in this example the result is the "Priority" column.

Priority_in_the_results

Step 6: When ready save the query by clicking the "Save Query" button.

Save_Button

The save window gives 2 save options:

  1. Server – You can save to the “Team Queries” or to the “My Queries” you choose that by clicking the 3 dots and choose the folder from the window that pops up.
  2. File – When you will like to pass a query to other team members you can use this option to export a query.

Save_options_1

choose_folder_to_save 

Now that you have a saved query you can do three things:

  1. Run the query – Double click the query.
  2. Delete the query – Right click the query and choose "Delete".
  3. Edit the query Follow these steps:

Step 1: Right click the query and choose "Edit Query".

Edit_Query_1

Step 2: Make changes

Step 3: Save changes

Save_Button

As you can see, managing queries is very simple and intuitive.

Now that you know how to create and manage queries you can get to the information stored in the TFS in an easy and comfortable way.

Next Guide Part: "TFS 2010 Work Items Basic User Guide – Create New Work Items Out Of An Existing Work Items"

Have Fun!!!