Monday, October 18, 2010

How Genetic Algorithm can ease your User Test cases (UI Tests)

 Let consider a large application to develop; it is not possible to list the entire exhaustive combination of User Test Cases : You could have millions of possible ways of using your complex application, hence millions of User Test Cases to record and run within the automated Software Factory.

When dealing with large and complex scenarios, Genetic Algorithms are good to find a solution quickly, whereas calculating all possible ways would last more than decades even with the fastest computer.

Let us assume that the red biomorph fractal below is THE best User Test Case that you are looking for, because it covers 100% of the needs (hence you don't have to tests all possible combinations, where many of them would likely to do nearly the same thing), and would guarantee no software regressions over years.

Since you don't know yet the solution, you would try to identify programmatically for exemple 1000 random combinations (24 of them are represented as white biomorph fractals below).
By letting them evolve throw a reproduction process (with various factors such as mutations) during a large number of iterations, this would lead to find a solution within minutes.
This may be not the perfect one, but the closest to the sought solution.
  

"Genetic Algorithm Viewer 1.0", by Jean-Philippe Rennard, is the software above that can demo the principles, based on biomorph fractals : http://www.rennard.org/alife/french/gavintr.html.

This post only shows an example of what could be done; it is up to you to either implement or buy a software that will help you implementing ONLY relevant User Test Cases (hence the minimum required tests), and not a large number of combinations anymore.

Some other links on AI or GA :
http://dotnetkicks.com/csharp/How_to_Create_a_Neural_Network_and_Genetic_Algorithm_in_C_NET
http://www.codeguru.com/Cpp/misc/misc/article.php/c3795
http://www.codeguru.com/cpp/cpp/algorithms/general/article.php/c14825

Tuesday, October 5, 2010

Monitor the code quality over time

Here is a quick post to show an example of a code quality report over time for a CMMI project. The rendering of the graph is done via the FusionCharts Flash library, that is bound to an XML file.
It could be noted that the Flash graph could be rotated around to better see the values.
Anyway, since we are talking of a 3 years report, we are just interested in visualizing the trends, not the exact values.


You can find online examples here : http://www.fusioncharts.com/Gallery/Category.asp?Column3D

Sunday, September 26, 2010

Design Patterns overview

A good web site on this topic : http://www.dofactory.com
You can clic on any of the pattern below to have more details.
Here you can find a example of the 4 types of software architecture : http://dchaffiol.free.fr/info/architecture/art_archi_spheres_g.htm



Creational Patterns
  Creates an instance of several families of classes
  Separates object construction from its representation
  Creates an instance of several derived classes
  A fully initialized instance to be copied or cloned
  A class of which only a single instance can exist

  Structural Patterns
  Match interfaces of different classes
  Bridge
  Separates an object’s interface from its implementation
  A tree structure of simple and composite objects
  Add responsibilities to objects dynamically
  Facade
  A single class that represents an entire subsystem
  A fine-grained instance used for efficient sharing
  Proxy
  An object representing another object

  Behavioral Patterns
  A way of passing a request between a chain of objects
  Encapsulate a command request as an object
  A way to include language elements in a program
  Sequentially access the elements of a collection
  Defines simplified communication between classes
  Capture and restore an object's internal state
  A way of notifying change to a number of classes
  State
  Alter an object's behavior when its state changes
  Encapsulates an algorithm inside a class
  Defer the exact steps of an algorithm to a subclass
  Defines a new operation to a class without change

Tuesday, September 21, 2010

To celebrate our last Sprint

Good things always end... Here is the last time we are using those cards on our project since we are doing the 9th and last Sprint iteration. It'll be a hard one to finalize everything !

Thursday, September 16, 2010

Thursday, September 9, 2010

TFS 2010 : What we cannot copy a build definition !!

UPDATE : Yes we can ... now with the latest TFS PowerTools (Clone Build Definition) :
http://blogs.msdn.com/b/bharry/archive/2010/09/09/sept-2010-tfs-power-tools-release-available.aspx

What !!! After having spent many hours in configuring the best ever unbreakable build with the TFS's Gated Checkin, with lots of Unit tests, Code Coverage options, a nice deployments..., you're telling me that TFS 2010 does not provide any function to copy or backup my Build Definition ???
Because, a very basic modification of the Build Definition done by mistake can breakdown everything !

Well, sorry, there's no such option with Team Explorer. However, here is a way to overcome this missing feature : To copy a build definition, you have to create your own application via the TFS API :


TeamFoundationServer tfs = TeamFoundationServerFactory.GetServer("http://myTFSserver:8080");

as explained here :
http://www.brokenwire.net/bw/Programming/122/how-to-copy-tfs-builddefinitions

NB: Talking about automated Unit Test and Test impact, here is a nice post to explain whar Test impacts are :
http://blogs.msdn.com/b/phuene/archive/2009/12/09/test-impact-with-team-foundation-build-2010.aspx

Saturday, September 4, 2010

A customer's testimonials on an AGILE methodology with TFS 2008's Software Factory

One year after the end of my last projet, here is the project's retrospectives of the French Minister of Youth Affairs and Sports. I was the project manager of the Winwise team implementing AGILE methodology with TFS 2008's Software Factory.

As per today, the customer is highly delighted of this project (the public front end is accessible here), which success is entirely thanks to :

  • the deep involvement of the Minister of Youth Affairs and Sports' staff, that was led by Pascal ADAM and Michèle RUFFELAERE, together with Michaël LABORDE on the complicated Laws and Regulation's side, without counting any extra-hours working hand in hand with with us on this challenging project.
  • the technical and management's skills of the Winwise's experts, the project's Director, the sales representative, and ALTEN's support.

Here is Pascal ADAM's testimonials (original link or the PDF here) :



Here is another one, when I first started agility with "Lyonnaise des eaux" in 2008