Getting Started With Application Insights (AI)

Wednesday, November 26, 2014

Application Insights for Visual Studio Online lets you monitor your application by tracking events, exceptions, usage, counters and custom telemetry of your application.Currently AI is in preview and available only on VSO, but you can jump and start using it Today! Currently there is two versions of AI out there – the VSO version and Portal Version, if you’re using Visual Studio Update 3 or later, you’re probably using the portal version.As I wrote AI is currently in preview and doesn’t provide all the information this kind of service should provide - OS, Browser, GEO and more analytic data...

How To: Enable Coded UI Html Logger

Monday, November 24, 2014

Many of my customers has already build large amount of Tests based on Coded UI, those tests running every build and every day, for a second everything looks just perfect, until a test failed with unexpected exception…. Then we need to understand why? the test failed because the new build broke the test? maybe something wrong with the test? So the obvious choice is adding logs to Coded UI, Coded UI has some basic logs capabilities, you can use either console, trace and TestContext to write logs inside your Coded UI Tests. Console.WriteLine("Console Writeline"); Trace.WriteLine("Trace Writeline"); TestContext.WriteLine("TestContext Writeline"); Now, if you...

Super Simple Load Test From VSO

Wednesday, November 19, 2014

Brian Harry post about this new experience a few weeks ago so in case you haven't heard about it here a glimpse. First if you don’t have VSO (Visual Studio Online) account it’s free and simple right here - http://www.visualstudio.com/For more information on VSO check out my presentation on VSO - http://blogs.microsoft.co.il/shair/2014/10/30/sela-open-house-visual-studio-online-application-insights/ Microsoft calling it “Load Test” but I think the proper term is High Scale Availability Check, because you can only test one Url,  and you can’t add validations to the load so where there is not validations there is no Test. As the post title implies it’s...

Lifetime Dev Center Registration for Windows Phone 8 & Windows 8

Monday, September 22, 2014

A week ago Microsoft announce that she’s dropping her annual fee, Starting September 16, 2014, all Windows and Windows Phone developer accounts in Dev Center will transition to a one-time only Dev Center registration fee. Microsoft Announcement Each developer will still have to pay 19$ but this is for lifetime account, a company will have to 99$ (once), the new entrance will allow you to choose which dashboard you want to enter and from there everything is pretty much the same. Dropping of annual fees that is the big news for developers, pay 19$ for both Windows Phone 8 and Windows...
no comments

TFS API Part 55– Source Control Get History

Wednesday, September 10, 2014

This post will demonstrate how to retrieve Source Control Items, placing those items into TreeView with dynamic search for children items. Also I'll show how to query Server Item history. Download Demo Project I’ve created WPF Application and added the following assemblies into my project: Microsoft.TeamFoundation.Client Microsoft.TeamFoundation.Common Microsoft.TeamFoundation.VersionControl.Client.dll Microsoft.TeamFoundation.VersionControl.Common Step 1: Connect TFS As always we need to connect TFS before doing anything. public bool Connect() { TeamProjectPicker tpp = new TeamProjectPicker(TeamProjectPickerMode.SingleProject, false); if (tpp.ShowDialog() == System.Windows.Forms.DialogResult.OK && tpp.SelectedProjects.Length > 0) { Tfs = tpp.SelectedTeamProjectCollection; ProjectInfo =...
no comments

VS 2013 CA0053 : Error Running Code Analysis

Friday, July 4, 2014

I have a lecture next week on performance and developers tools and I went to an old project (TicTacToe – Created in VS 2010 ) I’m using to demonstrate code analysis. I’ve open the project and ran Code Analysis, and I received the following error: CA0053    Error Running Code Analysis    CA0053 : Unable to load rule assembly 'c:\program files (x86)\microsoft visual studio 10.0\team tools\static analysis tools\fxcop\rules\globalizationrules.dll': Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information.        (Global)      Right any I tested new project created in VS...

Windows Azure Storage Emulator – v3.0 – Installation failed

Tuesday, July 1, 2014

Today I faced a very annoying and strange issue while installing newer version of Azure Storage Emulator on my machine. Tried to remove almost everything related to Azure but still nothing worked…. Although I ran DsInit to work on SQLEXPRESS instead of localdb I decide to delete sql local db by running the following commands: sqllocaldb stop v11.0 sqllocaldb delete v11.0 sqllocaldb create v11.0” The result should be - “LocalDB instance "v11.0" created with version 11.0.” After recreating SQL local db Azure Storage Emnulator worked. Hope this helped.

Could not establish trust relationship for SSL/TLS secure channel

Thursday, June 26, 2014

Working with WebClient to fetch some data from a web service (HTTPS) return an error, now it’s fully understandable why this exception raised – the server certificate has expired and isn’t valid any more. But how I can still getting the data from the service although the certificate isn’t valid??? You just need to override the ServerCertificateValidationCallback property - Gets or sets the callback to validate a server certificate. System.Net.ServicePointManager.ServerCertificateValidationCallback = delegate(object sender, X509Certificate certificate, X509Chain chain, SslPolicyErrors sslPolicyErrors) { return true; }; And you’re done!
no comments

העתקה של בדיקות ומבנה משרת לשרת

בתקופה האחרונה שואלים אותי יותר ויותר בנוגע להעברת בדיקות וכל מבנה העץ תחת MTM לשרת אחר או פרוייקט אחר. ב – 2010 שרק הגיע MTM לשוק כתבתי כלי לשכפול פנימי בתוך הפרויקט (במטרה לנהל גרסאות שונות של הבדיקות) - http://blogs.microsoft.co.il/shair/2011/03/20/test-case-migrator-between-projects-wpf-metro/. ב – 2012 מיקרוסופט הכריזה על יכולת חדשה ב – MTM – Clone המאפשרת שיכפול של כל עץ הבדיקות, אבל זה רק באותו הפרוייקט…. אז שוב מצאתי את עצמי כותב כלי לסייע במעבר –הורדה של הכלי (כולל קוד) 1. הקמתי פרוייקט ריק 2. נפתח את הכלי, נציין פרויקט מקור ופרוייקט מטרה. 3. לאחר מכן נבחר אילו ספריות ו\או בדיקות אנו מעוניינים להעביר.. 4. ניצור Test Plan...
no comments