Lync Addin – Send SMS

Thursday, May 21, 2015

Many companies I work for are using Lync for communication inside and outside the company, unlike most IM tools Lync doesn’t allow offline messaging. Which means that when you try to send a message to a contact that is offline you’ll receive the following message: We couldn't send this message because User is unavailable or offline. So I decided to provide a workaround (no I’m not adding offline messaging to Lync) that allows me to send an SMS message to anyone directly from Lync (also pulling user name Mobile Number). * Sending SMS requires a server that supports that...

R&D Managers Forum – Hybrid Mobile Development Lecture

Tuesday, May 12, 2015

Thanks for everyone who attended my lecture on Hybrid mobile development, below you can find the presentation and the Cross-Platform benchmark I’ve used in my lecture. For those who missed it, here’s the lecture abstract: More and more companies are building their applications to support smart phones and tablets, as a result of tremendous growth on those markets. The big questions is how you can build your application to support multiple devices and operation systems? Building the same application for different platforms is not just time consuming but also require a lot of maintenance and different skill set for each platform  -...
no comments

Automation Runner – Running Tests Without Visual Studio

Wednesday, April 8, 2015

I’m often asked to provide a solution for testers who wants to run automation but don’t want to work with Visual Studio (Or don’t have a license). You can run automation using MSTest or using VSTEST.Console command line tools, working with command line isn’t simple and friendly for testers:     1. Test Methods – How do I know which tests available in each Test Assembly?     2. Running list of tests – I what to control which tests to run and manage my own test plans.     3. Reporting – I want to get real time status on...

TFS API Part 56 – Test Configurations

Monday, February 2, 2015

This post will show to manipulate MTM configurations and variables using TFS API, this post came after a customer raise a demand to add hundreds of configurations to MTM from external system. Download Demo Project I’ve created WPF Application and added the following assemblies into my project: Microsoft.TeamFoundation.Client Microsoft.TeamFoundation.Common Microsoft.TeamFoundation.TestManagement.Client.dll Microsoft.TeamFoundation.TestManagement.Common.dll Step 1: Connect TFS private void Button_Click(object sender, RoutedEventArgs e) { TeamProjectPicker tpp = new TeamProjectPicker(TeamProjectPickerMode.SingleProject, false); if (tpp.ShowDialog() != System.Windows.Forms.DialogResult.OK) return; Tfs = tpp.SelectedTeamProjectCollection; Grp.IsEnabled = true; ...
tags: , , , ,
no comments

TFS Cleaner Tool

Thursday, December 11, 2014

I few weeks ago I wrote a post about Control\Reduce TFS DB Size after received a “There is not enough space on the disk” message. That post shows how to identify what Test Attachments types are taking so much space and using the MS Test Attachment Cleaner to remove them from TFS repository. Two things, first I don’t like using Command Line tool – I prefer UI, so using MS Test Attachment Cleaner isn’t my favorite. Second, there are other things beside Test Attachment what consume a lot of space in TFS. So I decide to create a...

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

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

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

How To: Run Tests On Different Machines In Parallel

Wednesday, June 18, 2014

I’m getting this question a lot, how to run multiple tests on different machines in parallel? Every customer that I work with has over 100 tests and some has more than 1000+. So how to improve test execution time? running 1000+ tests can take a while and we want to get the results as fast as possible. So, for Unit Tests there is a nice trick (Wrote about it in 2010 –>Run Unit Tests in Parallel using Visual Studio 2010) that allow you to run those tests in parallel on the same machine. But what about Coded UI Tests? you most know we...

Unit Test Error – ERROR [IM014] [Microsoft][ODBC Driver Manager]

Monday, April 28, 2014

Visiting a customer we faced a strange problem running Coded UI with Excel Data Source: The unit test adapter failed to connect to the data source or to read the data. For more information on troubleshooting this error, see "Troubleshooting Data-Driven Unit Tests" (http://go.microsoft.com/fwlink/?LinkId=62412) in the MSDN Library. Error details: ERROR The specified DSN contains an architecture mismatch between the Driver and Application The same test works on Windows 7 machines but received this error on Windows 8 64bit, So I start to investigating… First if opened odbcad32 (from Run command), I’ve noticed the “Excel Files” DSN exists but...