Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6543567
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T11:21:45+00:00 2026-05-25T11:21:45+00:00

I noticed there’s an attribute Microsoft.VisualStudio.TestTools.UnitTesting.WorkItemAttribute available in visual studio testing (I’m using VS

  • 0

I noticed there’s an attribute Microsoft.VisualStudio.TestTools.UnitTesting.WorkItemAttribute available in visual studio testing (I’m using VS 2010 Premium and work items with TFS 2010.)

Marking a test method with a work item number sounds handy, but does it actually do anything? I can’t tell if there’s any tool support for it at all. I set one up like this:

[WorkItem(25788)]
[TestMethod]
public void TestSomethingSpecificToABug()
{
    ...

But no magic – I thought maybe the context menu on the test in the Test Results window might offer to open the work item, or Team Explorer might have a feature to search for tests. The MSDN documentation is no help either. What is this attribute good for?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T11:21:46+00:00Added an answer on May 25, 2026 at 11:21 am

    According to “Software Testing with Visual Studio® 2010” by Jeff Levinson (Addison-Wesley Professional, February 2011, ISBN-10: 0-321-73448-3):

    This also means that one existing property should not be used anymore:
    Associated Work Items. This value is not reported to the data
    warehouse and therefore cannot be used for reporting. If you currently
    use this property, consider associating your test with an actual Test
    Case work item type.

    So the answer is, don’t use this with TFS 2010.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm using ASP.NET Membership and noticed there isn't a method in the Roles class
I'm using the MIDP 2.0 (JSR 118) and I just noticed that there is
After trying to access ivars using KVC, I have noticed that there was no
Is there any problem with using multiple Handlers in the same Activity. I noticed
I've noticed there are a few solutions to allow the use of memcached on
When I run get-user|get-member in powershell with the exchange add-in I noticed there is
I was looking at the API documentation for stl vector, and noticed there was
I noticed that there is one change about ASP.NET Routing. I cannot understand why
I've noticed that there seems to be quite a bit of hostility towards Linq
I'm trying to use LinqToEntities and just noticed that there are no foreign key

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.