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

WPF Global Exception Handler

Tuesday, December 9, 2014

I decide to write this post because I’m facing too many applications that crash, yes just crash – no massage or recovery just crash!!! For some application it feels like 50% chance to get an exception, for me when an application crashes frequently I stop using it when I can find a proper replacement, but not always I can find suitable a replacement. In case you don’t know what I’m talking about here is a small application I’ve created to demonstrate what I’m talking about. Now, it doesn’t required a lot of work to handle those unhandled...

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

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

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

עבודה עם סיסמאות ב–Coded UI Test

Wednesday, January 23, 2013

קראתי היום כתבה של ערן רוסו – בעיה בהזנה שדה סיסמה דרך Coded UI Test ורציתי לחדד את הנושא עבורכם: כאשר מקליטים בדיקה בעזרת Coded UI Test על אתר או אפליקציה שמשתמשת בפקד Password הסיסמה תישמר מוצפנת בקוד שנוצר. public string UIPasswordEditPassword = "1U3nLUbO/llTew1#IBFZb1Vu6aDc/ggm"; אם נתבונן בקוד שנוצא על ידי Coded UI Test נוכל לראות את ההשמה של הסיסמה השמורה לשדה Password: public void RecordedMethod1() { #region Variable Declarations HtmlEdit uIUserNameEdit = this.UILoginWindowsInternetWindow.UILoginDocument.UIUserNameEdit; HtmlEdit uIPasswordEdit = this.UILoginWindowsInternetWindow.UILoginDocument.UIPasswordEdit; HtmlInputButton uILoginButton = this.UILoginWindowsInternetWindow.UILoginDocument.UIMainCustom.UILoginButton; #endregion ...