Tag | Testing Posts

Yesterday featured another day packed with sessions and started with a great keynote showing off the new Windows 7, what's coming onto us with .NET 4 and the new development environments (starring Visual Studio 10) as well as innovations in the field of Office (web office is going to allow editing and synching documents online).

Read the rest of this entry »

Using Reflection and ADO.NET to create a dynamic Data Layer In this article I will discuss using object oriented techniques and built-in ADO.NET functions to create a data layer which will essentially figure out what values to put into stored procedure parameters, dynamically assign types in ADO.NET and c#, get values from a database and assign them to object properties, and write the code in such a way that you won't have to rewrite it anytime soon; even if you add new objects into your solution ...
In this issue: Pedro Anuarbe Cortes, pierlag, Joseph Ghassan, Jeff Wilcox, Silverlight SDK, Jeff Prosise, Dave Burke, and Michael S. Scherotter. Karl Shifflett reports All New XAML Power Toys Videos Published... and when he says videos... yikes, he's been busy! Koen Zwikstra has an update to Silverlight Spy: Silverlight Spy 2.0.0.33 with some very nice upgrades. From SilverlightCream.com: SpecNix - ZX Spectrum Emulator Pedro Anuarbe Cortes is the dev that sent me the very nice Tetris game last week. ...
Here are the things that caught my attention in today's MSDN briefing: A. Silverlight 2.0 1. You can use IsolatedStorageFile and IsolatedStorageSettings for storing data on the client machine, but they can be disabled by users, so this case must be treated appropriately 2. Xaml power toys http://karlshifflett.wordpr... , it is a VS 2008 SP1 addin that provide powerful code generating tools on context menus for Silverlight and WPF xaml developing 3. You can access HTML DOM Silverlight, ...
All of the code we write must be tested and accepted by users before it can go into production. Which brings about a unique possibility of a syncing issue when we are doing so in a branch development scenario. The image below is a great reference. Say we have two imaginary branches, one for features and two for production fixes. In reality there would probably be a branch for every production fix and multiple branches for on-going development. The trunk is code that has been released to production. ...
For the past three weeks I have been testing the new Nokia e71 and Apple’s iPhone 3g. Both phones are well built and deliver as promised in almost all areas. Below I will give a few tidbits about my experiences with each one. I am also at the same time working on deploying Microsoft’s System Center Mobile Device Manager (SCMDM). This will not come in to play with either of these devices though. Although they have licensed and support Exchange ActiveSync, SCMDM will only support devices running a ...
We are currently using WCAT because we have the Pro version of Visual Studio, not Team System. It's not exactly the easiest or best tool, but it is free. I'm looking at Web Performance Suite and NeoLoad as a possible replacements but I'm not very familiar with either. This is what we need: Ability to load test many users (of course). Fairly easy to use. Trace listener would be nice. Test the output for values using simple matching and regular expressions. Functional testing in the same package would ...
I can just say that I'm happy to say good bye to Blend 2.5, it was really a pain to use to different Blend versions (2.0 and 2.5 as I mostly work on WPF) and since already bought the Expression Studio I was wondering if I had to buy Blend 2.5 just for Silverlight but now I am happy. I might bring new tutorials and now that we have a stable version it will be better I was just waiting for the final and stable release so as to kick start developing commercial Silverlight applications. I must add that ...
If you follow the GWB blogs, chances are you’ll get tired of hearing this. However, the ASP.NET MVC Beta has been released, and I think a good amount of people are very excited for its release. I remember our BRDNUG meeting on the ASP.NET MVC, and how it was hard to tell anyone what would work for which preview version because of the vast differences and changes that occurred between the early previews and the later previews. Now that we have a beta, we should see a lot more stable MVC. From the ...
Hi there, How do you mock an asynchronous web method (web service) call? You can skip the background and move on directly to the solution... Background: Visual Studio 2005 CAB/SCSF May 2007 C# 2.0 Rhino Mocks (version 3.5 for 2.0) In a CAB/SCSF project I'm working on, I'm testing a Presenter's method "OnViewReady". In my implementation, this OnViewReady does basically 2 things: Tells the View to Show a "Loading..." message to the user Issues an asynchronous call to a Web Service When the call is ...
I mashed together a variety of random web resources on how to make a decent pre tag for code and the output looks like this (ignore how incredibly bad this code is... I was testing SVN and making sporadic changes... Steve McConnell would strangle me): Module Module1 Sub Main() Console.BackgroundColor = ConsoleColor.DarkBlue Console.ForegroundColor = ConsoleColor.White Console.Clear() My.User.InitializeWithWindo... Dim sw As New Stopwatch() sw.Start() Dim username As String = My.User.IsInRole(Applicatio... ...
One of the engineers working with me was adding an SD driver to a platform today. After adding the driver to the BSP and testing it, he found that the driver wouldn’t load because one of the dlls that it was dependent on was missing from the OS. After using dumpbin to determine which dll was missing, we found that SDBUS.dll was the missing dll. To be honest, we knew what we needed to add but wanted to make sure and see if anything else was needed. We started by right clicking on the Catalog to search ...
We implemented Web SSO with ADFS. It works great, but the development experience was limited to W2K3. This was a problem as development workstations were XP. So we had 1 server on the side to test code against. We pulled down the dll to the XP development boxes which allowed for compilation, but testing only on the W2K3 server. A new framework for claims based identity is in beta from Microsoft. It is code named Zermatt. One of the interesting things from the developers perspective is that with Zermatt ...
Hi All, Just a note regarding an issue I had to help resolve a little while back? Issue: We had a pre-sealed image of an XPe intended for a customer, who wanted to join it to the domain, come through and during testing at our location and on site for the customer it was found that it simply refused to get it's time in sync Research: What we able to narrow down to is that the Registry Entry for: HKEY_LOCAL_MACHINE\SYSTEM\C... was listed as Type = NoSync and ...
I’ll be honest that this did happen to me, and thankfully the MSDN straightened me out. For those of us who normally program for winforms, sometimes the switch to an ASP.NET project can prove to be a whole new world. For instance, I was working on a straightforward single page in ASP.NET 1.1 so that members of the same project could gather some information easily. The form itself had one field, and I wanted to ensure that the field was a number only. I added a RegularExpressionValidator and pointed ...
Could it really be this simple? For all you developers out there wondering how to print a PDF file, here is my story and the idiotically siple solution to this problem. After pulling my hair for days, researching printing with the System.Printing and System.Drawing.Printing namespaces in C#, I was ready to jump out of the tallest building in my area!!! The deadline was comming closer by the minute, yet the project's last component (printing) was not even finished. Out of desperation I decided to ...
In this issue: Tim Heuer, Mike Snow, Peter Bromberg, Jeff Handley, Terence Tsang, Corey Schuman, and Jonas Follesø. From SilverlightCream.com: Silverlight in SharePoint web parts Tim Heuer discusses Silverlight in Sharepoint with a group of links out to good information. How to Dynamically Load a Silverlight Control within another Silverlight Control Mike Snow explains how to dynamically load a Silverlight Control into an existing Silverlight App... Silverlight: Dynamically add "favorites" bookmark ...
I've been delving a fair bit into WCF lately and have been encountering enough gotchas that it is clear that it's time for me to resurrect my tech blog. My first post: an errant WCF Socket Exception which looks like a timeout due to the message is actually an exception caused by DBNull. You may have come across the above msg at some point in working with WCF. The socket connection was aborted. This could be caused by an error processing your message or a receive timeout being exceeded by the remote ...
Recon: Abandoned WWII Munitions Facility Debrief: While at work on Friday, I had that itch to go do some exploring. It had been a long week and I wanted to put my brain in a different gear for a while. Shortly after that I got a text message that read "I'm thinking about checking out this old WWII munitions site." Sounds like just what the doctor ordered. The plan, as with any recon, is to locate and identify. So we figured on rolling out there in the daylight, looking around and then grabbing a ...

This Tuesday I'll be giving a presentation on ASP.NET MVC and Unit Testing at the CMAP main meeting: http://www.cmap-online.org/Meetings/Details/2008-10-07.aspx .

It’s been a very busy week in terms of announcements. “Dublin” has been announced, and Darren Jefford probably has the best summary of what Dublin is and how it will affect us. Channel 9 has published some great webcasts looking at Visual Studio 2010 and the testing and UML features included in the new release. I like working with UML, but it’s not had that much exposure on the .net platform. I fought hard with Rational XDE for Visual Studio.net for a few days back in the day, and have also dabbled ...
Well, the first iteration of my new project finished yesterday and the retrospective went well, for our first. Troy led the retrospective and tried to keep us on track with the things he’d done before in retrospectives. It was my first retrospective on a professional project, so I thought I’d share our process. First, Troy hit the whiteboard with three columns: Start Doing, Stop Doing, Keep Doing. These are pretty self-explanatory but I’ll touch briefly on each anyway. Start Doing – Things that we ...
I’ve been doing development professionally now for maybe 18 months and my experiences over the last 8 months in an agile shop have made me realise just how much there is to know in the development arena and, more importantly, how much I would like to know in order to be really creative in my job and produce truly excellent software. In my previous job, I used a text editor to write Perl. There was no such thing as unit testing and copying and pasting was viewed as an aid to productivity rather than ...
Are you in Arizona? If so, I would love it if you would join me at Gangplank for Wednesday's hacknight. I have been meaning to get to hacknight for many weeks and now I have to go - no backing out for Kathy. Why? Because Wednesday from noon to 9 pm, I will be sitting at Gangplank doing usability testing on the allvoices site. I am hoping to get a bunch of people to sit with me (one at a time) and let me know what they think of the site. We are in the middle of a re-design - what a great time for ...
I realize I have been a bit quiet the past few weeks, but we just kicked off the first iteration of a new project at work, so still settling into the project groove. Luckily, the team I am on is outstanding, so there has been good progress made for the first iteration. Now, for the real purpose of this post. I've been a TDD enthusiast for about a year now and have been reading and watching videos about BDD the past few months and I am really intrigued. I have been trying it over the past week (using ...
I was recently asked by a client to test whether a WCF based service could be implemented behind ISA Server (2006) whilst using netTcpBinding . I knew nothing about configuring ISA Server, so I worked in this with an ISA Server SME within my company on this. We set up 3 virtual servers : one client, one running ISA Server and one hosting the WCF service. I configured the client to be able to use wsHttpBinding and netTcpBinding just for comparison. The security mode was explictly set to "none" for ...
I can describe my feeling of mgration from TFS 2005 to TFS 2008 in one word-NIGHTMARE. Summary of recommendations. 1.Create combined TFS 2008+SP1 setup as described in http://www.woodwardweb.com/... and in the latest Team Foundation Installation Guide 2. Read Team Foundation Installation Guide ,Upgrade TFS 2005 to 2008 , Tips for upgrading from TFS2005 to TFS2008 3. If you are using fully-qualified domain names (FQDN, e.g., tfsserver.mycompany.com) , replace the FQDN with NetBios ...
It is generally considered a good thing to use unit tests these days. Often it is necessary to test a method which takes some complex type. So in the unit testing one has to painstakingly manufacture such object, and pass it in. Before doing so, you would (should!) ensure the complex type itself produces an identity - that is to say that if you create an instance of type MyClass and assign / construct it with proper values your should "get back" what you gave it. This is especially true for object ...
Article Source: http://geekswithblogs.net/m... Following a recent post about the different approaches to caching you might consider when implementing reference data mapping in BizTalk one of the things that stands out most was that the solutions where a team had used a caching approach often resulted in them not using the BizTalk Cross Referencing features. As I've mentioned many times I prefer to use this unless there is good cause not to (there are reasons where you might not want ...
Reflecting on Software Metrics At the risk of sounding pedantic, I like software metrics. They can prove to be invaluable in analyzing source code. To be clear, I am not proposing that developers be bonused based on metrics and their use in estimating and scheduling should be limited at best. I am however a fan of software metrics as benchmarks for evaluating design and understanding how software works. There is an add-in for reflector called CodeMetrics that allows you to easily calculate a wide ...
Passive View and Cyclomatic Complexity We have previously talked about cyclomatic complexity and set forth the goal of keeping the complexity for our methods down below 10. We have also talked about the goal of systematically refactoring any methods that we find to lower complexities whenever we make code changes. These are good and admirable goals for business logic. But what about Passive View? Passive View is a slight variation on the Model View Presenter pattern designed to drive home the fact ...
First Winnipeg BizTalk User Group Event! Agenda "Getting Started with BizTalk" - Darryll Sum "Unit Testing with BizUnit" - Shona Helstrom Rountable Discussion Location 1700 Richardson Building 17th Floor, One Lombard Place If you arrive after 6pm, you must speak with the front desk guard to obtain access. Date / Time Thursday, October 9, 2008 - 5:30 pm to 8:00 pm Food and Refreshments will be provided. For more information and to register for the event, check out our WBTUG website at http://www.btug.biz/Home/Wi... ...
[Source: http://geekswithblogs.net/E... As part of the testing for the Dynamic Looping Convoy solution, I wanted performance testing with LoadGen, which proved to need almost as much development as the BizTalk design. The standard LoadGen message creation from templates, and even the Dynamic Message Creator wouldn't work for my case where I wanted to generate messages in related sets, all of the same type but each only populating part of the schema. So the message id would be the same for ...
[Source: http://geekswithblogs.net/E... We had an interesting problem which looked at first like a Parallel Convoy situation – the source was sending message segments which we needed to build up into a whole message and send on to the target. The source segments would be arriving in any order, and the sequence wasn't important – each would contain just one part of the whole message. Initially we knew the number of segments per message, so a straightforward Parallel Convoy was the obvious ...
Article Source: http://geekswithblogs.net/m... I've recently been reviewing some BizTalk setups for various reasons. These include: Is the setup correct Performance analysis and issues General troubleshooting I thought it would be useful for me and others who might want to look at doing a review of a BizTalk setup to make some notes on some of the activities you might want to do. Comparing Servers I've come across a couple of instances previously when servers had been setup incorrectly ...
I took some time today to update the source code for my little color key collision detection sample, "The Road Not Taken". I haven't gotten the tutorial updated just yet, but the source code has been converted to work with the XNA 3.0 CTP Framework. (hopefully the 3.0 framework comes out soon and I can get it working with that as well). I also took the time to make the sample work on the Zune AND the 360. The 360 project had to be done in the XNA 2.0 framework since the 3.0 CTP doesn't support 360 ...
I was writing some WPF testing code today. It was extremely simple code which just programmatically creates a Rectangle and adds it to a canvas. The code this something like this: Rectangle rectangle = new Rectangle { Fill = new SolidColorBrush(Colors.Blue), Stroke = new SolidColorBrush(Colors.Blue), Width = 150, Height = 120 }; rectangle.SetValue(Canvas.L... 100); rectangle.SetValue(Canvas.T... 100); canvas.Children.Add(rectang... However, I got an exception on rectangle.SetValue(Canvas.L... ...

On old manager of mine sent me an article that basically confirms the automated testing ideas we put in place when we built out the process (was only the two of us at the time). Nice to get some validation that we knew what we were doing. :-)

Winnipeg has had a successful .NET User Group for many years, and building on that we’ll be providing a new offering starting this fall: The Winnipg BizTalk User Group! When and Where October 9th at 5:30 17th floor Richardson Building (where we currently hold the .NET User Group meetings) What will be discussed? Introduction to the group, introduce who’s involved, etc. Shona Helstrom from EDS will be presenting on using BizUnit for unit testing BizTalk We’ll conclude with a roundtable discussion ...
I was asked to find an open source load/performance testing tool we can use at my employer, and I've done some digging. OpenSTA seems to be our best option, although it can be quirky and sometimes unreliable with HTTPS. However, I did find something called WebLOAD which looked promising. However, it says it doesn't support HTTPS at all. Given that this is advertised as "open source", I figured perhaps it could be made to support it (even though this sounded like a strange idea...a web load testing ...
I have been coding using Microsoft technologies for a long while. Recently I was given the chance to do a little bit of web mastering. Due to my system admin background I was most definitely game for this. Learning IIS 6.0 was not a huge leap as I had done a lot of development using IIS5.1(Windows XP Professional); however I had not as yet used Host headers in IIS (IIS 5.1 only allows for one site. I will post about that later.). This was a learning experience (Don’t even get me started on the issue ...
The following error occured when 2 requests hit an ASP.NET (2.0) web app (using SQL Server 2005) at the same time: The connection was not closed. The connection's current state is open Normally this only occurs if you have a connection that is not being closed. However in our case all connections where being closed using a try-finally block (personally I prefer using a using block). This error only occured when the 2 request were initiated from different machines. It turns out that the error occured ...
Microsoft announced BizTalk Server 2009 today, and gave the green light to talking about the new version. It’s due for release in the first half of next year, and is shaping up nicely. Microsoft is casting BizTalk Server 2009 as a major new version in its own right, rather than just an updated 'release' of BizTalk Server 2006. This is an important move, and one I strongly welcome. There is certainly enough in BizTalk Server 2009 to warrant thinking of it as a major revision of the product, although ...
In relating the last post to someone (another productivity enhancer this exercise fosters), I was reminded of a similar exercise I went through 'back in the day' at either Sperry or Honeywell, I don't remember which version of the company it was at the time. I was at a point in my career that I was learning Windows programming, and they were trying to figure out where to put me. So I found myself in 'Desktop Support' for a while. This was about the time that Viasoft almost imploded by having some ...
Hear ye Hear ye, looking for some info from the Geekdom about IE Version 8. Does anyone have a rough idea about when it would be rolling out of beta and into full production release? The reason I ask is that I have a beta version installed in my testing lab here at (redacted job location) and I've discovered that our commerce sites have some issues with IE 8. And the dev management wants to know when it would be going into full production so we can start prioritizing fixes for IE 8 compatibility. ...
When: September 11, 2008 - starting at 6PM Where: Benefit Focus, Daniel Island Brian Hitney from Microsoft will be presenting on using ASP.NET Model-View-Controller Framework. In this talk, we'll look at the new Model-View-Controller (or MVC) framework coming in ASP.NET. We'll discuss some topics like REST, and we'll go over how MVC works (such as URL routing and controllers). We'll also talk about why and in what situations the MVC framework might be useful over traditional ASP.NET Webforms development. ...
Normally I’d look at any new announcement from Google like a kid unwrapping a present on Christmas morning: they’re typically cool, and at worst good for 10 min of attention until I put it aside to focus on something else. But their announcement of Chrome made me want to pick up my iMac and throw it out the window. One of the biggest banes to a web developer’s existence has always been the plethora of browsers that we have to test our applications against. Keith Elder recently blogged about how CodeZone ...
After discovering some pretty significant serializaton issues in the code base, and approximately 0% testing of the implementation of ISerializable, I've been spending the last couple of days writing tests for the serialization... I've been using the following code to do the serialization, easy to use: MyObject m = new MyObject("Test"); Assert.IsTrue( m.Equals( Serialization.SerializeAndD... m ) ) ); Of course, this uses the 'Serialization' class, which is defined below! using System.IO; ...
Phil has an excellent post that builds on Jeff Atwood’s explanation which very clearly describes the differences between the various release types: Beta CTP Daily Builds/Interim Releases Fully Supported Out-of-Band Releases RTM/RTW Releases Service Pack Releases Summarizing what both Phil and Jeff said: Alpha: The software is complete enough for internal testing. This is typically done by people other than the software engineers who wrote it, but still within the same organization or community that ...
Finally I was able to button up my MCPD Enterprise. I have been sitting around with the need to take that one last exam and get everything all buttoned up, but with the amount of work I have been doing over the last year or so it has been virtually impossible to get my certification taken care of. As luck would have it I have run in to a quiet period between contracts and was able to on a whim go to a testing center and get the test over with. I will say that I was not overly impressed with the test. ...