Konstantin Vlasenko

My name is Konstantin Vlasenko. I live and work in Saint-Petersburg (Russia).

Hidden table heads feature is the Fitnesse Visual Polymorphism

leave a comment »

What you can see in the Fitnesse User Guide

You can hide the first row of a table. This allows you to write comment tables that just look like ordinary HTML tables.
The complete table still gets executed, the first row is just hidden by a CSS rule.
Precede the first row with a ‘#’.  (KV comment: will be changed to – instead of # in the upcomming Fitnesse releases)

But I want to expand this definition.
You can use Hidden table heads feature to conceal the needless things in your acceptance test script!

Fitnesse Visual Polymorphism

Imagine that you have two scenarios
------------ScenarioLibrary page------------
|scenario|execute and check|command|
|check|cmd|@command|0|
|scenario|execute|command|
|cmd|@command|
------------ScenarioLibrary page------------

You can use them in your test
------------SetUp page------------
-!|execute|
|command|
|cmd /c rd /S /Q "C:\AnyDirectory"|

-!|execute and check|
|command|
|WMIC product where name='My Product'" call Uninstall|
------------test page------------

The first one tries to delet the directory. cmd will return 0 if success and 2 if directory doesn’t exists. So I am not care about the result. Using the execute scenario.
The second performs the product uninstallation. It is critical to know the result (e.g. if this SetUp page will be included into product setup testing suite). So I use the different scenario execute and check in that case.
But all this things (check or not to check) are just the noise in that case. So I am hidding them into scenario and making the Tables Heads hidden.
The final SetUp page will not have any noise.  Just facts:)

command
cmd /c rd /S /Q “C:\AnyDirectory”
command
WMIC product where name=’My Product’” call Uninstall

Written by Konstantin Vlasenko

February 9, 2010 at 14:34

Posted in Fitnesse

Tagged with ,

Scandinavian Defence

leave a comment »

Written by Konstantin Vlasenko

February 8, 2010 at 02:08

Posted in Chess

Immortal Game

leave a comment »

Written by Konstantin Vlasenko

February 8, 2010 at 02:05

Posted in Chess

Tagged with

CHESS KILLER TIPS

leave a comment »

Chess Video Podcast by Alexandra Kosteniuk

http://www.chesskillertips.com/

Written by Konstantin Vlasenko

February 8, 2010 at 01:52

Posted in Chess

Tagged with

chesslecture.com

leave a comment »

http://www.chesslecture.com/

http://www.chesslecture.com/sample.php There is the simple to understand the “The Hook and Ladder Trick”.

Written by Konstantin Vlasenko

February 8, 2010 at 00:50

Posted in Chess

Chess Videos

leave a comment »

http://www.chessvideos.tv/

Diagram Generator Create a diagram of a specific chess position… You can use the diagram generator to create diagrams for your blog or chess site.

Written by Konstantin Vlasenko

February 8, 2010 at 00:31

Posted in Chess

Tagged with

A Time and a Place for Russia

leave a comment »

Written by Konstantin Vlasenko

January 29, 2010 at 23:47

Posted in fine words

Tagged with

Fitnesse: the results for |check not| for BLANK is confusing me

leave a comment »

It is too confusing that the Fitnesse highlight expected [BLANK] in second case.

The right exporting folder

check execute cmd /c dir /B “C:\ExportEmpty” BLANK
check not execute cmd /c dir /B “c:\ExportNotEmpty” [2d1313b9-cfb8-4405-8e5f-91f34b5a1e08 ]

expected [BLANK]

The best way is to say NOT EXPECTED [BLANK]

the script for the page:

|check|execute|cmd /c dir /B “C:\ExportEmpty”|BLANK|
|check not|execute|cmd /c dir /B “c:\ExportNotEmpty”|BLANK|

BTW: Why should I type BLANK for the second scenario? I’ll get the IGNORE result if I left them empty


Written by Konstantin Vlasenko

January 29, 2010 at 12:00

Posted in Fitnesse

Tagged with , ,

The InvalidDatabaseSchema rule in Pre-Upgrade Checker

leave a comment »

The InvalidDatabaseSchema rule in Pre-Upgrade Checker for Windows SharePoint Services 3.0 Service Pack 2 lists the names of the content databases that have a schema that differs from the standard Windows SharePoint Services 3.0 content database schema

http://support.microsoft.com/kb/954772/

Written by Konstantin Vlasenko

January 26, 2010 at 19:32

Schools kill creativity

leave a comment »

Check this out http://www.ted.com/talks/ken_robinson_says_schools_kill_creativity.html

I heard a great story recently — I love telling it — of a little girl who was in a drawing lesson. She was six and she was at the back, drawing, and the teacher said this little girl hardly ever paid attention, and in this drawing lesson she did. The teacher was fascinated and she went over to her and she said, “What are you drawing?” And the girl said, “I’m drawing a picture of God.” And the teacher said, “But nobody knows what God looks like.” And the girl said, “They will in a minute.” – by Ken Robinson

Written by Konstantin Vlasenko

January 24, 2010 at 19:02

Posted in fine words

Tagged with