Hello! Blog is just starting!
Keep your ear to the ground!
New posts are coming!

4th FEBRUARY 2015

Most common testing issues

Doesn’t matter it’s GUI input field or command line parameter. There are some basic criteria you may take into consideration before you push your code to repository.

Value ranges

Often problem may be value range mismatch between input validation and database. Letting user enter large integer number while database stores only tinyint (0 to 255). Or designing currency input  where negative value is enabled by default but not desired in the business case. This applies to string length as well.

Example: donation amount field where user can enter negative value.

Interval as an input

When this is solved by implementation of two input parameters/fields (from and to) you may meet following problems:

Usually value ‚from’ is expected to be lower (or equal) then value ‚to’.

Example: in most implementation attempts searching by (date > 01.01.2015 AND date < 01.01.2014) is not desired but returns no result letting user peacefully persist in error.

Moreover, lack of validation may result in serious business damage if the query does return a result (in meaning:  from -∞ to 01.01.2014 and from 01.01.2015 to ∞) but user won’t be aware of mistake he did.

Intervals – open or closed

Consider open and close interval issue. Depending on business case it may be desired to use one of them.

GUI – Tab order

There is tab order! Yes, some users does use it! Please note that every time you add new input field or just reorganize them tab order won’t change automatically. It’s really annoying when you tab randomly over all window’s controls just because somebody forgot that. And in fact, it looks a bit unprofessional when you jump from the oldest to the newest control revealing design history of the window.

20th SEPTEMBER 2014

Regular Expressions Online Tester –

Do you know ?

I found this wonderful regular expressions tester with explanation and help last week. It provides quick and clear regex pattern test before implementation and deployment. Let’s have a look!


Long queries and timeout

By default regular expressions execution time is limited to 2000 ms, which can be easily increased in settings menu in the right-top window corner

C# modifiers

As regular expressions may be used in C# as well, however modifiers usage may be a bit confusing to programmers who are not familiar to regex in C#. RegexOptions enum provides most of necessary modifiers. Ungreedy modifier is missing but may be easily substituted by proper using of .*? and .* kind of patterns. Here is a sample usage of regular expressions in C# with modifiers:

As well, inline modifiers can be used. Here is a case insensitive example: