2009. augusztus 31., hétfő

Pink sheets (for English scroll down)

Nem rég kezdtünk új sprintet, épp a babzsákomban fészkelődtem, amikor megakadt a szemem a fali táblánkon, ahova felragasztjuk a projekt-cetliket. Itt van három féle szín, amiből lehet válogatni, ahol a narancs jelöli a story-kat, fehér a task-okat és rózsaszín a bug-okat. Tegnap kerültek fel a táblára, és még szépen egyben vannak. Összeszámoltam, hogy most 29 rózsaszín cetli került ki a falra. Ha kicsit utána számolok, tesztelés során hetente össze szokott jönni 20-30 hibajelentés, persze nem mindig, de talán ez itt a lényeg, hogy nem kell mindig.

Most kicsit végig játszom magamban újra, hogy mik is voltak azok a hibák, amik kikerültek a falra, és már meg is találtam a kedvencemet. Azt ott középen! Nem volt egyszerű, sőt már kezdtem közeli kapcsolatba kerülni vele, amiért adott pillanatban nem éppen hálás az ember. Fejben egyre több variácót jártam végig, és a helyes üzleti vonalat minél többféleképpen végig vettem, hogy megtaláljam a hiba okát, és annak mellékhatásait. Ekkor nem igazán érdekelt más probléma, csak erre konentráltam, ez volt a prioritás. Úgy voltam vele, hogy nem érdemes más területre mennem, mert sokkal hasznosabb egy súlyosabb hibát felfedezni, mint egy azt se tudom hogyan adjak neki nevet hibát tízszer, amit a "Majd egyszer javítjuk" csoportba sorolnak be.

Mindenki számár előnyösebb ez így, mert a tesztelés tipikusan nem arról szól, hogy kilóra legyen meg, hanem, hogy minél több hozzáadott értéket szolgáljon. Nem utolsó sorban, amikor egy adott területen jobban elmerülünk, és nem úgy mint a Titanic, az sokat segít az üzleti logika megismerésében is.

Általában a "napi buildelés" híve vagyok, mert így azonnali visszajelzést adhatunk a fejlesztőcsapatnak. Amikor kiválasztok egy buildet, amit egy kicsit tovább magammnál tartok, akkor amögött nyomós érv kell hogy álljon. Van úgy, hogy hosszabb folyamatokat futtatok az alkalmazásban, vagy egy mélyebb regressziós tesztelést szeretnék végrehajtani, ha még nincsenek készen az új funkciók; és ezek mind időigényes feladatok. Ez idő alatt érkezhet akár 20-30 új commit is a kódbázisba a sprint menetétől függően. Mindenképpen érdemes tájékozódni másnap, hogy milyen változások történtek, de nem szükségszerű. Én csak nemrég kezdtem el figyelni a commit-okat, de a tapasztalatokat később mindenképpen megosztom. Alternatív megoldásként a fejlesztők is segíthetnek a területek meghatározásában. Ezt figyelembe véve már tényleg nyugodt szívvel eshetünk neki a kiválasztott területek vizsgálatához. Vegyél egy babzsákot, és helyezd magad kényelembe! :)



Pink sheets

We have just started new sprint, and I'm nesting my place in a bean-sack when my eyes get stuck on the wallboard, where we place our project stickies. We got three different types that we can pick from, where the orange means the stories, the white does the tasks and the pink goes with bug-fixes. They were published yesterday only, so they are still in one stack so far. By the way, I have counted 29 of the pink sheets made it to the wall. If I think it over, during the testing there are used to being like 20 to 30 reported bugs on weekly basis, not always, but the point is, that maybe it is not needed every time.

Now I'm doing over again in head how I found those bugs, which made it to the board, and I've already found my favorite one! There we go, that one in the middle! It wasn't easy, and I even started getting closer to it, for which one is not too thankful at the moment of time. In head I walked through more and more variations, and I followed the right business logic as many ways as possible in order to find the cause of the bugs and their side-effects. This time I did not care about other issues, that was I wanted to focus on, that was the priority. I was like it wasn't worth swifting to other parts of the program because it is more effective to discover a serious bug than an I-even-don't-know-how-to-name-it bug ten times that is going to get grouped into the "Not any time soon fixes".

This way it is more advantageous for everybody because the testing is typically not about getting it done in terms of quantities, but about adding even more values of quality to the development process. Not at last, when in a given part of the software we go deeper, and not the way the Titanic did so, helps a lot get to know the business logic behind the scenes.

Usually I support the daily builds because this way we are able to provide the development team with constant feedback about their ongoing work. When I choose a build that I keep for a while under testing, there has to be a profound ground for me to do so. It can be that I run either longer workflows, or deeper regression tests I would like to carry out, when the new functions are not ready for testing yet; all these are very much time consuming tasks. During this time 20 to 40 commits can be processed into the code-base upon the pace of the sprint. By all means it is worth keeping a close eye on the changes to be up-to-date, but it is not obligatory. I have just started to keep track on the commits, but I will tell my experiences later on. As second option we can even ask the developers about which part of the program has been affected by the changes. Taking all these into account we can calmly begin to test the chosen area of the application. Take a bean-sack and make yourself comfortable! :)









2009. augusztus 16., vasárnap

Miért jó nekünk a business logic? (for English please scroll down)


Sokféle hasonszőrű program kószál manapság, amelyek közül nem könnyű eldönteni, hogy melyik az igazi, amelyikre valóban szükségünk van, és teljes mértékben megfelel üzleti igényeinknek. A helyzet még nehezebb, amikor egy fejlesztés alatt álló szoftverről van szó, ahol ezeket az igényeket kell átültetni az alkalmazásba úgy, hogy az mind az előzetes koncepciónknak, mind az ügyfél elvárásainak megfeleljen. Viszont, amit az ügyfél szeretne, azt nem lehet egy az egyben leprogramozni. Az új alkalmazást össze kell hangolni a meglévő gyakorlati munkamódszerekkel, és meg kell határozni, hogy a jövőben milyen folyamatokat szeretnének számítógépen végezni. Innen, ha egy kicsit továbbgondoljuk a dolgot, látszik, hogy az alkalmazásunknak két fő gólja van: progresszíven illeszkedjen a munkakörnyezetbe és rendelkezzen a megfelelő üzleti logikával, ami szükséges ahhoz, hogy az első gólunk teljesüljön. Talán kicsit egyszerűbb példával élve: nem elég csak azt tudni, hogy ha lenyomom a gombot, piros lesz a háttér! Egy komplex üzleti alkalmazás tesztelését nehéz úgy végezni, ha nem ismerjük mélyrehatóbban azt, amivel dolgozunk, vagyis jó, ha tudjuk, hogy miért kell pirosnak lennie a háttérnek.
Business logic verification

Az különösen akkor jön jól, amikor tesztelés során nem teljesen egyértelmű hibával találkozunk, és a követelmények sem tartalmaznak idevonatkozó hivatkozást. Mégis, nehéz elvárni, hogy a fejlesztés elején az összes funkcionalitást felölelve lefektessük előre a teljes és végleges üzleti logikát. Amelyik projekt ezzel próbálkozik, a neandervölgyi ember sorsára fog jutni, aki az evolúció zsákutcájában rekedt alkalmazkodóképességének hiánya és robosztussága miatt. Az alkalmazás előttünk nő fel, lépésről-lépésre, szakaszosan haladva - mígnem a gyerekből felnőtt lesz. Fejlődése során nyomon követhető, hogy miből-mivé válik vagy válhat. E ponton érdemes egy pillanatra megállni, és átgondolni, hogy mi a tesztelés feladata a business logic verification során. A programot a fejlesztők írják és építik fel, akik munkáját üzleti elemzők segítik, de értékes visszajelzéseket adhatunk azáltal, hogy verifikáljuk a kidolgozott funkciókat - így hamar kiderülhet, hogy tényleg úgy működnek-e, ahogy elképzelték és megtervezték, okoz-e anomáliákat, felhasználóbarát-e stb... Összegezve: megbizonyosodhatunk a használhatóságáról. Mondhatnánk úgy is, hogy mi vagyunk az utolsó bástya, mielőtt a program kikerül demózásra. Viszont el kell ismerni, hogy bármennyire keményen próbálkozunk is, soha nem lehet 100%-ig hibamentes, végleges verziójú szoftvert leszállítani, és mindig fognak születni érdekes hibabejelentések, amelyeket egyszerűen csak lezárnak. Ha a követelményeket nem is, de ezeket nyugodtan kőbe lehet vésni, mert különben csak falfestmény leszünk a neandervölgyi ember barlangjában.




Why is business logic good for us?

Nowadays we can pretty much meet the likes of programs looking alike, and it is not easy to decide which of them fits our business needs best. The situation gets a bit harder when it is about a software under development, where these business needs are meant to be implemented into the application the way it satisfies the conceptual design as well as the customers' demands. However, it is quite impossible to make the program work exactly as the customer wants. The new application has to be synchronized against the existing practical workflows where the future ones are to be designed at once. If we think it further at this point our application seems to have two goals: it has to progressively fit the organization and bear the right business logic that is deemed necessary to pass our first criteria. A simpler example: it is not enough to only know that if I press the button the background is going to turn red! In order to execute the testing of a complex business application it is worth knowing what we work with, i.e. it pays off if we know why it turns red.

Business logic verification
It comes handy when we meet a not really clear bug, and the requirements don't say a word at this point, neither. However, it is hard to lay down all the full-blown functional and business requirements ahead of the development process. The project trying to accomplish this mission may follow the roots of the neanderthal man who had ended up in the dead end of evolution because his robustness and his lack of ability to keep up with a changing environment. The application will grow up in-front of our eyes, step-by-step, till the child turns adult. Let's make a break here, and think over what the purpose of the testing is in the business logic verification. The developers write the lines of codes and architect the program, whom the business analysts help in the making. We can provide precious feedback by verifying the developed functions - so that it turns out quickly that they work as imagined and designed, cause no anomalies, are user friendly. In sum: we can check if they are really ready for use. That is to say we are kinda the last resource before taking the build for demo. But we also have to live with the fact that even though we make our best, it is impossible to deliver 100% bug free, final, build, and there always be bug-reports which will be put on "closed" right at the glance. Though, the requirements cannot get carved in stone, but this last thing may be otherwise we might end up just like a painting inside the neanderthal's cave.