Tag | Testing Posts

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 ...
We have started an initiative this year. We call it End2End Automated Testing. The idea is based on a couple of factors. Many times in the past we have not had an easy way to verify our configuration, security and deployment to an environment in an automated way. The second is that regression testing is a very arduous process for our QA staff when it must be completed. How do we give time back to our testers and verify everything in a given environment is correct? With automation of course! So what ...
Every time you bring automation to a place where there was none (to speak of) previously, the reaction is pretty mild and no one seems to care a lot. That is, of course, until you release your first script. I recently did a demo for my boss and his boss, along side one of the manual testing leads. I had built a script that did detailed error message validation (create a set of data, generate error, verify that the error given was the right one, rinse, repeat), but had used reusable components with ...
Introduction In all honesty, this review may be a bit premature. However, I wanted to record my thoughts and see if anyone listening shares them or has a difference of opinion. I've been evaluating the SlickEdit Tools and have come up with a few top picks. Also, I have identified some that make little difference to me. First of all, the Tools are segregated into two products: Editing Toolbox and Versioning Toolbox. I'll review them separately. Editing Toolbox Top Picks: Acronyms - This one is quite ...
Sitting here watching Adrian Wible run the eXtreme Programming Lego game. ~ 40 people have been split into 6 groups, each with a number of cards describing customer wishes and a pile of legos. Pictures at: http://geekswithblogs.net/d... Video : Process shortened for the 1.5 hr meeting. The goal is three iterations. Step 1: Estimation: 10 min - Relative difficulty Step 2: Prioritization: 5 min. - What is the most important Step 3: Signup: 5 min - What to do for the 1st iteration ...
I've turned my hand to a bit of Infrastructure Architecture and lending a hand working out what physical servers would make good candidates for making the transition to virtual. IBM, HP and DELL, to name afew, all offer services to work out what would make good candidates for you. There is also tools that can also help such as the popular PlateSpin's PowerRecon but to be fair these methods only really give potential technical candidates, that’s half the story! What about the business perspective? ...
A good portion of this week was spent recovering some documents that were deleted by a rogue console application (most likely my fault). I wrote a Console Application to combine some document libraries and I spent a good portion of a week testing it. However, I did not really think of enough scenarios, because it obviously did not move the documents properly. Some libraries were moved and others were not. At any rate I practiced my SQL Restoration skills and wrote another two console applications ...
I hosted a BOF session at Tech Ed Developers 2008 on ‘Creating a Culture of Quality’, and one of the topics that came up was unit testing. One developer talked about how she wanted to get unit testing happening at her company, but because they did embedded applications using C++ she wasn’t sure what the options were…and neither did the rest of the group. I checked with some fellow Western Canadian devs to see if they had any ideas and two products seemed to be at the top of the list: CppUnit and ...
The good folks at SlickEdit® hooked me up with a review copy of SlickEdit 2008 Professional, and I gotta tell ya I was pretty surprised. I didn't really know what to expect. I guess I just expected a less feature-rich Visual Studio, but that's definitely not what I found. First of all, I wouldn't consider SlickEdit to be a competitor to Visual Studio. It's more of a multi-purpose polyglot programmer's editor on steroids. First, on install, it asks about your editing environment emulation. This is ...
We had an interesting discussion at work today about the nature of test automation. This discussion stemmed from a need to provide a fast, automated means of generating data to satisfy testing scenarios at my place of employment. Basically, our manual testers generate data necessary for testing every time they want to run a test. In order to complete a short test (<5 minutes), 10 or 15 minutes must be expended. The acceptance criteria for any given test varies greatly from test to test, and often, ...
According to James McGovern, I probably am! Why? Because I don’t code … very often. I don’t sit in an Ivory tower either making up my dictions via, Visio & Powerpoint. I think the key to being a good Architect is taking responsibility for designing a technical solution for business requirement with those who are going to built it, implement it, look after it and use it. Making good technical decisions often means getting your hands dirty and trying afew things out, if that is writing code or ...
General references to Visual Studio Team System http://msdn.microsoft.com/e... -> Entry point for VSTS2008 (including the different editions and TFS) http://msdn.microsoft.com/e... (TFS specific part of previous link) http://blogs.msdn.com/teams... (this is the 9th posting in the series, all of which are very good) http://geekswithblogs.net/j... ...
BradleyB on SL2B2 Installation, WPFDevCon on SL2B2 Docs, Eric Hexter on Testing SL2B2, Brad Abrams on Roles and Auth with VSM, Dan Wahlin on Client Access Policy Server, and Expression Blend Team on DeepZoom Composer goodness. Page Brooks has updated everything to Beta 2, so take a look around out there. From SilverlightCream.com: Upgrading to Silverlight Tools Beta 2 and Visual Studio 2008 SP1 Beta I found this by way of a blog post by Bobbi Perreault, and is an excellent resource to keep at-hand ...
Some of the great and useful tools available at codeplex site for biztalk developers. I listed down few of them here. BizTalk Server 2006 Documenter Creates compiled help files for a given BTS 2006 installation. BizTalk Server Pipeline Component Wizard A project meant to ease to development of pipeline components used within a BizTalk Server environment. Supports both C# and VB.NET BizUnit - Framework for Automated Testing of Distributed Systems BizUnit is a test framework that is intended to test ...
ok.. So Silverlight Beta 2 was released on and it has some great new features. But what is the story about testing...? 1 Jeff Willcox blogged about a small change you will need to make in order to use the existing testing framework. It is essentially adding a cast to the initial startup code for the testing framework. He also posted new C# and VB.net projectand item templates. He also hinted that there will be a new release of the test framework and some samples of integrationwith a Continuous Integration ...
Recently a friend asked me how you might create a Windows Forms application that only allows a single instance per computer. A print driver might make use of this functionality, for example, to launch a print job management dialog whenever a document prints. Never having needed this sort of functionality before, my initial answer wasn't very helpful. But being both curious and disinclined to back down from a technical challenge, I just had to figure this one out. As I was looking for an inter-process ...
This is a summary of the articles that I have written that discuss the Platform Builder command line build tools. Using the Command Line Platform Builder: Build Tools Intro This is an introduction to the articles about using the command line build tools. Platform Builder: Build Tools, Opening a Build Window This discusses ways to open a command windows with the environment set up to build a project. Platform Builder: Using BldDemo This discusses using BldDemo.bat to build a project. Platform Builder: ...
Twitter's instability lately has made the news all over the web. While I love the cute 404 pages and the whale of tale that you get when the servers are too overloaded, I have felt increasingly disconnected from parts of my network because of the problems. On June 1st, a friend invited me to try out a new site: Plurk.com Plurk is based on the same kind of idea as Twitter: Share your status, questions, comments, posts, etc. with friends, fans, and the public. Neither of these ideas are new. In fact, ...
Anyone who has used Platform Builder knows that running Sysgen can take 15 minutes, or even more to build the OS. That kind of delay between changing code and testing can be crippling to your development, and can cost your company hundreds or even thousands of dollars a day in lost productivity. There must be a better way. In fact, there are several options available. The following will discuss several of these options. FAST: Build and Makeimg from the Command Line The option that I use most, primarily ...
Using the VS2008 unit testing framework, if you want to check for an expected exception, sometimes your test will pass because the exception was raised by another line of code - after the line you were specifically trying to test. To resolve this you have to manually check for the expected exception - using a try-catch block. However there is a catch (excuse the pun).... Microsoft.VisualStudio.Test... will not fail when types are different as long as the actual ...
Building a bootloader isn't much different than building a driver or an application. In fact, if you have already built your project more than likely your bootloader has already been built. But what if you want to make a change to the bootloader? Then knowing how to build it, and more important what happens when you build it, will help get from changing code to testing faster. The first step is to find the source code. The source code may be in different places depending on the version of Windows ...
I attended a session (title above) by the famous Doug Seven. Doug is always one of the better speakers out there and he covered how to construct your projects to work with various systems that improve the overall application and approach. Focus was put on unit tests and code coverage and the importance of incorporating these items into your development process. It is surprising to me that this is not yet the norm of application development. Again, I said this in a previous post, but development teams ...
I'm in TechEd at the moment and I am sitting in a presentation on Unit Testing. Unit testing is something we have been doing on my teams for some time now and it is an intricate part of our development process. I am a big believer in continuous integration for development and part of the automatic build process includes a unit test run through the application/component that we are working with. The results of the unit tests are then deployed (automatically as well) to a server and made accessible ...
Jeff Paries with a SL2 Tweemes Client, Tim Heuer on Streaming, Cross-Domain data, VSM, and Skinning, Jesse Liberty on SL2B2 Event Bubbling, Christian Schormann on VSM and Skins, and Jonas Follesø on Unit Testing SL. From SilverlightCream.com: Silverlight Twitter Jeff Paries has a great job.... Look at what he's gone and done now!! .. this is very cool... thanks for sharing Jeff! Silverlight Streaming won’t upload my video! Tim Heuer has 4 things since I posted yesterday! ... this one is on the various ...
UPDATE (6/20/08): If you are at all confused about some of the techniques outlined in the blog posts by Udi and Ayende I discuss below, specifically about their multithreading-capabilities, you might want to check out my future post here. --- One of the first issues I have already found myself having to deal with in my game is the idea of how messages will be sent "from the entity" (since the entity is ultimately in charge of when something happens, and thus must trigger a message being sent), without ...
Exception: System.ObjectDisposedExcept... Cannot access a disposed object. Object name: 'DataContext accessed after Dispose.'. This can occur when using Linq to SQL to retrieve data from a database - and when you try to access data after the data context object has been disposed. More specifically, the exception occurs when trying to access an item that has not yet been retrieved from the database and the data context object has been disposed. This often occurs when using a variable, that was populated ...
I began the third and final day of JAOO Brisbane by arriving late. I had left my name tag at home so I had to go back for it. I was in time for Robert Martin's keynote Clean Code. Uncle Bob is well known for his enthusiastic, entertaining presentation style. I greatly enjoyed his talk, even though it was really just a back-to-basics on writing code. He did a tutorial on advanced design that I missed, but I'm sure it would have been excellent. Next was Jim Webber speaking about distributed programming ...
One of my biggest complaints with VBScript is the lack of inheritance/interfaces. I know, I know...it's a scripting language and I am asking a lot. It wasn't my choice, however, to use this language as the one that drives QTP (and other testing tools). I hear some of you groaning about me preaching objects again, but I don't mind. You go on ahead an groan. :-) My complaint stems from the fact that we cannot inherit and extend objects in VBScript like I would like to be able to do. As I've mentioned ...
I had the opportunity today to write some more complex LINQ queries. First, I started with a simple group by expression allowing me to subtotal some data for a particular key. Certainly I could have done this in the database. Many would argue that that the database is the expert at these sorts of things, so we should let the expert take care of it. I have a couple of reasons for placing the group by in the LINQ query. First, I don't have a lot of control over the data layer. Second, I can unit test ...
The source code is built, the files needed for the OS have been collected in the _FLATRELEASEDIR, so now it is time to create the OS Image or nk.bin. The tool for this is Makeimg.exe. Makeimg uses some other tools to do this including fmerge.exe, res2res.exe and romimage.exe. If I wanted to keep this very simple, I could just tell you to run makeimg from the command line. There are no command line arguments, so this would be done. After running makeimg, you will have the nk.bin that you need for ...
Avoid Much Talk I wrote about Resharper 4 performance improvements in an earlier blog post today showing my VS Color Scheme including use of R# nightly builds. My friend Mohamed Tayseer pointed me out that Resharper 4 BETA was released yesterday. If you already know Resharper, skip the blah blah blah talk and get to the download. Resharper, AKA R#, Who ??? Resharper used to be a must-have add-in for Visual Studio. It completes the features existing in Visual Studio like intellisense (not just smarter ...
If you haven't noticed, I've been playing a LOT with game development. Specifically game development using Microsoft's XNA framework. I love it. It's probably one of my favorite ways to spend my free time. I love to code, I love creating things and making games is just, well, FUN! I'm also fairly active in the XNA community and have been for quite a while. So being actively involved and helping out other struggling game developers, one common theme I hear is, "I can't make my game, I can only do ...
*Moved to: Linked in VSTS GroupIf you are a developer who customises or extends Visual Studio Team System then this LinkedIn group is for you... VSTS DeveloperRead more...Follow my new blog on http://blog.hinshelwood.com ...
You've mastered web forms and controls. You've prototyped a Silverlight 2.0 application. AJAX? You're all over it. But have you really learned how to design a good web page or web site? Steve Krug's "Common Sense Approach to Web Usability" provides surprising and sometimes counterintuitive principles that every good website must follow. Krug preaches the importance of removing clutter in order to make the purpose and functionality of a site (or page) clear--and happily, he practices what he preaches ...
Do you love SnagIt? I do! We can't live without it here at my place. I use it for everything from creating screenshots for books and blog posts to for touching up graphics. In fact, I use it so much that I almost always have it open on more than one machine! If you are a regular reader of my blog, you already knew how much I love SnagIt. What you may not know is how much my husband loves it too. He's used it even longer than I have. He started using it to grab text out of reports on the screen, and ...
Recently, after some analyzing some of the controllers I was building using ASP.NET MVC, I found that my controllers typically have the same pattern. They all have some dependencies injected into them through the constructor, each action calls a method on one of the dependencies (typically using the arguments of the and gets a result back), and depending on the result, an ActionResult is returned. Now, writing the tests wasn't tough. But, I dunno, I guess I'm REALLY lazy. So I started looking today ...
Written by: Michael Stephenson (http://geekswithblogs.net/... Background A few posts ago I had a bit of a whinge about the limitation of a map for a response message in a request response port. The basic problem was I was returning a common schema based message to the port which needed to be mapped to a different format depending on which receive location associated with the port had initiated the process. The send side was fine in that you can send two different input messages which ...
Quote: ...legacy code is simply code without tests. - Working Effectivly with Legacy Code - Micheal Feathers I was discussing testing with a friend the other day, mainly Test Driven Development and we got onto the topic of new code without tests and retrofitting them. The first thing that popped into my head was the above quote and the following: Quote: Code without tests us bad code. It doesn't matter how well written it is; it doesn't matter how pretty or object-oriented or well-encapsulated it ...
I work on a lot of different Windows CE projects. Some of them have a display, while others do not. Sometimes I just have a board laying on my desk with power and a debug serial connection. So I thought it would be handy to have a simple little app that I could use for testing my drivers. Given my constraints, the debug port would be useful for presenting the user interface. Sure I could use a serial driver for this, but would mean using two serial ports, which I don't always have available. Of course ...
Recently, my cubie was testing one of our web apps. She got the following: She wrote up the error and submitted it. It was for a currency amount, and she had put a zero in it. The defect was returned as "works as designed" as the field should never get a zero in it, meaning that the developer decided that a user would never put a zero. He stated it should be closed. She asked me about it. I explained that: 1) A user should almost never see an ugly error like this. It is poor programming that would ...
Last month was a busy month for me. We deployed the first version (beta) of the product I have been working on over the last couple of months. Meeting the deadline with all of the promised features (almost) was critical. However, when you fix the time line and fix the feature set, then something else has got to give. You guessed it, quality. Quality is not just a concern over failures. There is a level of quality in your successes as well. So far, the feedback on the product has been very positive, ...
Recently, we started testing SmarterTools' SmartTrack application to replace our current support system. We were definitely using a early BETA and it had issues, but we knew the product would be in full release soon enough. So if you have tried to use the web interface lately, sorry it was broken. But today is a new day and we have updated the system to the full version of SmartTrack and everything is active and ready to roll. There are tons of new features, but the big one is Online Chat. Please ...
I received a broadcast email today from Xobni announcing that they have released Xobni for Outlook to the masses. You can download it here: http://www.xobni.com/download and read about it here: http://www.nytimes.com/2008... To give you a little understanding of the people behind Xobni, I want to fill you in on my experience. I've had a beta copy of Xobni installed on each of my three PCs. My home PC is runs Vista Ultimate and Office 2007. This PC runs ...
WCF uses by default the DataContractSerializer found in System.Runtime.Serialization namespace to serialize an object to XML and back to an object. This is needed to transfer the data in the object through the communication channel as part of the SOAP packet. The DataContractSerializer supports version tolerance which can be very helpful when versions of WCF Clients are not aligned with the versions of their needed WCF Services. It’s not always possible to upgrade all the clients at once when you ...
You have to love the xml type in SQL Server 2005. Here's a simple way I found to make use of it: You can audit all the object/schema changes to the database with a simple database-level trigger. First, create a very simple table (inside a schema I name 'Audit'): CREATE TABLE [Audit].[Objects]( [EventID] [int] IDENTITY(1,1) NOT NULL, [EventData] [xml] NULL, PRIMARY KEY CLUSTERED ( [EventID] ASC ) WITH (IGNORE_DUP_KEY = OFF) ON [PRIMARY] ) ON [PRIMARY] Then, the trigger: CREATE TRIGGER [Trig_AuditObjects] ...
Like many organizations, we didn't find out about our Accessibility requirements until the application was half done and partly in production. It's one thing to know up front that you will have these requirements and build them into your UI designs. But getting those requirements late in the game has additional challenges. When you find out that Accessibility is needed, the following steps can be taken without any impact to the application from a user's perspective (if done well), but will lay some ...
I am pushing myself down the TDD path. I say pushing because it is definitely a hard row to hoe. I'm not used to the test-first paradigm. I am getting better, but the purpose of this post is to talk about some of the benefits I have reaped from TDD, and help myself (and hopefully others) to learn why test-first development can help you code and your design. Stability Obviously, if you are writing a failing test, writing code to pass the test, confirming this every step of the way and your code coverage ...
Get a count and percentage of how many updates you've had with each twitter tool. Download C# 3.5 WPF Source Code Note: This source code is mostly a quick hack to get the data I wanted. Also, if you run this on your own data, note that you may need to wait a few minutes for results to come back. In testing out various twitter clients, I wanted to get a feel for my personal usage (how much I've used each client), so I decided I'd write some code around it. To begin, here are the results: web, 1770, ...