SlideShare a Scribd company logo
Md. Rizwanur Rashid Enosis Solutions [http://www.rizviews.com] Code Review in [ Testing View ]
A quotation……………. “ Testers can partner with developers to strengthen unit tests, participate in code reviews and inspections, and better understand where to focus their ‘testing attention’ based on a more in-depth analysis of the system.” - Bj Rollison -Test Architect, Microsoft [Source:  Interview of Bj Rollison ]
Code Review
Code Review in Testing View…. Devs will perform their part of review. We’ll perform some additional, such as: Identify code blocks which may create crashing bug! Identify code blocks which may increase execution time (performance issue!). Identify code blocks which may cause memory leaking. Database inconsistencies Cosmetic Issues
Example: Read File StreamReader   re  =  File .OpenText (“file.txt”); string   input  =   null ; input   = re.ReadLine(); while   ((input=re.ReadLine())!= null ) { } re.close(); Will always skip first line!! Functional flaw which identified earlier!
Example: Database Connection SQLConnection   con =  new   SQLConnection (); <Initilizing object  con> con.open(); <Blah; blah; whatever!> <End of coding!> try { SQLConnection   con = new   SQLConnection (); <Initilizing object  con> con.open(); <Blah; blah; whatever!> <End of coding!> } catch {} finally { con.close(); }
Example: Try-Catch class  foo1() { foo1() { foo2(); } void  foo2() { try { ……… ..; } catch  ( Exception  exp) { throw  exp; } } } class  foo1() { foo1() { try {foo2();} catch  ( Exception  ex) {whatever!} } void  foo2() { try { ……… ..; } catch  ( Exception  exp) { throw  exp; } } }
Example: Null Check Better to perform Empty/ null  checking. void  foo() { string  var1; ------------------------ if (! string . IsNUllOrEmpty (var1) do something; }
Example: Database Database Objects Convension SP Parameter and Column Length/DataType Usage of Index [ Performance Issues ] Usage of SubQuery/Join [ Performance Issues ] tblUsers UserName :  varchar(10) usp_CreateUser UserName:   varchar(8)
So….. So, we need programmer as testing guy now?-  BIG  NO !! Distribute task accordingly.
Advantages Attached with development procedures from early stage. Thus gain more knowledge on implementing requirements. Helps in quick bug tracing. Also helps testing guys to be more: Skilled Analytical Efficient
QA  [not  Quality Assurance  it’s  Question Answer..  ]

More Related Content

PPT
Google C++ Testing Framework in Visual Studio 2008
PPT
Introduzione al TDD
PDF
Java Testing With Spock - Ken Sipe (Trexin Consulting)
PPTX
TDD? Sure, but What About My Legacy Code?
PPTX
unittest in 5 minutes
PPT
Unit testing with Spock Framework
PPTX
Generating characterization tests for legacy code
PPT
Mxunit
Google C++ Testing Framework in Visual Studio 2008
Introduzione al TDD
Java Testing With Spock - Ken Sipe (Trexin Consulting)
TDD? Sure, but What About My Legacy Code?
unittest in 5 minutes
Unit testing with Spock Framework
Generating characterization tests for legacy code
Mxunit

What's hot (20)

PPTX
More Perl Basics
PPT
Javaone2008 Bof 5101 Groovytesting
PPTX
Building unit tests correctly
PPTX
Mutation Testing: Testing your tests
PDF
Test Driven Development With Python
ODP
Grails unit testing
PPTX
Unit testing patterns for concurrent code
PPTX
Automation patterns on practice
PPTX
Test your tests with PIT framework
PPT
Testing And Drupal
PPTX
Migrating to JUnit 5
PPTX
Whitebox testing of Spring Boot applications
PPTX
Testing Spring Boot application in post-JUnit 4 world
PDF
C++ Advanced Features
PDF
C++ Advanced Features
PPTX
Grails Spock Testing
PDF
Unit test-using-spock in Grails
PDF
Python unittest
PPT
Java 7
PDF
Unit testing 101
More Perl Basics
Javaone2008 Bof 5101 Groovytesting
Building unit tests correctly
Mutation Testing: Testing your tests
Test Driven Development With Python
Grails unit testing
Unit testing patterns for concurrent code
Automation patterns on practice
Test your tests with PIT framework
Testing And Drupal
Migrating to JUnit 5
Whitebox testing of Spring Boot applications
Testing Spring Boot application in post-JUnit 4 world
C++ Advanced Features
C++ Advanced Features
Grails Spock Testing
Unit test-using-spock in Grails
Python unittest
Java 7
Unit testing 101
Ad

Viewers also liked (10)

PPT
Tauhid: SQL Server Database Change Automation
PPTX
Sql Basics And Advanced
PPTX
T-SQL Overview
PPT
Sql Server Basics
PPTX
MS Sql Server: Introduction To Database Concepts
PPTX
SQL Tutorial for Marketers
PPTX
SQL Basics
DOC
A must Sql notes for beginners
PDF
Structured Query Language (SQL) - Lecture 5 - Introduction to Databases (1007...
PPTX
Introduction to database
Tauhid: SQL Server Database Change Automation
Sql Basics And Advanced
T-SQL Overview
Sql Server Basics
MS Sql Server: Introduction To Database Concepts
SQL Tutorial for Marketers
SQL Basics
A must Sql notes for beginners
Structured Query Language (SQL) - Lecture 5 - Introduction to Databases (1007...
Introduction to database
Ad

Similar to Code Review In Testing View (20)

PPTX
Quality Coding: What's New with Visual Studio 2012
PPTX
Quality Coding: What’s New with Visual Studio 2012
PPTX
Quality Coding with Visual Studio 2012
PDF
Unit testing best practices with JUnit
PPTX
Code review
PPS
ISTQB Foundation - Chapter 3
PPTX
Code Reviews
PPTX
Testers in product development code review phase
PPTX
Unit testing
PPT
Unit Testing a Primer
PPT
Iseb, ISTQB Static Testing
PPTX
How to Have Code Reviews That Developers Actually Want
PDF
Test process - Important Concepts
PPT
Static testing techniques
PPTX
Peering into the white box: A testers approach to Code Reviews
PPTX
Testes? Mas isso não aumenta o tempo de projecto? Não quero...
PPTX
Roy Osherove on Unit Testing Good Practices and Horrible Mistakes
PPTX
Code quality
PPTX
Code Quality
DOC
Amol_kolapwar(4)
Quality Coding: What's New with Visual Studio 2012
Quality Coding: What’s New with Visual Studio 2012
Quality Coding with Visual Studio 2012
Unit testing best practices with JUnit
Code review
ISTQB Foundation - Chapter 3
Code Reviews
Testers in product development code review phase
Unit testing
Unit Testing a Primer
Iseb, ISTQB Static Testing
How to Have Code Reviews That Developers Actually Want
Test process - Important Concepts
Static testing techniques
Peering into the white box: A testers approach to Code Reviews
Testes? Mas isso não aumenta o tempo de projecto? Não quero...
Roy Osherove on Unit Testing Good Practices and Horrible Mistakes
Code quality
Code Quality
Amol_kolapwar(4)

More from SQABD (20)

PDF
Hasin: Bangla Input Manager jQuery Plugin
PDF
Shoeb: Implementation Challenges of a Paperless Admission System
PPT
Aman: Developing a lightweight, hi-performance and dynamic JSON api server wi...
PPT
Zahidul: Meta Testing
PPT
Rabbi: Good to Great
PPTX
Imrul: Context Driven Testing
PPT
Ayman: When to stop testing?
PDF
Mozammel: Solo Scrum - The Pomodoro Technique
PDF
Hasan: Whats preventing me to write nearly accurate code
PPT
Kabir Ahmed: AutoHotkey
PDF
Mozammel Haque: Git -- Stupid, Fast, distributed content tracker
PPT
M. Ayman Noor: SQA Empowerment
PPT
Shimul: Testing Mnemonics
PPT
Tanvir Afzal: Selenium
PPT
Jan Friis Nielson: Bideshi Experience
PDF
Hasin Hayder: Motivated team and getting most out of it
PPT
Mozammel Haque: Scrum
PPT
Innovation Stories of Test Toolsmiths
PPTX
CUCUMBER - Making BDD Fun
PPT
Am I Flexible?
Hasin: Bangla Input Manager jQuery Plugin
Shoeb: Implementation Challenges of a Paperless Admission System
Aman: Developing a lightweight, hi-performance and dynamic JSON api server wi...
Zahidul: Meta Testing
Rabbi: Good to Great
Imrul: Context Driven Testing
Ayman: When to stop testing?
Mozammel: Solo Scrum - The Pomodoro Technique
Hasan: Whats preventing me to write nearly accurate code
Kabir Ahmed: AutoHotkey
Mozammel Haque: Git -- Stupid, Fast, distributed content tracker
M. Ayman Noor: SQA Empowerment
Shimul: Testing Mnemonics
Tanvir Afzal: Selenium
Jan Friis Nielson: Bideshi Experience
Hasin Hayder: Motivated team and getting most out of it
Mozammel Haque: Scrum
Innovation Stories of Test Toolsmiths
CUCUMBER - Making BDD Fun
Am I Flexible?

Code Review In Testing View

  • 1. Md. Rizwanur Rashid Enosis Solutions [http://www.rizviews.com] Code Review in [ Testing View ]
  • 2. A quotation……………. “ Testers can partner with developers to strengthen unit tests, participate in code reviews and inspections, and better understand where to focus their ‘testing attention’ based on a more in-depth analysis of the system.” - Bj Rollison -Test Architect, Microsoft [Source: Interview of Bj Rollison ]
  • 4. Code Review in Testing View…. Devs will perform their part of review. We’ll perform some additional, such as: Identify code blocks which may create crashing bug! Identify code blocks which may increase execution time (performance issue!). Identify code blocks which may cause memory leaking. Database inconsistencies Cosmetic Issues
  • 5. Example: Read File StreamReader re = File .OpenText (“file.txt”); string input = null ; input = re.ReadLine(); while ((input=re.ReadLine())!= null ) { } re.close(); Will always skip first line!! Functional flaw which identified earlier!
  • 6. Example: Database Connection SQLConnection con = new SQLConnection (); <Initilizing object con> con.open(); <Blah; blah; whatever!> <End of coding!> try { SQLConnection con = new SQLConnection (); <Initilizing object con> con.open(); <Blah; blah; whatever!> <End of coding!> } catch {} finally { con.close(); }
  • 7. Example: Try-Catch class foo1() { foo1() { foo2(); } void foo2() { try { ……… ..; } catch ( Exception exp) { throw exp; } } } class foo1() { foo1() { try {foo2();} catch ( Exception ex) {whatever!} } void foo2() { try { ……… ..; } catch ( Exception exp) { throw exp; } } }
  • 8. Example: Null Check Better to perform Empty/ null checking. void foo() { string var1; ------------------------ if (! string . IsNUllOrEmpty (var1) do something; }
  • 9. Example: Database Database Objects Convension SP Parameter and Column Length/DataType Usage of Index [ Performance Issues ] Usage of SubQuery/Join [ Performance Issues ] tblUsers UserName : varchar(10) usp_CreateUser UserName: varchar(8)
  • 10. So….. So, we need programmer as testing guy now?- BIG NO !! Distribute task accordingly.
  • 11. Advantages Attached with development procedures from early stage. Thus gain more knowledge on implementing requirements. Helps in quick bug tracing. Also helps testing guys to be more: Skilled Analytical Efficient
  • 12. QA [not Quality Assurance it’s Question Answer..  ]