Tag | Testing Posts

For those of you who missed the chat today, here is the raw transcript. By raw, I mean that I copied and pasted the discussion without any edits. This is divided into two parts, the top part is the answers from the Microsoft Experts and the bottom part is the questions from the audience. Answers from Microsoft: Karel Danihelka [MS] (Expert)[2010-3-30 12:2]: Hi everyone, my name is Karel Danihelka and I am developer in partner response team. Sing Wee [MS] (Expert)[2010-3-30 12:2]: Hi, I'm Sing Wee, ...
Michelle Juett is one of the more interesting people I know, even though we’ve never met face to face. She’s part artist, part techie and all cool. We “met” via my good buddy George Clingerman and have plotting to take over the world, errr… I mean “collaborating” ever since. If you happen to live in the Seattle area, you can catch her and her work at Sakura Con on April 2-4, 2010 and various other gamer and art cons throughout the year. You can also find her on Twitter as @Shelldragon. Now that you ...
In this Issue: Max Paulousky, Christian Schormann, John Papa, Phani Raj, David Anson(-2-, -3-), Brad Abrams(-2-), and Jeff Wilcox(-2-, -3-). Shoutouts: Jeff Wilcox posted his material from mix and some preview TestFramework bits: Unit Testing Silverlight & Windows Phone Applications – talk now online At MIX10, Jeff Wilcox demo'd an app called "Peppermint"... here's the bleeding edge demo: “Peppermint” MIX demo sources Erik Mork and Co. have put out their weekly This Week In Silverlight 3.25.2010 ...
IronRuby is a Open Source implementation of the Ruby programming language for .NET, heavily relying on Microsoft's Dynamic Language Runtime. The project's #1 goal is to be a true Ruby implementation, meaning it runs existing Ruby code. Check out this summary of using the Ruby standard library and 3rd party libraries in IronRuby. IronRuby has tight integration with .NET, so any .NET types can be used from IronRuby and the IronRuby runtime can be embedded into any .NET application. These 5 steps should ...
Time for another guest post (check out others in the series), this time bringing together the world of mocking with the world of Entity Framework. A big thanks to Moses for agreeing to do this. Unit Testing Entity Framework Dependent Code using TypeMock Isolator by Muhammad Mosa Introduction Unit testing data access code in my opinion is a challenging thing. Let us consider unit tests and integration tests. In integration tests you are allowed to have environmental dependencies such as a physical ...
Continuing on my series of builders for C# and Ruby here is the solution in Javascript. This is probably the implementation with which I am least happy. There are several parts that did not seem to fit the language. This time around I didn’t bother with a testing framework, I just append some values to the page with jQuery. Here is the test code: var initialiseBuilder = function() { var builder = builderConstructor(); builder.configure({ 'Person': function() { return {name: 'Liam', age: 26}}, 'Property': ...
Sorry for the rather lengthy post here. I get asked this all the time so I decided to post it…Visual Studio 2010 editions will be available on April 12, 2010. Product Features Professional with MSDN Essentials Professional with MSDN Premium with MSDN Ultimate with MSDN Test Professional with MSDN Debugging and Diagnostics IntelliTrace (Historical Debugger) Static Code Analysis Code Metrics Profiling Debugger Testing Tools Unit Testing Code Coverage Test Impact Analysis Coded UI Test Web Performance ...
I thought my days of dealing with DBFs as a "production data" source were over, but HA (no such luck). I recently had to retrieve, modify and replace some data that needed to be delivered in a DBF file. Everything was fine until I realized / remembered the DBF driver does not ACTUALLY delete records from the data source -- it only marks them for deletion. You are responsible for handling the "chaff" either by using a utility to remove deleted records or by simply ignoring them. If imported into Excel, ...
When writing tests, other than end-to-end integration tests, we often need to construct test data objects. Of course this can be done using the class’s constructor and manually configuring the object, but to get many objects into a valid state soon becomes a large percentage of the testing effort. After many years of painstakingly creating builders for each of my domain objects I have finally become lazy enough to bother to write a generic, reusable builder class for .NET. To use it you instantiate ...
A customer approached me recently to ask if I had any code that demonstrated how to use STORAGE_IDENTIFICATION, which is the data structure used to get the Storage ID from a disk. I didn’t have anything, which of course sends me off writing code and blogging about it. Simple enough, right? Go read the documentation for STORAGE_IDENTIFICATION which lead me to IOCTL_DISK_GET_STORAGEID. Except that the documentation for IOCTL_DISK_GET_STORAGEID seems to have a problem. The most obvious problem is that ...
Unit Testing with VS2008 Team System and Moq In order to loop around the software development life cycle, you do really have to do the unit testing. Once you get in this stage, you will realise that you need to get your hand dirty with heaps of isolation and refactoring and you wish the whole team had been practicing the Test Driven Programming. It is vital that you test your application and the more dependencies you have in classes, the deeper nightmare for isolation. Possibly in some cases, bad ...
Employee Info Starter Kit is a ASP.NET based web application, which includes very simple user requirements, where we can create, read, update and delete (crud) the employee info of a company. Based on just a database table, it explores and solves most of the major problems in web development architectural space. This open source starter kit extensively uses major features available in latest Visual Studio, ASP.NET and Sql Server to make robust, scalable, secured and maintainable web applications ...
Introduction We are adopting Click Once as a deployment standard for Thick .Net application clients. The latest version of this tool has matured it to a point where it can be used in an enterprise environment. This guide will identify how to use Click Once deployment and promote code trough the dev, test and production environments. Why Use Click Once over SCCM If we already use SCCM why add Click Once to the deployment options. The advantages of Click Once are their ability to update the code in ...
Coming from someone who loves the KISS method, I was surprised to find that I was making something entirely too complicated. I know, shocker right? Now I'm no unit testing ninja, and not really a WCF ninja either, but had a desire to test service calls without a) going to a database, or b) making sure that the entire WCF infrastructure was tip top. Who does? It's not the environment I want to test, just the logic I’ve written to ensure there aren't any side effects. So, for the K.I.S.S. method: Assuming ...

V3 of the MVVM Light Toolkit was released during MIX10, after quite a long alpha stage. This post lists the new features in MVVM Light V3.

Compatibility

MVVM Light Toolkit V3 can be installed for the following tools and framework versions:

Read the rest of this entry »

I went to the session on Microsoft Silverlight Analytics Framework (MSAF) today while here at MIX 2010. It was a great walk through the features, ideas, and what the end goal is. Michael Scherotter did a great job of lining up the ideas, intentions, and the functional ideas behind the framework. The framework is built around the Silverlight Behaviors. If you aren't sure what behaviors are, check out these entries from Nikhilk.net Silverlight Behaviors, Silverlight 3 Drag Behavior, An Introduction ...
The problem statement: I am tired of thinking how to show a simple message box or user prompt and act based on the response in Model-View-View-Model (MVVM). Common approaches: - It's ok, let's just do this one thing from ViewModel and mock this out for unit testing - Design my own dialog, then what to do from there - Can I write something in view code behind, ah yes, that seems to be the only way out, as anyway MVVM is still not matured... - and what not? I am pretty much one among the few frustrated ...
For those out there that are a little curious as to whether SAF is any use to your organisation, please read this FAQ. What is SAF ? SAF is free to use. SAF is the "SharePoint Action Framework", it was built by myself and Hugo (plus a few others along the way). SAF is written entirely in C# code, available from : http://saf.codeplex.com. SAF is a way to automate SharePoint configuration changes. An Action is a command/class/task/script written in C# that performs a unit of execution against SharePoint ...
Since the dawn of the computer age, various methodologies have been introduced to improve quality and reduce cost. In this posting, I will by sharing my experiences with Test Driven Development; both its benefits and limitations. To start this topic, we need to agree on what TDD is. The first is to define each of the three words as used in this context. Test - An item or action which measures something in some quantifiable form. Driven - The primary motivation or focus of a series of activities (process) ...
When I get some time (and hell starts to look a little chilly) I would love to do a more detailed review. But I wanted to get something “out there” as I really like this book and reviews of it seem a little thin on the ground. In brief: Is it a good book? Yes Would I recommend this book to a .NET developer who was new to Ruby? Yes (This is me by the way) Would I recommend this book to a Ruby developer who was new to .NET ? Yes Would I recommend this book to a developer who sometimes does Ruby and ...
*Moved to: Finding the problem on a partially succeeded build on Team Foundation Build Services 2010Now that I have the Build failing because of a genuine bug and not just because of a test framework failure, lets see if we can trace through to finding why the first test in our new application failed. Lets look at the build and see if we can see why there is a red cross on it. Read more...Follow my new blog on http://blog.hinshelwood.com ...
*Moved to: Solution: Testing Web Services with MSTest on Team Foundation Build Services 2010Guess what. About 20 minutes after I fixed the build, Allan broke it again! Read more...Follow my new blog on http://blog.hinshelwood.com ...
In my last post I either completely ommitted or glossed over some things. In this post, I'll cover the use of the versioning and resource attributes as well as how I layout my web application projects. Versioning Attributes You'll notice that I use three different attributes for denoting the version of an assembly: AssemblyVersion, AssemblyFileVersion, and AssemblyInformationalVersion. The first attribute, AssemblyVersion, should be very familiar to everyone as it is the one used to specify the version ...
In this Issue: Mike Hodnick, Jeremy Likness(-2-, -3-), Bobby Diaz, Jianqiang Bao(-2-, -3-, -4-, -5-), Chris Klug, Nokola, Peter Bromberg, Nigel Sampson, Shawn Wildermuth, and Kirupa. Shoutouts: Chris Woodruff composed a PDF of the MEF Programming Wiki Gavin Wignall has a post up on how to Create a 360 panorama using Microsoft Silverlight Photosynth Chris Klug posted an Update to the multi-touch development intro From SilverlightCream.com: SilverSynth - Digital Audio Synthesis for Silverlight Mike ...
On recommendation from a buddy, I have submitted a session for Codestock. I've never been to it, but I've heard great things about it. I sure hope mine gets selected. I am thinking I'd like to do a session on using Windows Powershell as a testing platform for web-based applications. It's a much overlooked part of your Windows 7 install. I have built a few very lightweight test harnesses out of it, and I like it a lot. If you structure it right, it becomes far more manageable than you'd think, encourages ...
Just testing the use of Windows Live Writer for blogging. I have downloaded and installed some plugins for adding code snippets. The following examples use this plugin: /// <summary> /// Resets the counters. /// </summary> public void ResetCounts() { StudentsWithFiles = 0; StudentsWithoutFiles = 0; TotalSpaceUsed = 0; TotalFilesCount = 0; } You can also change the colours and fonts: /// <summary> /// Resets the counters. /// </summary> public void ResetCounts() { StudentsWithFiles ...
While my home development computer is fried I’m going to hack away at my backlog of non-code related posts. Today I’d like to discuss some of the advantages and disadvantages of using Microsoft MVC over WebForms. First of all, MVC is not the end all, magical platform that many people would like you to believe. In fact I wouldn’t even recommend it to beginner developers. However, if you have experience with .NET and you’re willing to put in the time to learn how MVC works, you will find that it offers ...
I am a powershell user. I use it in testing apps, mostly to either actually work with IE (automated testing) or to configure environments for testing (this can save tons of time and is very repeatable). Powershell is incredibly handy. I was nodding my head very excitedly when I heard Windows 7 would ship with it standard on some versions. “Perfect!” thought I. I got my Windows 7 and installed it at work (I actually paid for this) b/c it seems to me that XP 64 isn't supported very well and Windows ...
This is the second guest post from Gil Zilberfeld who works at TypeMock and kindly agreed to do a couple of guest posts on Mocking . The first was an Introduction to Mocking. Typemock Isolator – Much more than an Isolation framework In my last post, I showed how to fake a dependency. But this involved doing a couple of things. First, it involved changing the original method. Then, I had to write wrappers (a real wrapper and the fake wrapper) and finally, I had to inject the fake object in the test. ...
I'm here at PyCon 2010 in Atlanta. One of the pervasive themes (other than improving Python performance and testing which are very good pursuits IMO) is the recurring, omni-annoying "The Web is the New Operating System" concept that the .com busters (who failed us so miserably in the 90s) just love to espouse. The Web is a lot of things to a lot of people. If you asked 10 people what they thought "The Web" really means, you would probably get several very distinct answers, depending on their experiences ...
Article Source: http://geekswithblogs.net/c... There are various blog articles that give sample .NET code that can be used to validate a message against a schema from a BizTalk orchestration. These include: msdn, haloscan.com, biztalkgurus.com, eggheadcafe.com and Sujan Turlapaty. Many of these blogs have subsequent comments about problems. Under high loads, I too began to see these classes return “false positives” in my test environment. (i.e. An XmlSchemaValidationException is being thrown ...
These days, I’m doing a bit of end-to-end acceptance web testing using the Selenium framework. Selenium has a nice and handy add-on for the Firefox browser – the Selenium IDE. It automatically records your actions and produces the required C# code for you, as you click around in the browser window. But when I started the Selenium server and tried to run my first test (copied from the Selenium docs), it didn’t work (Sigh. It never works on the first try…) and I got a timeout and an exception. This ...
Some days ago I added a feature to an existing application, and when I was testing it, I felt that some calculations in the already existing parts of the software were wrong. After digging through the code I found that an external mathematical library is used, which was developed by a colleague some time ago. Due to its nature (being a pretty basic library), it was well-resourced with unit tests, and a short test run showed all of them succeeding. I sat down and did some old-school pen and paper ...
Set your ideas free Create what you can imagine, build on the strengths of your team, and open up new possibilities. · New prototyping, modeling, and visual design tools enable you to create innovative applications for Windows and the Web · Create a shared vision as a foundation for creativity with SketchFlow ,in Microsoft Expression® Studio , and Team Foundation Server · Take advantage of new opportunities & capabilities offered by multi-core programming and cloud development tools Simplicity ...
Note: Re-posted from the Prairie Developer Conference blog. The Prairie Developer Conference is pleased to announce that Microsoft MVP, author, and consultant Donald Belchamwill be leading a one day workshop on Friday, June 4th titled Making the Most of Your Brownfield Application Development! Pricing will be announced shortly, as will pricing for the conference in general and registration will be opening next week! Below is the abstract for the workshop. Making the most of Brownfield Application ...
I wanted to pull together all of my notes on compression I've gathered from various sources and bring them together here, in the hope that it would help someone else. All of this information is from reliable sources, such as the online MSDN but these sources aren't always easily found in a pinch. Using HTTP Compression for Faster Downloads (IIS 6.0) If your Web sites use large amounts of bandwidth or if you want to use bandwidth more effectively, consider enabling HTTP compression, which provides ...
On Monday the PnP team released the 2nd drop of the SharePoint 2010 Guidance. Included is an example of a sandboxed solution, which is a good list aggregation scenario related to SOW’s (statements of work) and estimates across a number of sub-sites. I am VERY excited about the work that is being done and guidance documentation and code that will be released soon. You will also begin to see tests utilizing Moles for “detouring” or “mocking” as well as examples of tests using several different unit ...
I came across and found very useful, bare in mind I am relatively new to the EF and TDD so any suggestions would be welcomed. I have been very busy recently with a new project, as I am in control of this project I have wanted to do things correctly from the start, I also am using it as an opportunity to get familiar with all the newest and shiniest of Microsoft's technologies. The platform is using a combination of ASP.Net MVC 2.0 and the Entity Framework 3.0. Because I know this codebase is going ...
I have been spending some time with a client analyzing the performance of an existing WPF application. We have found a driver-related memory leak and I wanted to share the methodology and findings. The WPF application in question has a bar graph, of sorts, that the user can adjust with the mouse. The bar graph contains a gripper control that the user can click and drag to adjust the height of a bar graph. Users have noticed that performing many bar graph height adjustments consumes memory, eventually ...
All this while we have been working with the Windows Mobile 6.5 DTK, the developer toolkit, which is not a SDK but more of an extension to the existing Windows Mobile 6 SDK, adding support for gestures et al. Well, the wait is over now, the WM 6.5 SDKs for professional and standard devices are now available. You can download them from here. (see update below) I've just downloaded them, haven't installed them yet, but from Joel's blog: "I downloaded and installed it and can't say I've had a chance ...
Here's a quick update on what I've been up to. I've been somewhat developing PongRPG for Xbox for some time. The game is getting closer and closer every day and hopefully will be ready for some testing soon. Also, I've been working on writing a new tutorial series for XNA specifically for 2D work. However, the series is coming out a bit slow so that might not be out for awhile. Tomorrow morning I will be headed to Florida for a week and a half long vacation (yay!) which means I won't be working on ...
Just ran into this one. The following is the code I was working with:$.ajax({ type: "GET", url: 'http://services.somewhere.... data: { 'param1':'something', 'param2': 'somethingElse' }, cache: false, dataType: 'json', success: function(view) { alert('success'); }, error: function(xhr, ajaxOptions, thrownError) { alert(xhr.status); alert(xhr.responseText); alert(xhr.statusText); } }); This worked in IE 8, but not FF 3.5. The strange part, though, was that the xhr object in my error function ...
This morning, very early (or very late depending how you see it), I learned that one of the sessions I submitted to the MIX 2010 open call for speakers had been picked by the public. Out of 169 sessions, only 12 were picked, so you imagine my feelings right now. Honestly, I am sure that this will be a good session, but it could have gone either way, and I had prepared myself mentally for the alternative possibility too. Read the rest of this entry » ...
One of the problems that a large part of the a certain gaming community has understood over the years has been one of version checking. A common, though now older, method of version checking among this community has been to execute a known algorithm based on a seeded value; however, the algorithm would change based on a formula sent over the wire. For instance, suppose for every four bytes in a file, there are four state values: A, B, C, and S. The S value is the current four bytes of the file. The ...
It would appear that one of the biggest threats to our digital security has been exploits in Word documents. Or at least, from the extensive security features built into Word 2010, one would come to that conclusion. I came across an odd issue tonight while testing a Silverlight application. I had a Word document (a .doc file, not .docx) on a webserver, but when I tried to access it I got this: To which I said “Yes”, but when Word 2010 opened up, I got this message: I thought maybe there was an issue ...
I put the final touches on a small Silverlight app that I had been working on over the weekend, and was doing some final testing of it. The app is pretty simple: it just displays stuff and has some buttons that take you to other web pages, launches the local email client, or downloads documents from a website. Simple tasks. I ran into a weird issue which I’m pretty sure is Word 2010 related (not the focus of this post, more on that another time). I asked a buddy of mine to access the SL app on my ...
This year Microsoft decided to have an open call for sessions for the MIX 2010 in Las Vegas. This conference, in case you don’t know it yet, is a great 3 days about modern client technologies, such as ASP.NET, Windows Presentation Foundation and of course Silverlight. This year, MIX is taking place from the 15th to the 17th of March 2010 in the Mandalay Bay hotel in Vegas. Today, the voting began! I didn’t count them, but there seems to be more than 100 sessions lined up, and the competition is fierce: ...
I was messing around with Win 7 installation on a computer while testing the RAID configuration. As a result, I ran the Win 7 install mutiple times. To my surprise, I now see multiple options at the Boot Manager screen for Windows 7. Have yet to figure out why. My other computer installation created a 100MB partition on the IDE drive before installing the Win 7 on the RAID. However, i don't see that partition in this computer, so I haven't figure out where the data is stored. Just found this post ...
Trying to figure out why the page that I am working on is locking up when non-initial loads of the page are called. The page contains 4 bound items: 3 ComboBox controls and 1 SortableListView (custom implimentation of a Listview that contains a Gridview). The page is supposed to allow the user to select one item from each ComboBox, then click "Add" and those items will be added to the SLV. At that point though, two of the three ComboBoxes must be re-loaded and the items that were previously selected ...
I just finished the first article to a two maybe three part mini-series on NBuilder for DotNetSlackers.com. NBuilder is a great little tool for generating your objects for you. Often times you will create an application that is dependent on data or a set of hydrated objects for it to work or for you to be able to test your application’s UI, etc. Sometimes you are not in charge of the data portion of the application. In that case you might find yourself creating mocks with complex scenarios of spinning ...