TFS API Part 52 – Getting Work Item History

Wednesday, October 30, 2013

Tweet Work Item History field isn’t just a Text field that shows all the changes in a specific work items, it’s a collection of Revision object. Each time you save a Work Item a new revision object is been create and represent the Work Item Latest values. You can use the History to get previous values from Fields, Links and Attachments history. In this post I’ll show how to get Work Item revision list and display the Fields of specific revision. Download Demo Project Step 1: Connecting To TFS And Getting Work Item Store private void btnConnect_Click(object sender, RoutedEventArgs e) { TeamProjectPicker tpp...

TFS API Part 51 – Adding Test Step & Shared Step

Monday, October 7, 2013

Working TFS API for Test Cases is different from Work Items, the usage is different and this cause many of customer to send me questions regarding Test Case API. This post will demonstrate how to create new Test Case, Adding Steps, Step Attachments, Shared Steps and more. As always we need to start with connecting TFS Object Model: TeamProjectPicker tpp = new TeamProjectPicker(TeamProjectPickerMode.SingleProject, false); if (tpp.ShowDialog() != System.Windows.Forms.DialogResult.OK) return; TfsTeamProjectCollection Tfs = tpp.SelectedTeamProjectCollection; For Work Items we need to obtain WorkItemStore object, but for Test Cases we need to work with ITestManagmentTeamProject object. ITestManagementServiceservice = (ITestManagementService)Tfs.GetService(typeof(ITestManagementService)); ITestManagementTeamProject TestProject = (ITestManagementTeamProject)service.GetTeamProject(tpp.SelectedProjects.Name); The ITestManagmentTeamProject contains many helpers for Test API TestPlans...

WPF WebBrowser – getElementsByClassName Isn’t Working

Wednesday, October 2, 2013

Working on a WPF app for a customer we’ve faced a strange problem, our WPF app display some HTML content and allow user actions on the Web Browser control – Expend and Collapsed div elements. Because the JavaScript code is simple I don’t want to add any external library to our generated HTML and JavaScript code. Here is how the Expend and Collapse code looks like: function toggleAllItems(show) { var text = '+'; var style = 'none'; if (show) { ...

Visual Studio 2012 – No exports were found that match the constraint contract name

Sunday, September 29, 2013

For some unknown reason once I opened Visual Studio 2012 I’ve received the below error, everything worked just fined couple of days ago. I’ve tried Visual Studio command line execution tricks but nothing, then I tried to delete the client cache and that solved the problem. Remove ComponentModelCache folder content. %AppData%\..\Local\Microsoft\VisualStudio\11.0\ComponentModelCache

WP8 Remove Gray Tap Highlight From Web & Mobile Apps

Tuesday, July 30, 2013

Tweet HTML5 is getting more popularity and more people are converting their apps into Mobile or Web apps. I’m working a lot with PhoneGap for building an Hybrid App that runs on a least 3 of the major platforms – Android, iOS, Windows Phone 8. One of the most important points for building HTML5 App is giving the user the feeling his working on a Native app, the app should be fast with native effect etc.. (There are tons of things you can do here and I’ll wrote on that subject later). As part of...
no comments

TFS API Part 50 – Get Team Project Template

Sunday, July 21, 2013

In my last post TFS 2012 Upgrade Process Template–Guide I’ve talked about upgrading an existing Team Project Template to another or a newer template. An important part of the upgrading process is knowing from what template you are upgrading from – although this is not really important because the base template can be modified completely. So here is a simple tool to display the Base Process Template name. Download Demo Project Step 1: Connect TFS and Getting Team Projects Create WPF Application, and add the basic code for connecting...

מפגש ALM בנושא – All About Testing In Visual Studio 2012

Thursday, June 6, 2013

ראשית תודה לכל מי שהגיע למפגש ALM שהתקיים במיקרוסופט רעננה, בהרצאה זאת דיברתי על היכולות השונות לבדיקות אוטומטיות ב – Visual Studio 2012: Unit Test ו- Fakes Coded UI Advanced Search Cross Browser Playback ...

מפגש קבוצת ALM בנושא אוטומציה ב–Visual Studio 2012

Monday, May 20, 2013

בשנתיים האחרונות שאני שומע רק על Coded UI  ב – Visual Studio אבל יש עוד כ”כ הרבה מעבר, במפגש הקרוב אני אדבר על כל יכולות האוטומציה ב – Visual Studio 2012 עבור מפתחים ואנשי אוטומציה. נדבר על Unit Test ויכולת ה – Fakes החדשה שמגיעה עם Visual Studio 2012 (מחליף את Pex & Moles) ממשק Web Test Manager שמגיע עם Update 2, אשר מאפשר עבודה עם בדיקות ללא MTM. ...

SignalR Isn’t Working on Samsung Galaxy 3

Tuesday, May 14, 2013

I know you think the title is wired, because what is the relation between SignalR (WebSockets) and a specific device such as Samsung Galaxy 3? ASP.NET SignalR is a new library for ASP.NET developers that makes it incredibly simple to add real-time web functionality to your applications. What is "real-time web" functionality? It's the ability to have your server-side code push content to the connected clients as it happens, in real-time. While working on a project working with SignalR we faced a problem, the following code start the connection with the hub but...

Fifth Year as Microsoft MVP – 2013

Monday, April 1, 2013

This is my fifth time as VS ALM MVP and still excited like it’s the first time I got this email: Congratulations! We are pleased to present you with the 2013 Microsoft® MVP Award! To be a Microsoft MVP is a great honor and I’ll keep work hard for the community: Talking and Writing about new technologies and more. I also would like to say many thanks to my company Sela, my boss David Bassa and Caro Segal and Ishai Ram who pushed me forward in the technical community, promote many tools we built for the...