Understanding combinations and permutations is a fundamental skill in software testing. We show you how to work with combinations and permutations using code written in the new F# language.
MSDN Magazine May 2010
View Complete Post
The ability to programmatically create and use string permutations is essential in software testing, as James McCaffrey explains.
Dr. James McCaffrey
MSDN Magazine December 2006
MSDN Magazine July 2004
I am writing a code which would produce a list of all possible combinations of a Regex.
For eg if my Regex is [ABC]BD i want all expressions possible for this combination like
CBD to be validated
This is very simple example. My actual regex would include special charcaters,
character classes,repetitions, backreferences, positive & negativeloookaround and all other nitty-gritty of regex.
I know it would not be easy task as for characters like * the list is endless, but is there
a way to limit it to some extent?
I am looking for some code suggestions, api's or any tool for this.
I do use expresso for regular expresssion.
any help will be greatly appreciated.
I have a situation that is very difficult to solve. Given the following tables:
Person -> Person_Shift <- Shift
create table person (id int not null, firstname varchar(32) not null, lastname varchar(32) not null, skill_level int not null)
create table shift (id int not null, shiftname varchar(32) not null, sortkey int not null)
create table person_shift(id int not null, personid int not null, shiftid int not null, shiftdate datetime not null)
The person table has 10,000+ names in it. The shift table currently has 7 shifts (e.g., early morning, morning, early afternoon, afternoon, etc.). The join table includes one record for each shift that a person is available for a given date.
The person table also includes a skill level, 1, 2 or 3.
A "meeting" is a shift on a given day.
The goal is to find the same persons who are available to attend the same set of meetings. The meetings can be spread across several days and shifts, so long as all the people are the same at each meeting.
The inputs are:
# of people (these people must be available for all meetings)
# of meetings
Minimum # of skill level 1 people
Minimum # of skill level 2 people
Minimum # of skill level 3 people
A typical example would be:
Fault injection testing is the process of deliberately inserting an error into an application to determine whether it deals with the error properly. We'll explain how you can introduce faults into .NET applications at run time using the Managed Code Fault Injection APIs of the TestApi library
MSDN Magazine August 2010
A common software-development task is generating a graph from a set of test-related data. But if you're doing it by hand and the underlying data changes frequently, this particular task can become quite tedious. James McCaffrey shows you how to automate the process using Windows Presentation Foundation technology.
MSDN Magazine June 2010
Silverlight greatly simplifies the process of building rich Web applications, and we'll walk through an example of using Messages as a quick method of interactively testing simple Silverlight apps.
MSDN Magazine March 2010
There are many ways to test WCF services, but the socket-based approach is flexible and very useful for security and performance testing. We show you show you how to test a WCF service using a network socket based approach.
MSDN Magazine February 2010
MSDN Magazine January 2010
Creating and maintaining a unit test suite for legacy code can be a challenge. Pex automatically produces a small test suite with high code and assertion coverage.
MSDN Magazine December 2009
In this month's column, James McCaffrey explains exactly what pairwise testing is and provides you with complete C# source code for a production quality pairwise testing tool named QICT.
This column presents an approach to Antirandom (AR) testing the author calls partial AR string testing, which can be used to test a wide range of software systems.
MSDN Magazine October 2009
This month we show you how to use F# to perform HTTP request-response testing for ASP.NET Web applications.
MSDN Magazine July 2009
Use Test-Driven Development with mock objects to design object oriented code in terms of roles and responsibilities, not categorization of objects into class hierarchies.
MSDN Magazine June 2009
This month we demonstrate how easy it is to use IronPython to test .NET-based libraries.
This month we describe techniques for automating UI testing in Windows Presentation Foundation applications.
MSDN Magazine March 2009