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) { ...

מפגש 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. ...

הרצת בדיקות על דפדפנים שונים עם Coded UI Testing

Wednesday, February 20, 2013

לאחרונה נתקלתי במספר טענות שלא ניתן להריץ בדיקות Coded UI  על דפדפנים שונים למעט Internet Explorer, אז רק להבהיר – אכן אפשר! אתם צריכים את הדברים הבאים על מנת שהתוסף יעבוד ויאפשר לכם להריץ בדיקות Coded UI על דפדפנים שונים: Visual Studio 2012 Update 1 Chrome 21+ Firefox 15+ IE 9/10 ...

TFS API Part 49 – Delete Team Project

There are many improvements in TFS API for 2012 version, in my previous post I’ve talked about TFS API Part 48 – WorkItemControl And Bypass Work Item Rules that allow work item creation with bypass rule mode in WorkItemStore that allow you to create and change any field value without applying the WorkItem template rules. in this post I’ll show how to delete Team Project using TFS API, be aware Delete Team Project is unrecoverable! Download Demo Project Step 1: Connect TFS and Getting Team Projects Create WPF Application, and add the basic...

WinRT Toast Notification From Desktop Application

Wednesday, January 30, 2013

The post title maintained Toast Notification but after reading this post we'll be able to perform API calls to WinRT from your Desktop application. As you know WinRT exposing API’s for three developer languages: C#, C++ and JavaScript, this means that from each language you’ll be able to perform WinRT calls. The idea is based on Windows Metadata File (winmd) that expose those APIs that can be consumed across a variety of technologies and languages. Download Demo Project So why not using those calls from a desktop application? for example one of the great...

How To: Compress Files In WinRT

Monday, December 31, 2012

Windows Store apps are aligned with PLM philosophy (Only active application will use device resources), and because of this most Windows Store apps needs to save their data locally until the next application execution. Windows Store apps can also use the Roaming folder to save files and settings that will be sync with the user Windows Live account, when saving settings or files to Roaming folder you need to make sure those files are not too big so Windows 8 will be able to sync the Roaming folder quickly. One option is to use Compression using: ...

Windows.BackgroundTasks contract or is not installed

Friday, November 30, 2012

Yesterday I did some work on BackgroundTasks (CS) for customer application, while building the structure I faced an unfamiliar error and application crash when the Task was triggered. I’ve look into Windows Event Log and fond a error related to my application: Activation of app fcf446e9-4a89-4d56-b3ae-def1bab41ac2_d824bndbbbqn4!App failed with error: This app does not support the contract specified or is not installed. See the Microsoft-Windows-TWinUI/Operational log for additional information. So where can you find the “Microsoft-Windows-TWinUI/Operational“ log? Expend “Application and Services Logs” folder, Microsoft –> Windows –> Apps...

BackgroundExecutionManager.RequestAccessAsync() Element not found.

Working on Background Task for Windows Store app I faced a annoying issue, while calling: await BackgroundExecutionManager.RequestAccessAsync(); I’ve received the following error: The problem was I put BreakPoint before the line, once I’ve removed the breakpoint below that line everything works just fine. I don’t know why this is happening but this is how I “Solved” the problem. Enjoy