ISTQB etiketine sahip kayıtlar gösteriliyor. Tüm kayıtları göster
ISTQB etiketine sahip kayıtlar gösteriliyor. Tüm kayıtları göster

3 Eylül 2021 Cuma

White Box veya Structure Based Testing

Giriş
ISTQB dokümanında White Box ile Structure-based test tekniği eş anlamlı olarak kullanılıyor. 

Bu test tekniği "based on software or system structure" olarak niteleniyor. Yani test koda göre tasarlanıyor. Test teknikleri şöyle

Code Coverage : Kodun %80 kapsanması
Decision veya Branch Coverage : if/else'lerin kapsanması
Path Coverage : Birbirinden bağımsız akışın kapsanması
Statement Coverage : Her statement'ın kapsanması

Decision veya Branch Coverage
Decision coverage yaparken düşülen en büyük yanılgı if/else koşulunda else kısmı yoksa test yazılmayacağı düşüncesi. Ancak true ve false seçenekleri için test yazılması gerekir. Bu testing açıklaması şöyle
Instead of only exercising branches with instructions, we will take each of the "true" and "false" alternatives (branches) of each decision, whether or not there are instructions in these branches.
Bu testin kullanım yerinin açıklaması şöyle
Decision coverage is required in the aerospace industry for all software where a failure would have dangerous consequences (Category B software)
MC/DC Coverage
MC/DC Coverage havacılık dünyasında Level A yazılımda kullanılır.

Statement Coverage
Statement Coverage havacılık dünyasında Level C yazılımda kullanılır.


3 Şubat 2020 Pazartesi

ISTQB Chapter 2 - Testing Throughout the Software Life Cycle (Test Tipleri Anlatılıyor)

Giriş
International Software Testing Qualifications Board (ISTQB) Chapter 2 - Testing Throughout the Software Life Cycle ile ilgili notlarım şöyle.

2.2 Test Seviyeleri
2.2.1 Component level testing
Unit test veya birim test ile aynı şey. Geliştirici tarafından yapılır

2.2.2 Integration level testing
Geliştirici ekibi tarafından yapılır. "Low-level design" test edilir.
  2.1 Big Bang yöntemi
  2.2 Bottom up yöntemi
  2.3 Top-down yöntemi - En büyük bileşen alınır ve stub veya mock kullanılarak test edilir.

2.2.2.3 Integration Testi Olarak Top-down yöntem
Burada kullanılan stub kelimesinin açıklaması şöyle. Aslınca çoğu mock'lama kütüphanesi artık stub/mock ayrımını bile yapmıyor. Stub yerine mock kelimesi bence kullanılabilir.
Stubs are hard coded methods that return an expected answer and don’t care about method arguments or the state of any objects, so don’t function normally. They might be anonymous functions passed directly to a method on the unit we are testing, in which case we are testing that the unit behaves correctly when the function returns that hard coded result. A stub could be a method implemented as a requirement of an interface that the unit under test needs to call. A stub that checks the existence of a file, for example, could always return true if we’re not actually using the file system while testing the unit:
2.2.3. System tests
Bu testte sistemin diğer sistemler ile çalıştığı test edilir. "High-level design" test edilir. Tuzak sorulardan birisi hangi stratejini izleneceğidir. Bir strateji izlenmez

2.2.4. Acceptance tests
Kullanıcı tarafından yapılır. "Business requirements" test edilir. "Business perspective" ile sistemin kabul edilebilir olduğu test edilir. Tuzak soru "tüm kullanıcılar" tarafından kabul edilebilir olmasıdır ki bu doğru bir ifade değil.

5. Other tests

2.3 Test Çeşitleri
1. Functional Tests
2. Non-functional Tests
Reliability,
Usability,
Efficiency
Maintainability
Portability (Taşınabilirlik)

olarak gruplanmış.

Supportability diye bir şey yok :)

3. Structure Tests



25 Temmuz 2019 Perşembe

ISTQB Chapter 1 - Fundamentals of Testing (Test Faaliyetinin Amacı Anlatılıyor)

Giriş
International Software Testing Qualifications Board (ISTQB) Chapter 1 - Fundamentals of Testing ile ilgili notlarım şöyle.

Test mühendisi şu sertifikaları alabilir.
Foundation Level -> Advanced Level -> Expert Level
Bu sınavda hedefler K1,K2,K3,K4 olarak kodlanmış.
K1 hatırlanması gereken hedef
K2 anlanması gereken hedef
K3 uygulama gerektiren hedef
K4 incelenmesi gereken hedef

1.1 Hata Neden Oluşur
İnsan yanlış yapar (mistake) -> Kodda Hata/Kusur Olur (Defect,Fault,Bug) -> Bu kod çalışınca Arıza/Başarısızlık (Failure) olur ve biz Hata/Kusur'un farkına varırız.
Yani
mistake -> defect/fault/bug -> failure
Mistake = İnsan hatası
Bug = Hata
Defect = Hata
Fault = Kusur
Failure = Arıza, Başarısızlık

Test Nedir?
Test hataları (failure/defect) bulmak amacıyla gerçekleştirilen faaliyettir. Sistemin test edilmiş olması hatasız olduğunu (defect/bug free) veya doğru çalıştığını garanti etmez. Yani şu cümle yanlış.
The purpose of testing is to demonstrate absence of defects.
Test ekibinin amacı failure oluşturarak fault/defect/bug'ları bulmak.

1.3 Test Prensipleri
7 tane
1. Testing shows presence of defects
2. Exhaustive testing is impossible
3. Early testing.
Gereksinim hatalı ise, tasarım hatalıdır, kod hatalıdır, test hatalıdır, dokümantasyon hatalıdır. Erken teşhis hayat kurtarır :)
4. Defect clustering
5. Pesticide paradox
6. Testing is context dependent
7. Absence-of-errors fallacy
Testing Ensures a Bug-Free Product anlamına gelmez. Açıklaması şöyle
While QA testing can reveal bugs in the software, it cannot guarantee the absence of bugs. A software QA tester will implement rigorous testing procedures to catch as many system errors as is feasible.

However, it is simply not possible to ensure that a product is 100 percent free of bugs, even with an unlimited budget and zero time constraints. Many final software products will have some bugs, while still meeting the requirements of the project and being functional. The most skilled tester will not be able to guarantee that the software is defect-free. What he or she can do is reduce bugs to a minimum and determine that the software is functional and meets the requirements or usability.
Hatta en kritik yazılımlarda bile hata olabiliyor.

Örnek - Uzay Mekiği Yazılımı
Açıklaması şöyle.
Although the Space Shuttle flight software was of outstanding quality, it's completely incorrect to think that there was only one bug. There were many known bugs in the flight software (FSW).
1.5  Test Psikolojisi
Test işlemi yıkıcıdır (destructive). Açıklaması şöyle.
Start testing the application by intent of finding defects/errors. Don't think beforehand that there will not be any bugs in the application. If you test the application by intention of finding defects you will definitely succeed to find those subtle defects also.
İşte bence bu yüzden adanmış bir test ekibi lazım. Çünkü kodu yazanlar bazen kör olabiliyorlar. Açıklaması şöyle.
The person who wrote the code is often blind to its limitations because they are too familiar with it. Skilled testers know how to work to avoid allowing familiarity to blind them to problems.

21 Aralık 2018 Cuma

ISTQB Chapter 4 - Test Design Techniques

Giriş
International Software Testing Qualifications Board (ISTQB) Chapter 4 - Test Design Techniques ile ilgili notlarım şöyle.

Bir önceki bölümün ismi Static Techniques. Bu bölümün de ismi "Dynamic Techniques" olmalıydı.

Test Condition
Test koşulu olarak çevrilse de aslında "test edilen şey" diye düşünmek daha iyi. Test condition'ı test etmek için birden çok "test case" geliştirilebilir.

Test Case
Test durumunda girdi ve beklenen sonuçlar (expected result) belirtilir. Testin detaylı adımları yoktur. Daha çok özet gibidir.

Test Procedure
Test adımlarının detaylı belirtimidir.
Not : İlginç olan şey ISQB'nin Test Case ve Test Procedure diye iki ayrı başlık altında sunduğu şey, bir çok şirket tarafından tek bir dokümanda hallediliyor. Şimdiye kadar hiçbir şirkette "Test Case" ve "Test Procedure" diye iki farklı dokümanın hazırlandığını görmedim.

Sıra sanırım şöyle
Test Condition -> Test Case (Expected Results) -> Prioritize Test Cases -> Test Procedure

Test Design Techniques
Test tasarım teknikleri Static ve Dynamic olarak 2 ana gruba ayrılır. Statik teknikler Chapter 3 - Static Techniques'te anlatılıyor. Bu Chapter'da Dinamik Test Teknikleri anlatılıyor.

Dynamic Test Teknikleri
Test tekniklerinin farkını anlatan genel bir açıklama şöyle.
A black-box tester is unaware of the internal structure of the application to be tested, while a white-box tester has access to the internal structure of the application. A gray-box tester partially knows the internal structure, which includes access to the documentation of internal data structures as well as the algorithms used.
1. Black Box
Bu test tekniği "based on system specifications" olarak niteleniyor. Yani gereksinimlere göre test tasarlanıyor. Bu alandan mutlaka soru gelir.

1.1. Equivalance Partitions
1.2. Boundary Value Analysis
1.3. Decision Tables
1.4. State transition
1.5. Use cases
Use case testi daha sonra "Acceptance Test" için kullanılabilir. Ayrıca farklı componentler arasında entegrasyonu test etmek için de kullanılabilir.

2. Structure Based
White Box veya Structure Based Testing yazısına taşıdım

3. Experience
Bu test tekniği "based on experience of testers" olarak niteleniyor. Belirli bir gereksinim setine dayanmıyor.

3.1 Exploratory Testing
Expoloratory Testing yazısına taşıdım.

3.2 Attacks
Saldırı. Saldırı kasten veya kaza ile olabilir. Açıklaması şöyle.
Some people enter random by accident and others do it intentionally trying to break the application. In both cases, you don't want the application to crash or exhibit other unwanted behavior.
For the first type of user, you don't want that because it gives them a bad experience and might turn them away.
For the second type of user, they usually don't have honorable intentions and you don't want to let them have access to information that they shouldn't be able to access or allow them to deny genuine users access to your services.
3.3 Taxonimies
Buna dokümanda "Defect Taxonomies" de deniyor. Eş anlamlı kullanılmış. Taxonomy sınıflandırma demek. Hataları sınıflandırıp bu gruplara göre test tasarlanır.

28 Eylül 2017 Perşembe

ISTQB Chapter 6 - Tool Support for Testing

Giriş
International Software Testing Qualifications Board (ISTQB) Chapter 6 - Tool Support for Testing ile ilgili notlarım şöyle

Test Oracle
Testin sonucunun beklenen önceden bilinmesi sanırım. 

26 Eylül 2017 Salı

ISTQB Chapter 3 - Static Techniques (Gözden Geçirme ve Statik Analiz)

Giriş
International Software Testing Qualifications Board (ISTQB) Chapter 3 - Static Techniques ile ilgili notlarım şöyle

Test Design Techniques
Test tasarım teknikleri Static ve Dynamic olarak 2 ana gruba ayrılır. Dinamik Test Teknikleri Chapter 4 - Test Design Techniques'te anlatılıyor. Bu Chapter'da Statik Test Teknikleri anlatılıyor.

Statik teknikler Review ve Static Analysis olarak ikiye ayrılır.

Review
Review tipleri şöyle
Informal Reviews , Management Reviews, Technical Reviews (formal), Inspections(formal), Walk-through, Audits(formal).

1. Formal Review
Adımlar şöyle
Planning -> Kickoff -> Individual Preparation -> Review Meeting -> Rework -> Followup

Static Analysis
Inspection, Data Flow Analysis, Static Code Analysis gibi çeşitleri var.



25 Eylül 2017 Pazartesi

ISTQB Chapter 5 - Test Management

Giriş
International Software Testing Qualifications Board (ISTQB) Chapter 5 - Test Management ile ilgili notlarım şöyle

Roller
1. Test Leader veya Test Manager
Test aracı üreticisi (tool vendor) ile irtibattatır. Hangi alanların otomasyona geçmesi gerektiğine karar verir. Test Özet Raporlarını hazırlar.
2. Tester
Testçi. Test specification (test senaryosu diyelim) geliştirir. Koşar.

Riskler
1. Proje Riskleri
Personel ve politik sebeplerden projenin başarısız olması riski
2. Ürün Riskleri
Ürünün şirket veya bireylere zarar vermesi riski.