Tag | Testing Posts

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. ...
BizTalk Test Workshop I’ll be running the first public delivery of the BizTalk Test Workshop I have been creating on the 18-19th of September in Stockholm. It’s a two-day course that covers an introduction to test strategies, and then looks at applying those strategies to a BizTalk project. Unit testing, stress testing, integration testing, functional testing and user acceptance testing are covered. NUnit, VSTS Test, BizUnit and Load Gen will be used as the main testing tools, with InfoPath and Excel ...
Stages of Grief and SharePoint Development I have been teaching SharePoint 2007 (WSS and MOSS) Development courses for over a year now! Both the excellent Ted Pattison materials and the (getting better) Microsoft Official Cirriculum courses surrounding SharePoint. The development model for SharePoint customizations using Visual Studio is.... How can we say? "non optimal". We are coding web pages inside of a class library project. That's right. Just sit back and think about that for a minute or two ...
Little did I realize when I posted a blog entry asking for help on August 12th asking for help that the response would be so awesome! There were so many folks both local and quite far away who one way or another found that entry and helped in some way shape or form whether it was a donation of cash, school supplies, or clothing, thank you so much for everything everyone donated. One of the huge hurdles we faced with the kids is over for now. Getting them geared up for school with clothes, shoes, ...
Once you understand good design and the benefits, you don't go back. One of our projects at work has nearly 800 tests in it (across 5 test projects). The point isn't that we have 100% test coverage (because I doubt we do). The point is that we know how a method behaves when sent empty and null values, and also for nearly every edge case in addition to the happy path. Most of these are 800 tests are logical unit tests. Some are system integration tests (parts of the system working with each other). ...
I'm used to working with StructureMap, and so I do part of my testing by passing in a stub to override the configured behavior by using StructureMap.ObjectFactory.... >(myMockedObject); I looked hard to find a simular behavior for Windsor, and I finally found it. I tried to do: IWindsorContainer container = new WindsorContainer(); BooReader.Read(container, "config.boo"); container.Kernel.AddCompone... Assert.That(container.Resol... ...
Okay, this is not totally my idea. After the yahoo super deal fell through there were lot of pundits predicting Microsoft's next move or acquisition. I am compiling this list that made more sense to me based on my puny little knowledge... FaceBook MySpace SecondLife SalesForce.com Novell Yahoo is so 1990's company. Why would anybody buy them. If you ignore them for another two years or so, there wont be any Yahoo any more (Ofcourse there is a brand name that yahoo carriers, but not worth the money). ...
We began our environment synchronization carefully. We carefully examined the differences between the environments, and documented them. We met with all the stakeholders/owner of the environments and everyone had input into how the synch would affect them and their work. We made adjustments to schedule and timeline to accommodate the disparate needs of the people with interests. Everyone nodded their heads in the same places, and rather than face it with fear, everyone seemed to have a calm confidence ...
Koen Zwikstra updated SLSpy with Reflector, Alan Cobb on sizing the NBCOlympics videos, Page Brooks on a great carousel, Jeff Wilcox with a Unit Testing primer, Jonas Follesø with updated SL/WebCam and Sliding puzzle, Jesse Liberty compares animation types. I've exchanged email with CrocusGirl a couple times about this... she used the Andrea Mosaic tool to create a DeepZoom to celebrate her One year of California adventure. Another great example of this technology... From SilverlightCream.com: Silverlight ...
In PerformancePoint 2007 you have the capability to setup custom properties and pass them into dashboard objects. This is especially useful for simplifying dashboards where you are linking scorecard KPIs to report views. Alyson Powell Erwin outlines how to do this in the PerformancePoint MSDN blog: http://blogs.msdn.com/perfo... This is very handy. By setting up a custom property that contains measure names for ...
I have enlisted to JP Boodhoo's Nothin but .net class in Düsseldorf, Germany from September 22nd to the 26th. To quote JP: "This is a very intense week. Your mind will not have very much in the way of downtime. Days in past courses have gone anywhere from 10 – 20 hours in length!!" He prepared a download of several items to prepare for the course. There's a 30+ minute video where he explains step by step what you should prepare on your PC before starting the class. This includes where to download ...
Recently I pulled a very bad mistake while programming/testing. Here's the description, maybe you'll learn a thing or two. While at work, I created an automated process that would be started when a button on a form is clicked and would then run to dynamically generate numerous text files, build an Excel file from the data in several pre-made text files, and compare that data to database values which would then populate the database. I built the programming and got it running a few times to put the ...
This guide provides information for using Microsoft BizTalk Server 2006 R2 with Microsoft Windows Server 2008 Hyper-V.The emphasis is on BizTalk Server, but the performance evaluation methods and performance testing scenarios are useful for analyzing the performance of virtualized server applications in general. This guidance will be of interest to both the IT Pro and Developer communities. To download a copy of this guide, go to http://go.microsoft.com/fwl... ...
Maybe someone knows a better way to get the device emulator to suspend and resume, but since that wasn't my end goal this is a story of what I did to get the emulator to resume. I am sitting in a hotel room with nothing much to do so I thought it would be a good time to add power management capabilities to my Windows CE: A Stream Interface Driver Shell. I brought a device with me, and I have everything I need to use it, except a cable to connect to the serial debug port which I need. So since I already ...
Always use Nullables for dates at the least. Trust me on this. I dogged Nullables for the longest time because I thought they were buggy, then I realized today when testing that I was using them wrong. Nullables allow you to actually have null values, which for dates is arguably a must. Why? Keep reading... Tip: Never call Nullable.Value. The nullable item will error out if it is a null value. This is where I was going wrong and thought they were buggy. Just call the nullable item and it will return ...
I've been building a handy little requirement importer for Quality Center. It will read a Word doc, and let you specify the paragraph you want to start, and boom! Pumps them in. The API is, of course, is COM-based. I decided to write my app in .Net, and for grins, chose C# as my language. For the most part, it's not been too tough to get it done, and the pain involved using Interop has been worth it given the power .Net puts in your hands. I gutted an old VB6 app I'd written in a hurry during a manual ...
Inversion of Control means that objects get the objects that they need from an outside source. SSRS is just one of the components in the Microsoft Business Intelligence (BI) platform, read more at Influential Leadership. Multithreading comes with a resource and CPU cost in allocating and switching threads if used excessively. In the "Test Driven Testing" phase testers can do efficient testing without any interruptions by frequent defect fixes of the development team, check Web 3.0 and prestigious ...
First of all thanks to all that are providing feedback on the show and suggestions on future shows! So far, we've had several questions/comments about about the intro which have ranged from cool music, where did you get it....to dude...WTF is up with your intro music? :-) Ok, ok...I must come clean here...it's actually all me. Nick, Brett, and I bought some pretty decent USB Mics to record the show with and I was actually testing out all different audio situations that included me talking right into ...
Background (skip if you know Web Application Projects) In VS 2002/2003, the web project model for a website was similar to "class library" projects, where you have a .CSPROJ or .VBPROJ file that keeps track of files "included" in the project, and compiles all the pages and controls code behind to a single assembly under "\bin". Each page/control has an automatically generated .DESIGNER.CS or .DESIGNER.VB file, which contains objects mapping to the server controls in the page/control markup (the generation ...
Today I'd like to talk a bit about requirements and end users as its all related to the software development lifecycle. So first, the stages. Over the years there have been many different stages defined, at varying degrees of granularity. Wikipedia has a good definition. As developers, we tend to hang out in varying stages of this lifecycle, depending on the size of our company (for me, I hang out in specification, architecture, implementation, and maintenance -- we have a relatvely small company) ...
So XNA epic failed/pwned me last night. So I wrote my great Pong game and am building an installer (which is essentially an HTML page with links to the other installs) when I learn, via Creators.XNA, that since I use the GUID namespace to create new saved games the player is required to install Visual C# Express 2005 or have full VS 2005 pre-installed. This means, over the 3-4 already required redistributable packages, you also need to install 2 quite large components that basically install a whole ...
So I stumbled upon a cool new utility for web testing called Browser Shots. Browser shots will provide screen shots of the URL you send it in many different browsers. The full list of browsers can be seen here: As you can see from the image, you have the ability to select from multiple OS's and their browsers as well as set the Screen Size, Color Depth, whether Javascript is off or on, whether Java is off or on, and whether Flash is installed. This application is free, however you do have to wait ...
In the application I've been working on, we have the requirement to handle unique constraint errors gracefully. It wasn't really hard, I just had to check for OracleException.Code == 1. The trick was the testing. Testing a unique constraint error was not a problem. The issue is verifying that other exceptions are bubbled up properly. The basic exception handling code is like this: 1 protected bool HasUniqueConstraintError( Action databaseAction ) 2 { 3 try 4 { 5 databaseAction(); 6 return false; ...
Article Source: http://geekswithblogs.net/m... I have often come across situations where I have been asked to look at a process (usually in BizTalk) where it isn’t quite running as the customer would like. I have decided to start a series of posts which I will call refactoring tales. These posts will discuss a the process implementation and the problems encountered along with it. I will then discuss the approach taken to improve things and what the benefits were. Background This particular ...
Paul Homan recently commented on Green EA which set my mind thinking ... 'being more Green' is a strategic ambition and what is the process and practice for generating strategic change? Enterprise Architecture! When EA's are struggling to find some ROI reason to justify their existence in the economic down-turn amazingly one of the main ROI reasons is one of the biggest issues of our time as the 'Return' doesn't literally mean monetary and also doesn't necessarily mean more? ... it can also mean ...
The last time I wrote about the Outlook Connector it was to talk about the lack of Calendar synchronization and the fact that a new version of the connector was in internal Microsoft testing. I am happy to announce that the new version is out of internal testing and is available as a public beta. This new version synchronizes with your Windows Live Hotmail or Microsoft Office Live Mail accounts, including e-mail, contacts and calendars. I installed the new version and so far it works great. It remembered ...
I've been trying to get NCover to run successfully on Vista Ultimate x64 on and off for the last month. We're still using one of the free versions of NCover available from here, so there is no built-in x64 support. I came across this post today that mentioned using corflags to set the 32BIT flag in both NCover and your testing application (the post is describes using NUnit, but this worked for me with MBUnit as well). Those changes got me past the Profiled process terminated. Profiler connection ...
Employee Info Starter Kit is an asp.net starter kit, which demonstrates the use of simple CRUD operations for maintaining a company's employee information. It has been developed by me as a guideline for building enterprise level projects. In last few months this starter kit placed in the top chart at code.msdn.microsoft.com for several times regarding the popularity. A very exciting news for all of Employee Info Starter Kit fans is yesterday this starter kit has been placed in the front page of Official ...
Testing the Casino The July meeting of the Roanoke Valley .NET User Group was one of the best ever! During the summer months, user group attendance is usually low. Therefore, we try to have meetings that are a little less formal and require less preparation for the presenter. This July we not only had a HIGH ATTENDANCE but we had 100% MEMBER PARTICIPATION during the meeting. Here's the formula: Take the Black Jack Starter Kit Add Bugs Deliver a brief presentation on Unit Testing in Visual Studio ...
On one of the projects im associated with we have recently upgraded from BizTalk 2006 to BizTalk 2006 R2 for our next release. In doing this we needed to upgrade our development environment and a number of testing environments. Fortunately the testing envronments are not managed by our team so we didnt need to have too much involvement in this other than providing guidance and support. In the development environment we needed to upgrade a number of developer machines and also some build servers. ...
VMLogix LabManager is in same space as VMware Lab Manager what I reviewed recently. However, its key differentiators is around automation – enabling developers, testers and IT Pro staff to entirely automate the process of setting up synchronized multi-machine deployment (including the software stacks in the virtual machines) no matter what virtualisation technology. Yes, VMLogix LabManager is virtualisation platform agnostic! So if you decided on VMware, Hyper-V or Citrix you will still be able to ...
Vmware currently is going through the wars. A change of CEO, a plunging share-price and a competitor getting alot of attention with their new product, that being Microsoft with Hyper-V. However, I just don't get it!? ESX Enterprise is still out in front in terms of features and pricing is very competitive. Any organisation performing their own unbiased product comparison evaluations is going to be hard pushed to discount Vmware's flagship product. The killer feature for many is ofcourse Vmotion that ...
The Roanoke Valley .NET User Group held a monthly meeting tonight. The topic was Unit Testing with Visual Studio 2008. It was arguably one of the better meetings we have held. Even though I have been using Unit Testing for years (starting with JUnit forever ago). Although I feel that I perform unit testing well enough, I am amazed and how much I can learn in just a few hours by collaborating and interacting with others. It seems that over the past 7 years or so I have performed a significant amount ...
Today I found the following announcement at the ntdebug blog. Microsoft has released a windows internal exam, targeted for the IT Pro and Developers that need to know the internals. seems to me it is definatly a developer exam, and also good to know for the IT Pro that do a lot of troubleshooting/debugging. For myself I'm considering it, but it seems a tough one and am not sure if I'm already prepared enough to take it. At least for everyone that would like to take the exam here is the beta code ...
In the Agile thought-space, Big Up Front Design (BFUD) is a four letter word. There is a reason for this. Many times people who envision projects (usually the guy with the biggest wallet unfortunately) don't realize that they don't know everything. More to the point, they don't know how little they actually know about the end user. So they envision the initial requirements for the system, and they boil them down into finer and finer grained detail, until they have something that is implementable. ...
I worked last night on implementing loads of new audio into Pong. My audio engineer really busted his stuff to push out loads of new songs/sounds to put in there. Previously, there was only 1 sounds, the main menu theme. Now we have a main menu theme, a garage concept theme, paddle sounds, score sounds, and hover/click sounds. I have to work on 2 things yet that are quite core to the gameplay and then it is all attractive items like tutorial images and unlockable items. I'm hoping on finishing this ...
I found this great article that tells you how to do testing for WCF services exposed as web services, especially REST services (like the ones we create in my company for the project I work on now). What’s the problem ? Typically, for HTTP GET services, you can just put a URL that matches the URI template of the service (the template of the URLs that call the service) in the browser, and simply see what comes back in the browser itself However, when you want to test a service with other HTTP verbs ...
“Foundations of Programming, Building Better Software” is a new eBook by Karl Seguin. The book does not say in its introduction that it’s all ALT.NET-ish, it starts by introducing what ALT.NET is, it's goals etc, afterwards, all the topics the book covers are inspired by ALT>NET frequent topics. This includes Domain Driven Design (DDD), Dependency Injection (DI), Object Relational Mapping (ORMs), Mocking, etc… Here’s what Channel9 had to say about it (which is how I originally found it too): Karl ...
I’ve been spending the better part of two days doing this same process over and over. It doesn’t feel like I’m testing anything of value. I am not doing it in the C# 3.0ish way, but it is better to explain it that way. I have a class and a façade (MyFacade) that I want to extend and test. class Foo { public string Name { get; set; }}class MyFacade { public IMyDependency Depend { get; set; }}interface IMyDependency { IList<Foo> GetAllFoos();} So I write my test first like a good boy person should. ...
My earlier post on the Null Object pattern led to a few critiques about the fact that I was presenting an extension method to do what is essentially a very simple logical test, and, as a result, doesn’t provide much value. For reference, here is the original extension method from that post public static class NullObjectExtenstions { public static bool IsNull(this object source) { return (source == null); } } Yes, this is an extremely simple method and performs a very basic logical test. However, ...
It is a well-known principle of software design to have minimal coupling between abstractions. Twenty years ago, this dialogue would have not made sense to me. Although, object-Oriented Reengineering remains an interesting research field with lots of problems to be solved and with plenty of possibilities to interact with other research communities (Agreeable Concatenation looks at this topic in a different way). In spite of this, to be fair, this story is similar to the one told when components first ...
I did so much work on Pong this last weekend I'm pretty sure I'll finish it much earlier than anticipated (assuming by earlier you take into account the multiple months where the project was on hold and I wasn't even working with XNA). Just because I feel my blog is such a big deal, I'm not going to release any of the new features yet :p Although, once I get a bit more done I'm planning on uploading a slew of photos to have people let me know what colors I should change (granted my programmer art ...
How embarassing is it when your own game starts kicking your ass? Especially when the AI isn't that great. Pong is getting super fun to play now though. Maybe it's just because I'm making it, but there's so much incentive to get certain things and when the computer beats you and you don't get them it gets frustrating to play over and over. I would make a bad tester. There are loads of items I got working tonight, in fact I finished one major additive design element of the 4 main that were left. I'm ...
Here's a little method I came up with recently to test the execution of events. You may not ever need to test to see that an event fires, because you have some other state that you can check. However, that is not always the case. Here is how I approached it using the unit testing provided with the developer's team editon of Visual Studio. The first thing I did was add a wait handle object inside the definition of my unit test class. Specifically, I chose a ManualResetEvent for the most control, but ...
How about doing a full regression of the system under development every ten minutes? Second Day Automation Testing One of the things I neglected to mention (on purpose) in my End2End post the other day was that you also test for the second day. In this test you are sending in new items and updating some existing items. You also leave some of the items from the first day completely alone to see what happens to them. This is done in the same way as the first, except you look for a second input file ...
I have been really busy between starting as a Principal Consultant for Headspring Systems and a long awaited vacation. I am justcatching up on some blog posts.My Silverlight Unit Testing session at the Austin Code Camp 2008 went really well. The source code and presentation is available for download here.I got some great feedback and look forward to being able to speak on the topic some more! I wanted to formally thank John Teague for all of his hard work organizing the code camp. With a new baby ...
I have started using Visual Studio Team System (VSTS) 2008, recently. Previously I worked with Visual Studio 2005. As a matter of fact I had to use lots of external tools to perform and speedup my development process. However, while working with VSTS 2008, it's very exciting for me that, I found replacements for most of the external tools there. Here are 10 tools which I left after using VSTS 2008: 1. Database Schema Compare External tool: Redgate SQL Compare VSTS 2008 tool: Menu -> Data -> ...
While the deployment we were assisting with today was maybe not that large even by local standards the issue was something that comes up on a some what regular basis. A customer wants to have a number of Thin Clients imaged to their specifications and then drop-shipped to various locations ready to go. Part of this involves creating and applying Asset Tags to the devices – a small thing to be sure – but for the poor folks in charge of keeping track of the devices this was vital. The issue was that ...
Jonathan Starr joined in the "to var or not to var" discussion that occurred recently with his post "Code Redundancy Is NOT Necessarily Bad". No, I'm not jumping into the ring with this whole var thing. Not much anyway. Ok, maybe a bit at the end, it's all Jon's fault, the text box on his comment section is too small, so I made a post instead, and that lead to me thinking harder about the subject, and things kinda' just took off from there :P In his first post, which I've linked to, he declared: ...
As I've been helping out with VMware I wanted to consider the old question of whether developers really could work inside virtual environments? As we know virtual environments can help maximise under utilised resources, CPU, RAM, diskspace and save on space, power, HVAC and TCO with centralised support and maintenance. Another main advantage of virtualised environments that is particularly attract to many developers is the ability to remote work which is a requirement that has become far more common ...