Tag | Testing Posts

Testing an application is not what most people consider fun and the number of situation that need to be tested seems to grow exponentially when building mobile apps. That is why I found the topic of this session interesting. When I found out that the speaker, Francis Cheung, was from the Patterns and Practices group I knew I was in the right place. I have admired that team since I first met Ron Jacobs around 2001. So what did Francis have to offer? He started off in a rather confusing who’s on first ...
Good things are hard to kill. One of the most useful predefined compiler macros in C/C++ were __FILE__ and __LINE__ which do expand to the compilation units file name and line number where this value is encountered by the compiler. After 4.5 versions of .NET we are on par with C/C++ again. It is of course not a simple compiler expandable macro it is an attribute but it does serve exactly the same purpose. Now we do get CallerLineNumberAttribute == __LINE__ CallerFilePathAttribute == __FILE__ CallerMemberNameAttribute ...
My most recent project has been to migrate a bunch of sites from WSS 3.0 (SharePoint 2007) to SharePoint Server 2010. The users are currently working with WSS 3.0 and Office 2003, so the new ribbon based UI in 2010 will be completely new. My client wants to avoid the new SharePoint 2010 look and feel until they’ve had time to train their users, so we’ve been testing the upgrades by keeping them with the 2007 user interface. Permission to perform the Visual Upgrade One of the first things we noticed ...
At http://ferruh.mavituna.com/sql-injection-cheatsheet-oku/ there is information on SQL Injection attack on a variety of databases.

At http://labs.portcullis.co.uk/application/bsql-hacker/ there is a tool for testing for SQL Injection vulnerability.
What is ALMing in Hinglish => Introduction ????? ?????? ??? ?????? ????, ?????? ??????? ?? ?????? ?????? ?? ????? ?????? ?????? 8 ?????? ?????? ??????????? ?? ?????? ???????? ?? ???? ???. ??? ???? ???????????? ????? ??????? 2011 ?? ?????? ?? ?? ???? ????? ?????? 8 ?????? ?????? ??????????? ?? ?????? ???????? ??. ALMing in Hinglish–Windows 8 Metro Style App manual testing using MTM11 In this second in the series of videos I bring to you Shubhra Maji who is a Program Manager on the Visual Studio ...
Hey everyone, I just discovered this great post yesterday that shows how to have msbuild build projects in parallel Basically all you need to do is… Read more at http://blog.danskingdom.com... ...
We are almost done everything about the WCF transport extension over the message bus, which makes our services can be scaled out by introducing more instances over machines and servers. We had finished the structure of our transport extension and implemented the request reply mode in the 2nd post, the datagram and duplex mode in the 4th and 5th post. As I have said at the end of the 5th post, currently we can use our transport extension. But there still something left. Although are not that major ...
Creating the ProjectWe shall start with creating the project. In Flash Builder go to File > New > Flex Mobile Project and name it "TweetDeck" > Finish. For the template select the second one : View-Based Application. Flash Builder will create a new View named "TweetDeckHomeView.mxml" which will be the first one in our Project. Its in this View that the work will be done.Placing the elementsBefore we see every bit of the interface in detail, we will make a "skeleton" of our View. Here is ...
Introduction I’ll be presenting a session at Sweden Windows Azure Group (SWAG) on Monday, as well as presenting on the Windows Azure Service Bus at various other events. I thought it would be fun to look at implementing some of the Enterprise Integration Patterns using the brokered messaging capabilities. I’ll use this article in the next release of Windows Azure Service Bus Developer Guide, and it will probably end up as a “challenge lab” for my Service Bus course. As a long-time BizTalk developer ...
Article Source: http://geekswithblogs.net/c... BizUnit is defined as a "Framework for Automated Testing of Distributed Systems." I've never seen a catchy label to describe what type of tests we create using this framework. They are not really "Unit Tests" that's for sure. "Integration Tests" might be a good definition. However, I want a label that clearly separates them from the manual "System Integration Testing" phase of a project where real instances of the integrated systems are used. ...
Shims help when adding semantic tags to older IE browsers, but there is a huge range of other new HTML5 features that having varying support on browsers. Polyfills are the tool to work with many of these new features. Polyfills are JavaScript code and/or browser plug-ins that can provide older or less featured browsers with API support for recent browser advances. The best polyfills will detect the whether the current browser has native support for a given feature, and only adds the functionality ...
One of the earliest lessons I was taught in Enterprise development was "always program against an interface". This was back in the VB6 days and I quickly learned that no code would be allowed to move to the QA server unless my business objects and data access objects each are defined as an interface and have a matching implementation class. Why? "It's more reusable" was one answer. "It doesn't tie you to a specific implementation" a slightly more knowing answer. And let's not forget the discussion ...
Testing for ModelState.IsValid when unit testing your controller is not straightforward, since the Model Binding is responsible for validating you model. But Model Binding happens in OnActionExecuted filter (and NOT when you call your controller Action method). That means in your test context, Model Binding will not happen when you call your action method and ModelState.IsValid will always be true. But thanksfully, there is a solution below If we have the following simplistic model : public class ...
Continuing my series of lessons learnt from practical experiance...

For some time my development PC has been running slow when acessing certain web sites such as Hotmail, yet when I used my wife's PC, same site performed OK. The problem I eventually tracked down to an HTML testing add-on, turned it off, restarted Firefox and then Firefox performance improved dramaticly. One particular area of improvement was that Silverlight no longer crashes when uploading a file to Hotmail.
What is ALMing in Hinglish => Introduction ???? ?????? ??? ???????? ???? ?? ????? ?????? ???????? ??????? ?? ???? ???. ???????? ???? ??????? ???????? ??????? ???? ?? ?? ???? ???, ?? ???????? ??????? ?? ???????????? ????? ??????? 2011 ?? ?????? ?? ?? ???? ?????. In this first in the series of videos I interview Nivedita Bawa who is a Program Manager on the Visual Studio team. Nivedita wonderfully explains what exploratory testing is, what are it’s advantages, why people refrain from using it and ...
Last week I was asked to mask or obfuscate a large volume of data residing in a production database for our software quality assurance team to use in testing some functionality. The data resided in various tables and in several columns per table. Yet, this procedure would need to be done over and over again as the data gets depleted. Yet, the masking supposed to be hidden from the QA people and centrally controlled. I proposed to use SSIS. The next day I did a web scan to just find out that noting ...
I have two Great Plains databases, let's call them DB1A and DB1B, that are schematically identical and the data is 99% identical but DB1B has a tiny bit more data. I'm trying to optimize a very complex query that uses views nested in views and is way too long to post all of here. The query was averaging 1 min 43 sec before I started. I noticed that all of the tables involved were heaps (Microsoft's fault, not mine) so I started converting them to clustered one by one, checking the plans and parallelism ...
In this blog post I intend to capture some thoughts on code optimization in general and on how the new version of RedGate's ANTs Performance Profiler can be used to "optimize optimization". As developer's trying first to drive business value, many latch onto the mantra "Don't optimize too early". As with many axiom's, the spirit is right on - if you allow solving the business problem to wait while you shave milliseconds off of a process that takes minutes or you have found the best memory management ...
Occasionally I run into a problem difficult to reproduce in that it takes a laborious amount of tinkering. Sometimes I’ve gone through the work of plugging away at the user interface or forcefully moving the current statement manually around if statements. In these situations, I become very attached to my debugging session (no pun intended). I am secure in my nerdiness enough to admit that there have been instances where I have changed code for testing purposes and forgotten to revert those changes ...
I've been reflecting on some of the occasions over the years where I have had to step into projects and get them back on track. I've had these kind of situations in different fashions such as a customer I work with has asked me to move to another project because they were having problems or a new client who has contacted me specifically because they have ran into difficulties on their project and need some help. I tend to find that these kind of projects fall into two types. The first is where the ...
Today's $10 Deal of the day from APress at http://www.apress.com/97814... is Design Driven Testing"Design Driven Testing brings sanity back to software development by restoring the concept of using testing to verify a design instead of pretending that unit tests are a replacement for design" This is a book that all J*** developers should read from cover to cover. I look forward to C# and VB.NET versions. There is a tendency in software development to go to extremes. This book helps to correct ...
Having written an extension method to create an instance from a Type and been a bit underwhelmed by its performance, I looked into exactly what was happening and have now got it working much, much faster.To recap, the problem with the first version of this method is that it cached the Funcs it created with all their argument types as object, which meant they had to be cast every time the Func was invoked. This can be seen in all the Convert calls in Visual Studio's expression visualiser: It turned ...
What is Model? A model can be considered as a container that facilitates presentation view, behavior and/or persisting data to/from data source (i.e. database etc). Besides the data container elements, a model may or may not contain behavior (i.e. logic), depending on design context of corresponding architecture. While the term “Model” is frequently discussed and used in Model-View-Controller pattern context, it is one of most important consideration in current world of software architecture. Download ...
If you're like me and are using MVVMLight to build Windows Phone apps, you probably want to unit test your ViewModels as well. One of the benefits of the MVVM pattern is the separation of concerns between the View (page holding the xaml layout and bindings) and the ViewModel which holds the data to be bound. This allows the ViewModel to be easily testable, or so they say. In the end, it is quite difficult to find some useable tutorial doing exactly that. To the point you might ask yourself : " do ...
Ive recently really seen some of the benefits in action from the work we have been doing to introduce Behaviour Driven Development techniques into our BizTalk development process.A couple of months ago one of the members of our team was unavailable and he was the expert with one of the BizTalk Applications we had developed. The team was small and we have a lot of processes and this particular application was quite complex and no one had the level of experience that this team member had with the business ...
I've recently migrated over to 2010 -- this is to say that I've recently started working at a company with an enterprise level 2010 SharePoint instance.As I was doing to customer requirement - content type-architecture-alignment and testing last week, I noticed that there are various SharePoint site columns that can't be modified and / or removed from (even) a custom list once they've been added.I did quick internet search and wasn't able to find anything riveting.Anyone know what the scoop is on ...
Intuit Partner Platform and Data Access I’m going to make some assumptions that will cover a lot of folks developing applications to work with QuickBooks. 1. You are running a copy of QuickBooks on your development machine. 2. You are running Visual Studio 2010 as your development environment of choice. 3. You have some flavor of Microsoft LightSwitch installed. 4. You want to access QuickBooks data on your machine to USE LightSwitch. Well now you have an option. Head on over to http://www.rssbus.com ...
Recently someone was showing me WCFStorm for testing WCF services, which is very simple to use.However, SOAPUI certainly has a lot of power.I needed to add an image to send to a service and noticed that referenceshttp://www.soapui... My XML ended up looking like this:<soapenv:Envelope xmlns:soapenv="http://schem... xmlns:ubox="UBoxMobileServi... xmlns:ubox1="UBoxMobile.Dat... <soapenv:Header/> ...
Its been a few weeks since I talked about my Windows Phone project. I bunch of things have happened during this time. I finished my primary requirements and began paper mock-ups of the screens. I say paper, but its really PowerPoint. I have done this technique for Android applications and found it very helpful. I also want to take this time to thank Michael Crump for assisting me with these mock-ups. He has given me some valued advice and my next revision of this mock-up will have additional screens. ...
Architecture of PeopleSoft Adapter: The BizTalk PeopleSoft Adapter is based on the BizTalk Server Adapter Framework. More info: How the Adapter Is Designed: The Adapter Framework. The PeopleSoft adapter basically communicates with the PeopleSoft Component Interfaces via the PeopleSoft JOLT protocol (over TCP/IP). The adapter communicates with PeopleSoft system by receiving a XML message which is later encapsulated into a SOAP request using the PeopleSoft psjoa classes. With this connection we can ...
As software creators we don't get to decide what version of our tools / libraries that people use. If we try to force them, our users will go somewhere else. Update: What Type of Software This Applies To This post talks of tools, applications and libraries. Things that end up in the users hands. This does not apply to SaaS or websites. These do not end up in the hands of the users in the same sense. For those of you who immediately think of Chrome or Firefox, which are applications that end up in ...
I’ve been testing\evaluating ComponentOne’s Studio for ASP.NET Wijmo suite for an MVC 3 project and I’m quickly becoming a fan! This product has so many things going for it that I’m not sure where to start. I’m going to focus on the Wijmo components, but the suite also contains a set of controls for ASP.NET WebForms development. If the Webform controls are as good as the MVC controls, they’re worth a look. There are two versions of the Wijmo components. An open source version containing 30 widgets ...
This post is an example of how to write a WCF Service using a class. The example uses Visual Studio 2010, written in C#, SQL Server 2008 and hosted in IIS. So lets have at it. The table is pretty simple just three columns, an TestID (int), Value1 (varchar(50)) and Value2 (varchar(50)). The stored procedure used will return one record from the table using the TestID as a parameter. Table SQL: CREATE TABLE [dbo].[Table_1]( [TestID] [int] IDENTITY(1,1) NOT NULL, [Value1] [varchar](50) NOT NULL, [Value2] ...
I thought it would be interesting to blog out the evolution of our story cards. Several months ago I began work at a new organization that was implementing a variation of scrum. The used the typical post-it notes for stories. While the post-it notes were serving their purpose, there were a few area’s that we were having issues with: Some of the issues included the following: The post-it notes did not have a great stick quality. This meant that anything older than a few weeks was falling by the wayside ...
In a previous post I talked about using the JSON to LINQ features of JSON.NET. Thanks to Bil Simser I was able to do some testing of the deserialization capabilities of this library. The key was his hint to leverage the json2csharp web site. Below is the C# representation of the search results for a Twitter query created by putting an example of the search result into this site. public class Url{ public string url { get; set; } public string expanded_url { get; set; } public string display_url { ...
If you are familiar with scrum – then I recommend that you give the scrum guide a read. This documents the scrum framework and is maintained by Scrum’s creators, Ken Schwaber and Jeff Sutherland. While reading through the latest revision of it (on page 6) it has a section that specifies the characteristics of the development team. One sentence that stood out was the following “Scrum recognizes no titles for Development Team members other than Developer, regardless of the work being performed by the ...
I live in a world of continuous integration servers, extensive unit, integration & regression tests and a whole bunch of other checks and balances to insure the quality of the systems we develop. I live in this world because I know things can go wrong and I want to have a safety net to make sure I am not going to mess things up. I didn’t always have these checks in place – I remember the cowboy days where we would click build, if it compiled we were good to go and would release to the world. ...
I’ve used the platform for ClearQuest migrations to TFS and Subversion migrations to TFS. The setup for testing the configuration can be tricky to ensure you’re starting again from a blank slate. Problem I was puzzled after running a number of test migrations to find that no source code would be migrated for some team projects, but not others. I was starting with a new migration configuration, new destination team project and even a re-install of the platform and the SQL Server DB for the platform. ...
A little more than three months ago, Microsoft hosted the //build/ conference at which they unveiled the upcoming version of Windows (commonly called Windows 8, though I don’t know if the marketing folks have accepted the fact that that is the name most of us are expecting for it yet). They released to the developer world a build of it called the Windows Developer Preview (and Windows Server Developer Preview) along with various tools for creating the new “Metro style” apps. I wasn’t able to make ...
In the team that I have been working with lately they use NDBUnit to control the test database state for Integration Tests. Today I thought I would blog briefly on one of the issues we had and how we are going to go forward in the future in structuring our solution and working with NDBUnit. Let me say upfront that I am no expert with NDBUnit, so if you are an expert with this tool, and you can see glaring mistakes in this post, add a comment (I would appreciate that). That said, let me highlight ...
I'm a big believer in the benefits of having automated tests live with your code. I'm not an aspirant to Red-Green-Refactor Nirvana, but I believe there is a huge value to be gained by taking the code from Button1_Click in the only Windows Form application you've ever written and placing it instead into a method that can be used by a unit test framework. Some of the benefits that I glean from this include my test being preserved past the initial implementation (when you write the next feature of ...
At http://blogs.msdn.com/b/wltester/archive/2011/12/13/just-because-you-can-test-it-doesn-t-mean-you-should.aspx there is a very interesting article with the title "Just because you can test it doesn’t mean you should"

If you involved in testing or writing code for tests, this is an article you should read.
Welcome to the hidden treasure of “MTM.config.exe” Navigate to “C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\IDE” and open the 1. Can I change the number of Action Recording steps selected when a Bug is created? When you are exploratory testing using Microsoft Test Manager or performing a feedback session using Feedback Manager and decide to raise a bug or create a test case, the last 4*10 Action recordings are selected by default. You can change the number of action recordings selected ...
PrairieDevCon is a great conference hosted in Canada a few times a year. For the first time it’s coming to Calgary in March and I couldn’t be more excited. I’ve participated as a speaker in every PrDC to date (2 in Regina, 1 in Winnipeg), and that streak will continue into Calgary. In addition to the 2 conference sessions I’ll be doing: Why do we Suck at Estimating? And How to Get Better Evolve Your Code: Fundamental Design Principles I’m also doing a full day Pre-Con Workshop on TFS Build. I plan ...
Latest Blog is up at WindowsDevNews, testing the new site and making headway.

Read the post over there at:

http://www.windowsdevnews.com/Blogs.aspx?ID=10

Thanks!

-Dave
Article Source: http://geekswithblogs.net/c... TODO's in code should only be used for a short period of time to remind you that something needs to be done. They should be addressed as soon as possible. In order to know who owns a TODO task and how long it’s been outstanding, my company uses the following formatting standard: Format: // TODO : Owner Initials – Date Created – Description of task. Sample: // TODO : CM – 2011\11\22 – Move this class to a reusable location. Using this pattern makes ...
Over the next few weeks, we'll be performing experiments on SmartAssembly to confirm or refute various hypotheses we have about how people use the product, what is stopping them from using it to its full extent, and what we can change to make it more useful and easier to use. Some of these experiments can be done within the team, some within Red Gate, and some need to be done on external users. External testing Some external testing can be done by standard usability tests and surveys, however, there ...
Now that we have shown the EDMX with XPO/XAF and how use SpecFlow and BDD to run EasyTest scripts, let’s put it all together and show the evolution of a project using all the tools combined. I have a simple project that I use to track my priorities throughout the day. It uses some of Stephen Covey’s principles from The 7 Habits of Highly Effective People. The idea is to write down all your priorities the night before and rank them. This way when you get started tomorrow you will have your list of ...
Updated 29th June 2013: Microsoft is now previewing Load Test Service in TFS Service. Please check out more on the official offering by navigating to http://aka.ms/loadtfs Azure is fascinating, but even more fascinating is the marriage of Azure and TFS! Introduction Recently a client I worked for had 2 major businesses critical applications being delivered, with very little time budgeted for Performance testing, we immediately hit a bottleneck when the performance testing phase started, and the in ...