Test Case Outcome Column in TFS 2010 and/or Test Manager - visual-studio

I am trying to figure out how to add the work item field Outcome to my queries in TFS 2010 and/or Test Manager 2010 so that I can see our test case results and use them for reporting purposes.
While I realize this column is available through the default reports provided by linking TFS to a SharePoint site, I am currently unable to set this up since our client hasn't configured their SharePoint to do it yet.
My current plan is to create my own reports within Excel, but to break my question down simply, is there anyway to query for this field from within TFS or Test Manager?

I found that there really isn't a way to access the Outcome field from TFS or Test Manager currently (up to TFS 2012 for sure).
The easiest way to do it for a project that doesn't have its reports setup (or for Visual Studio Online which doesn't have the test reports) is to do it manually from the results in Test Manager.
Thanks to everyone for viewing and for the help.

Related

How do I deploy an SSRS solution?

This is an extremely vague question because I don't know enough to know what I don't know. Here's my situation:
I have downloaded SSDT and connected to a data source (A SQL Server DB instance). I've created a report. I can preview the report in VS. I can publish the report from the VS build menu and it gets published to my local reports server that seems to have been installed by default at http://localhost/reports. I can use a browser to go to that url and see the report I created.
Now, the problem is that this is all only in my local development environment. I installed SSDT through Visual Studio and it auto-created my reports server. Is there a way to install a reports server without installing visual studio and publish the reports from a report solution using an MSI created by a packager like WiX? I'm having a hard time finding information about how to do this.
The report server is typically installed when you install SQL Server. If you want to publish reports so that others can use them do the following:
Go to your VS solution and right-click on the project then select properties.
Set the TargetReportFolder (this will be created if it does not
exist). This will usually reflect the name of the group of reports
you are working on (e.g. 'HR Reports')
Set the TargetServerURL to the report server on your SQL Server box for example http://mySQLServerBox/reportserver/
Set the TargetServerVersion to match your SQL Server installation version (SQL Server 2016 etc)
Now you can simply right-click a report rdl in VS and choose deploy, you can also do the same at the folder level to deploy all the reports in one go.
To access the reports, go to the web portal which will usually be http://MySQLServerBox/reports
I hope this is what you are looking for..

Hopw to make sure you are working on latest version of SSRS Report from Report Server

I just created a Report Project with 1 .rdl in Visual Studio 2008. I then deployed the report to the SSRS Server and I can now see the report in the Report manager.
I made a change to the report using report builder 3.0.
Is there a way that I can "get latest version" from the report server of the .rdl when I open my report project in Visual Studio again?
I am guessing that 1 way would be to download the .rdl and add back (overwriting) to the report project but I am wondering if VS has a built in function to take care of this for you?
There is no built in functionality in VS to attach to an SSRS instance and pull down the .rdl files. Since they can be moved, edited and deleted, outside of the designer there could be numerous issues with doing that. Just check all your local project files into source control and manually update if needed. Since I don't edit outside of VS I never had to deal with "pulling the latest version from ssrs". However, I have come across third party tools that may have functionality to make it easier.
If this is going to become a daily struggle for you then you may want to take the time now to automate the process using the ReportExecution2010 or ReportExecution2005 web service api.
Visual Studio is used to create and deploy reports, once they are deployed, there are no links between the report in Visual Studio and the Report Server, and there will never be. Think about it, you can deploy the report to X servers, so how could Visual Studio find which report you are talking about.
To ensure you are working on the latest version, you will have to download it and overwrite as you say, although I would compare it instead to see if there are changes not deployed.
If you are working with other developers that would potentially redeploy the report, then you can just check the last modification user of the report.
In all cases, I would strongly suggest to always check-in/commit when you deploy a report.
If you want to download several reports from the report server, then you could use a tool like RSScripter for example.

Create a Sharepoint site populated with default settings for an existing team project in TFS 2012

Has Microsoft addressed the difficulty of creating a SP site after creating the Team Project in TFS 2012? I am aware of the methods outlined here, but I was hoping they had come up with something slicker in the new version. If not, does anybody know of a better method or tool than the one suggested in the previous link?
The TFS Power Tools has a command tfpt addprojectportal that will create the SharePoint site for you after the Team Project has already been created. You will need to know process template that was used to create the team project. You will be able to find all the options you need for the command by using the /? switch.

Reporting in Team Foundation Server 2010

I was wanting to know (as the title suggests) if anyone had any information on reporting in TFS 2010.
I know there have to be options for this, but I can't seem to find any literature on where any built-in reports are, nor where I could build custom reports.
Also, I have it set up now where I get email notifications upon a completed build. However, the email notification is just that--a notification. It doesn't give me much information outside the basics (for instance, it doesn't say details on any errors or warnings). It does give me a link in the notification that directs me to a page that lists further detail about the build. But I was wondering if there was any more flexibility on these notifications.
The long and short of it is this: I'd like to know what kind of reporting options are available in TFS 2010, and I'd also like to know if there was a way I could possibly customize the email notifications to somehow contain the aforementioned reports, or at least link to said reports.
Reporting with TFS2010 is pretty rich. Any chance that you have it installed on your workstation? Reporting is not supported in the workstation version of TFS.
What's New for Reporting for Visual Studio ALM
The reports are hosted inside of SQL Server Reporting Services so you can create custom reports using a standard SSRS project in TFS. You can do a lot to manipulate the reports using just the report manager that is available from within the project portal.
The email is done using a XSL transform that is normally located in C:\Program Files\Microsoft Team Foundation Server 2010\Application Tier\TFSJobAgent\Transforms. You can manipulate any of these XSL files to create a new presentation of the data that is passed along from TFS. Of course you can create links to the reports by just including them in the XSL template.

Can TFS2010 be set up locally in order to use Test Manager but still tie into work items, bugs, & source code residing in a remote TFS2008 instance?

We currently use TFS2008 for our source control, bug tracking, and tasks. The TFS2008 server is located in a remote data center. Locally, we have Visual Studio 2010 installed on the developer's machines. Is there a way to install TFS2010 so that we can run Test Manager but still tie into the work items and source code on the remote 2008 instance/database?
Yes, and No.
First the No - You cant connect work items from two instances of TFS. You cant even connect between two team collections on the same sharepoint server. If you do not realy need this or you can upgrade your TFS 2008 to 2010 then stop reading.
Advanced only
The Yes - If you install a local TFS 2010 instance you can setup a sync between the work items and source control of the TFS 2008 box. Note that this will be hard as the TFS 2008 probably uses the MSF Agile 4.2 template and you would have the MSF Agive 5.0 template on your local TFS 2010. You will need to set up mappings between the Work Item types and a zero mapping for the Work item types that do not exist on the 2008 box (Test Case being one)
To do this you use the TFS Integration Platform which comes with a TFStoTFS Migration tool out of the box, but you will need to setup the mappings. If you had two identical TFS boxes this is not required, but you need to be able to sync both Work Items and Source Control to keep the Attachments and Links in place.
You then check in and associate with work items to your local TFS 2010 which will then sync that change to the remote TFS 2008 box.
Only use this if there are no checkins to the remote box! You will have to resolve conflicts on the server you use to sync if you do just as if you were checking in.

Resources