Minden fejlesztés során bekövetkezik az az idő, amikor egy kicsit rendbe kell szedni a sorokat. Ez egy olyan dolog, amit nem szabad kerülgetni, halogatni sokág, mert megbosszúlhatja magát. Több oka lehet, hogy számos fejlesztési sprint után be kell iktatni stabilizálást.
- Korábbi sprintekben lefejlesztett funkciók elromlanak
- az új funkciók már meglévőeket rontanak el
- a sprintek alatti hibajavítások új hibákat okoznak
- már meglévő funkciók kisebb mértékű továbbfejlesztése
A tesztelés és a stabilizáció
A SCRUM-ban történő fejlesztésnek sajátos tulajdonsága, hogy az egyes sprintek a demo-ra vannak kihegyezve. Több egymást követő sprint szakasz után nem véletlen tehát, ha helyenként nem minden működik úgy a programban, mint az első demo alkalmával. A sprintekbe nem mindig kerül be hiba javítás, így a szakaszhoz nem igazán köthető bejelentésekkel nem mindig fognak foglalkozni. A SCRUM egyik alapelve a priroizálás, ami azt is jelenti, hogy a bejelentett hibáknak is át kell esniük a szűrőn, így valószínű, hogy a sokadik sprint végére csak egyre nőni fog a hibalista. Ez több problémát is felvet:
- anomáliák a program viselkedésében, amelyek a részleges hibajavításból fakadnak
- nehezen nyomon követhető program működés
- nem teljesen megbízható teszteredmények
A helyzet az, hogy óhatatlanul vannak és lesznek hibák a programban, de mi ezek jelentőségét és nem számát szeretnénk csökkenteni. A meglévő hibákat újra sorrendbe kell állítani, az esetleges összefüggéseket megkeresni, és őket együtt javítani. Stabilizáció során ezért kicsit eltér a tesztelési módszertan a fejlesztési sprintekétől. Az első és legfontosabb szerintem, hogy nem szükséges naponta új build-et kérni, viszont hosszabb use-case-eket, scenario-kat, end2end teszteket érdemes futtatni, hogy árnyaltabb képet kaphassunk a program állapotáról.
Miután megtörtént a hibák priorizálása, és elkezdődött azok kijavítása, célszérű a javításokat egymásraépőlő, de nem túl nagy blokkokban tesztelni. Így csökkenthetjük annak kockázatát, hogy egy korábban javított hiba újraelromlását nem vesszük észre.
Rovarölő paradoxon (pesticide paradox)
Talán az egyik legbosszantóbb dolog, ha valami újra elromlik, amikor azt már egyszer kijavították. A paradoxon rövid értelmezése: ha ugyanazt a tesztet futtatjuk újra és újra, lényegében ugyanazzal a teszt készlettel, nem fogunk már több hibát találni, mert a kódbázis immunissá vált tesztjeinkkel szemben.Egy komplex szoftver esetében még érzékenyebb a kérdés, és épp ezért szükséges minél változatosabb tesztkészlettel dolgozni. Amiért a paradoxon-t ezen a helyen említem, annak az oka, hogy sok esetben a stabilizáció egyik eredője maga a paradoxon. Ugyan lehetetlen az összes scenario-t lefuttatni egy programban, de a felfedező jellegű tesztelés segítségével könnyebben méretre szabhatjuk a programunk képességeit a korábbi szakaszok során.
The pillars of the stabilization process
In every software development there comes the time when the lines need to be streightened up. This is a thing we must neither avoid nor postpone for too long because it can take revenge on you. There can be many reasons for why the stabilization process has to be conducted:
- functions developed in previous sprints go wrong
- new functions cause previously developed ones not to work
- the bug-fixing under sprints brings about more defects
- further development on existing functions
The testing process and stabilization
Development under SCRUM has its very special attitude as to each sprint is stressed out for the demo only. Hence after number of sprints it is no coincidence if somewhere in the application something does not work as designed but did work at the time of the first demo. Often the sprints does not include bug-fixing, so those reported bugs which are not related closely to the on-going sprint won't be looked on. As one of the main principles of the SCRUM is prioritization means that all the reported bugs have to go through a filter, which makes it more likely by the end of each sprint for the bug list to grow on continuously. This pops up some other issues:
- anomalies in program behavior which can derive from partial bug-fixing
- difficulties in tracking the program behavior
- unreliable test results
The situation is that there always will be defects in the program, but we would like to reduce the siginificance of them, instead of their numbers. The new bugs are to be prioritized, as well as the correlations between them have to be determined, so that they can be fixed together. Hence the process of stabalization differs a bit from that of development sprints. First and foremost we don't need daily builds, but we could run longer use-cases, scenarios and end2end tests instead in order to get a more accentuated picture of the program.
After the prioritizing of bugs is done and the bug-fixing got started it is worth executing the testing in not too large blocks of test cases that build upon one another. This way we can reduce the risk of not recognizing a function gone wrong that worked prior the testing.
Pesticide paradox
Maybe one of the most annoying thing is if something gets broken once again when it had already been fixed. Brief description of the paradox: If the same tests are repeated over and over again, eventually the same set of test cases will no longer find any new bugs. In the case of a complex software the question is more delicate, and therefore we ought to work with much more varied test cases. The cause why I mention the paradox here is that many times the root cause of the stabilization process is the paradox itself. Indeed, it is impossible to run each possible scenarios in the program, but with the help of exploratory testing we can easily tailor the capability of our application during the previous sprints of the development.
Nincsenek megjegyzések:
Megjegyzés küldése