.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Post New Web Links

Test Run: Combinations and Permutations with F#

Posted By:      Posted Date: August 21, 2010    Points: 0   Category :ASP.Net

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.

James McCaffrey

MSDN Magazine May 2010

View Complete Post

More Related Resource Links

Test Run: String Permutations


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

Generate all permutations/combinations of a Regex


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

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.

Abhinav Galodha

Almost Impossible Query -- Combinations and Permutations


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:

8 people
10 meetings<

Test your skill in SQL Server

You will be given a series of 10 SQL Server related questions that are randomly selected. Since the questions are randomly selected, you will receive a different set of questions each time you start a test. At the end of the last question, you will be given your score. You can then start a new test session if you like.

Test Run: Fault Injection Testing with TestApi


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

James McCaffrey

MSDN Magazine August 2010

Test Run: Generating Graphs with WPF


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.

James McCaffrey

MSDN Magazine June 2010

Test Run: Testing Silverlight Apps Using Messages


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.

James McCaffrey

MSDN Magazine March 2010

Test Run: WCF Service Testing with Sockets


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.

James McCaffrey

MSDN Magazine February 2010

Test Run: Web Application HTTP Request-Response Test Automation with JavaScript


Write a simple browser-based request-response test automation using JavaScript that's platform independent and useful when you are working in a highly dynamic environment.

James McCaffrey

MSDN Magazine January 2010

Generation Test: Automated Unit Tests for Legacy Code with Pex


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.

Nikhil Sachdeva

MSDN Magazine December 2009

Test Run: Pairwise Testing with QICT


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.

James McCaffrey

MSDN Magazine December 2009

Test Run: Partial Anitrandom String Testing


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.

James McCaffrey

MSDN Magazine October 2009

Test Run: Request-Response Testing With F#


This month we show you how to use F# to perform HTTP request-response testing for ASP.NET Web applications.

James McCaffrey

MSDN Magazine July 2009

Test-Driven Design: Using Mocks And Tests To Design Role-Based Objects


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.

Isaiah Perumalla

MSDN Magazine June 2009

Test Run: .NET Module Testing with IronPython


This month we demonstrate how easy it is to use IronPython to test .NET-based libraries.

James McCaffrey

MSDN Magazine June 2009

Test Run: Automating UI Tests In WPF Applications


This month we describe techniques for automating UI testing in Windows Presentation Foundation applications.

James McCaffrey

MSDN Magazine March 2009

ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend