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

June 2010 - Posts

TFS 2010 Coded UI Test Basic User Guide Is Published

פורסם בתאריך Jun 29 2010, 10:16 AM על ידי Eran Ruso

I am glad to announce that the TFS 2010 Coded UI Test Basic User Guide Is finally done and available to download.

I have worked hard to create this guide and I will be glad to hear what you think of it.

It is available to download from the TFS Guides site.

I will also like to know what other user guides you need.

Have Fun!!!

Microsoft Released a Patch For Cut/Copy “Insufficient Memory” Issue In Visual Studio 2010

פורסם בתאריך Jun 28 2010, 05:15 PM על ידי Eran Ruso

There is an issue with VS 2010 that shows an incorrect message:

"Insufficient available memory to meet the expected demands of an operation at this time, possibly due to virtual address space fragmentation. Please try again later."

When you try to Cut or Copy code.

If you run with this issue there is a release of a patch that can be downloaded in the following link:

https://connect.microsoft.com/VisualStudio/Downloads/DownloadDetails.aspx?DownloadID=29729

All you need to do is download and install it.

Note: In case of a real memory problem this patch will do nothing, it will only solve the problem of false memory errors.

Have Fun!!!

WCF Unit and Performance Testing With Visual Studio 2010 Help Tool

פורסם בתאריך Jun 23 2010, 03:51 PM על ידי Eran Ruso

Good news for WCF developers and testers, the tool that was released for Visual Studio 2008 that is generating automatic unit tests for WCF is now available for Visual Studio 2010.

I can tell you that it made my life easier using it in Visual Studio 2008 and I believe that it will with the Visual Studio 2010 too…

You can download it from codeplex: http://wcfloadtest.codeplex.com/

Main Functionality List:

  • Replay of captured scenario in a unit test that can be included in a load test.
  • Support for the DataContractSerializer.
  • Support for message contracts.
  • ASMX support (beta)
  • Support for proxies generated using svcutil.
  • Support for clients that create proxies at run time from contract interfaces.
  • Supports calls to multiple services in a single scenario.
  • Supports multiple calls to the same service operation.
  • Filtering by SOAP action of which messages in the trace to replay.
  • Readable and modifiable code is generated.
  • Automatic association of trace message with proxy method (requires all operations to have a unique SOAP action).
  • Support for client and server side traces.
  • A command line tool for processing traces and generating code.
  • Visual Studio 2005/2008/2010 integration
  • Have Fun!!!

    Restoring TFS 2010 – My Personal Impression

    פורסם בתאריך Jun 17 2010, 04:50 PM על ידי Eran Ruso

    Today is the first time I am restoring TFS 2010.

    I have restored plenty of TFS 2005 and TFS 2008 and I am exiting, can’t wait to start the process.

    First thing I am doing is finding good instructions for the process.

    I have restored the Databases from the Backup machine to a folder on the TFS machine.

    I am about to restore the data to a machine with the same name, very simple installation all in a single machine.

    The process I am following is:
    http://msdn.microsoft.com/en-us/library/ms252458.aspx

    I am logged in to the server with tfssetup that is a local administrator and with it I have installed both machines (the old and the new servers)

    I have taken it step by step and I must say that I had a very nice and easy experience with this restore.

    I have only one comment regarding the steps in the document: the command that stops the TFS services doesn’t stop all the services and you need to go to the IIS and stop the sites and the other pools yourself.

    Other than this one comment all went very well.

    Have Fun!!!

    Visual studio Power Tools Pro

    פורסם בתאריך Jun 15 2010, 02:39 PM על ידי Eran Ruso

    The Power Tools is an easy way to deliver additional functionality easily.

    Microsoft has now released Power Tools for Visual Studio users that makes life easy.

    A set of extensions to Visual Studio Professional (and above) which improves developer productivity.

    You can download it here and the best part is that its free.

    What are we going to see there? (Take from the Product Description)

    • Tab Well UI
      • Scrollable tabs
        Maintain spatial consistency of the documents that are included in the document well.
      • Vertical tabs
        Document tabs are shown vertically, allowing you to fit more tabs than are normally visible when shown horizontally.
      • Pinned tabs
        Allows you to pin tabs to keep them always visible and available.
      • Show close button in tab well
        Similar to Visual Studio 2008, will show a close button in the document well that will close the active tab.
    • Tab Behavior
      • Remove tabs by usage order (LRU)
        When a new tab is inserted and existing tabs don't fit in the document well, instead of removing the tab at the end of the well it will remove the least recently used tab. This ensures that frequently used tabs are readily available.
      • Show pinned tabs in a separate row/column
        Pinning tabs can quickly cause you to run out of space for regular tabs. The option allows you to always show pinned tabs in a separate row (or column, if displayed vertically) from regular tabs.
    • Sorting
      • Sort tabs by project
        Tabs will be sorted by the project they belong to, thus keeping them always together in the document tab well.
      • Sort tabs alphabetically
        Tabs will be sorted alphabetically. When Sort By Project is turned on, tabs will be sorted first by project and then alphabetically.
      • Sort tab well dropdown alphabetically
        The drop down menu at the right end of the document well is sorted alphabetically. This option allows ordering as the tabs are laid out in the document well.
    • Tab UI
      • Color tabs according to their project or according to regular expressions
        This option permits tabs to be colored according to the project they belong to. This is particularly useful when sorting tabs by project, as it allows you to immediately identify different groups of project documents.
        You can also configure regular expressions and assign a color to each one. If the name of a tab matches the configured regular expression, it will be colored with the assigned color.
      • Miscellaneous options that modify tab UI
        • Show document/toolwindow icon in tab
        • Show close button in tab
        • Modify dirty indicator style
          This option allows you to select from a set of different dirty indicators that you might prefer over the asterisk.
        • Modify minimum and maximum tab size
          Allows you to modify minimum and maximum tab size. Try setting minimum and maximum sizes to the same value, and you will have evenly spaced tabs.
    • Searchable Add Reference Dialog
      The new Add Reference dialog makes it faster and easier for you to find the reference that you are looking for and add it to your VB, C# or F# project.  From the Solution Explorer, simply right click on the References node, select the Add Reference command to see the updated Add Reference Dialog. 
    • Highlight Current Line
      As the resolution of monitors increases, it’s becoming more difficult to find the caret in the code editor.  The highlight current line extension makes it easy to find the caret by highlighting the line that the caret is on in the editor.  You can even configure the default color by changing the setting for “Current Line (Extension)” and “Current Line Inactive (Extension)” in Tools Options Fonts & Colors. 
    • HTML Copy
      This extension provides support for the HTML Clipboard format when copying code from the editor.  This means that you’ll no longer have to go fix up the formatting of your code when you paste it into a TFS bug form or any other HTML based control. 
    • Triple Click
      It’s never been easier to select a line of code from the mouse by simple triple-clicking anywhere on the line. 
    • Fix Mixed Tabs
      Some developers prefer tabs, others prefer spaces, and nobody likes mixing tabs & spaces.  This extension promotes developer harmony by warning as they are open or save a file that has a mixture of tabs & spaces.  The information bar also provides an easy way to fix the file to suit your preference. 
    • Ctrl + Click Go To Definition
      This extension gives the editor a web browser by adding clickable hyperlinks to symbols in your code as you hold down the Ctrl key.
    • Align Assignments
      This extension is useful for making your code a little more readable by aligning the assignments when you type Ctrl+Alt+] such that it takes this:

      And turns it into this:

      Please note: This may conflict with your formatting settings. E.g. in C# you will need to disable: Tools->Options->Text Editor->C#->Formatting->Spacing->"Ignore spaces in declaration statements"
    • Colorized Parameter Help
      This extension improves consistency with the editor by applying syntax highlighting to the contents of the Parameter Help window for C# &VB. 
    • Move Line Up/Down Commands
      This extension maps the Alt+Up Arrow & Alt+Down Arrow keys such that they will move the current line of code or the selected lines up and down through the editor. 
    • Column Guides
      Since Visual Studio 2002, there has been a not so secret registry key which allowed user to draw a vertical line in the code editor.  This is very useful to remind developers that their full line of code or comments may not fit one a single screen. Thanks to this extension this feature has returned with UI configure it.  Simply place the cursor at the appropriate column and select Add Guideline from the context menu

    Have Fun!!!

    Red X Problem On Work Items In TFS 2010 RTM

    פורסם בתאריך Jun 14 2010, 11:28 AM על ידי Eran Ruso

    There is a Bug in TFS 2010 that shows a Red X On the Work Items tab in Team Explorer.

    The Work Items become unavailable and when trying to get thru the Web Access you will get an error.

    Microsoft will probably release a patch to solve it soon but until then…

    What happened?

    It seems that the problem is being created from the queries section, when configuring Work Items we change or delete fields.

    When you load your Team Explorer the project refreshes, the Work Item tab refreshes the queries too and when it finds changes in fields it just stops and we get the Red X.

    How to solve the problem?

    Step 1: Log in with Administrator User

    Step 2: Load all the problematic projects to the Team Explorer

    Step 3: Create a new Team Project (That you can delete later)

    When the new Team Project has the focus it refreshes and neutralize the error on one of the problematic Team Projects.

    Step 4: Delete all the queries

    Step 5: Refresh again and delete queries until you release all the problematic projects

    Have Fun!!!

    Work Item Groups In TFS

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

    One very nice feature came with TFS 2010 that almost no one knows is the Work Item Groups.

    In TFS 2010 you can define group of Work Item Types and filter work items using that group, for example lets take different Work Items for requirements: System Requirements and Detailed Requirements.

    What I like to do is query all the requirements in the system, all I need to do is filter by the group: Requirements.

    Groups

    In order to change the categories you will need to export them to an XML file, change the categories and import them back to the server.

    In order to export the categories do the following:

    Step 1: Log in with a TFS administrator user

    Step 2: Open a command line

    Step 3: Change directory to: “x:\Program Files\Microsoft Visual Studio 10.0\Common7\IDE”

    Step 4: Type: Witadmin exportcategories /collection:http://[Server_Name]:8080/tfs/[Collection_Name] /p:[Team_Project_Name] /f:[Your_File_Name]

    Example: Witadmin exportcategories /collection:http://MyServer:8080/tfs/DefaultCollection
    /p:MyProj /f:”c:\categories.xml”

    categories

    In order to import the categories do the following:

    Step 1: Log in with a TFS administrator user

    Step 2: Open a command line

    Step 3: Change directory to: “x:\Program Files\Microsoft Visual Studio 10.0\Common7\IDE”

    Step 4: Type: Witadmin importcategories /collection:http://[Server_Name]:8080/tfs/[Collection_Name] /p:[Team_Project_Name] /f:[Your_File_Name]

    Example: Witadmin importcategories /collection:http://MyServer:8080/tfs/DefaultCollection
    /p:MyProj /f:”c:\categories.xml”

    Have Fun!!!

    Coded UI Test Demo – Video Hebrew

    פורסם בתאריך Jun 01 2010, 10:15 AM על ידי Eran Ruso

    I have recorded a video demoing the Coded UI Test, I have put a lot of effort making it short and informative.

    I have recorded the video in Hebrew, I hope to upload an English version soon…

    This demo is based on a Coded UI Test User guide I have published in English, the first post of the guide is:

     "Visual Studio 2010 Coded UI Test User Guide - Introduction"

    You can download the video from the following link:
    http://blogs.microsoft.co.il/files/folders/eranruso/entry645448.aspx

    I have also uploaded the video to YouTube you can watch it here:

    Have Fun!!!