Presentation is loading. Please wait.

Presentation is loading. Please wait.

Test Case. FPT-Software Training Materials 2 Introduction o Purpose: Writing Test Case o Attendees: Testers o Duration: 2 hours.

Similar presentations


Presentation on theme: "Test Case. FPT-Software Training Materials 2 Introduction o Purpose: Writing Test Case o Attendees: Testers o Duration: 2 hours."— Presentation transcript:

1 Test Case

2 FPT-Software Training Materials 2 Introduction o Purpose: Writing Test Case o Attendees: Testers o Duration: 2 hours

3 FPT-Software Training Materials 3 Objectives After the course, student will be able to: o Understanding the way to create a Test Case o Using Test Case checklist to review a Test Case

4 FPT-Software Training Materials 4 Agenda o Design test case o Write test case o Test case checklist

5 FPT-Software Training Materials 5 Test Case Test Preparation Detail design SRS Test Plan Test case Test script Test data

6 FPT-Software Training Materials 6 Concepts o Test Case: A set of test inputs, execution conditions, and expected results developed for a particular objective, such as to exercise a particular program path or to verify compliance with a specific requirement. o Test Script: scripts that use for testing or check the output o Test Data: data is using for testing

7 FPT-Software Training Materials 7 Why Test Case? o Design scenario (test conditions) before test execution o Predict expected result o Help new testers familiar with existing application/system without reading requirement

8 FPT-Software Training Materials 8 Good Test Case o Has a high probability of finding errors o Clear of purpose o Well organized o Reviewable o Maintainable o Useful to other testers

9 FPT-Software Training Materials 9 Design Test Case o White Box Testing: Uses specific knowledge of programming code to examine outputs

10 FPT-Software Training Materials 10 White Box Testing - Example o Instruction coverage o Decision coverage o Condition coverage o Decision/Condition coverage o Multi condition coverage

11 FPT-Software Training Materials 11 Design Test Case o Black Box Testing: Assess how well a program meets its requirements Focusing on testing functional requirements I/PO/P

12 FPT-Software Training Materials 12 Black Box Testing - Example o A large IT company is in the process of revising salary structure for its employees. The salary will be revised on the check point for all employees with at least one year seniority o The rule for salary revision are provided below: Check point: 90 -> 100: Increase existing salary by 20% Check point: 80 -> 89: Increase existing salary by 15% Check point: 75 -> 79: Increase existing salary by 10% Check point: < 75: No increase

13 FPT-Software Training Materials 13 Black Box Testing - Technique o Expand Conditions into Test Cases using Boundary Value Analysis: a minimum or maximum input, internal, or output value specified for a system or component Equivalence Partitioning: one or a few cases are chosen to represent an entire equivalence class Decision Tables o Case study

14 FPT-Software Training Materials 14 Fsoft - Test Case Structure o Test case specifications o Test procedures o Pass/ Fail criteria: List all results that decide test case is passed or failed o Dependencies: List all test cases that must be done before performing this case

15 FPT-Software Training Materials 15 Test Case Specifications o List cases/scenario that will be tested Interface Test with valid data Test with invalid data: Mandatory field Min, Max length Incorrect type, format Boundary, etc

16 FPT-Software Training Materials 16 Test Procedure o Test actions taken by the actor when executing a test case o Test input: the actual values input by the actor at each step/action o Expected result: the expected response from the application for a given step/action

17 FPT-Software Training Materials 17 Pass/Fail criteria - Inter-case dependencies o Pass/Fail criteria: List all results that decide test case is passed or failed o Inter-case dependencies: List all test cases that must be done before performing this case

18 FPT-Software Training Materials 18 Test Script o Recorded automatically o Coded manually: using test tools or standard programming languages like VB, C/C++, Java or SQL Test stub: temporary implementation of part of a program for unit test purposes Test driver: program which sets up an environment to call a module (or function) for testing

19 FPT-Software Training Materials 19 Test Data o Prepare data test for scenarios Tools Manual

20 FPT-Software Training Materials 20 GUI Test Case o Aesthetic conditions o Navigation conditions o Validate text fields o Validate number fields o Validate date fields

21 FPT-Software Training Materials 21 GUI Test Case - Validate text fields o Check mandatory fields o Max length o Special characters/htlm tags (name, , address, password) o Space at the beginning and the end of string o Full-size, haft-size characters (Japanese) o Case-sensitive or not o Unicode

22 FPT-Software Training Materials 22 GUI Test Case - Validate number fields o Check mandatory fields o Max/Min values o Integer/Decimal numbers o Positive/Negative numbers o Check conversion of format (decimal symbol, digit grouping symbol, display leading zero) o Display decimal symbol, digit grouping symbol, leading zero

23 FPT-Software Training Materials 23 GUI Test Case - Validate date fields o Check mandatory fields o Check date format (inputted date, conversion of inputted date) o Compare inputted date to current date (if required) o Compare dates based on business rules o Compare From Date to To Date o Check format date with regional setting

24 FPT-Software Training Materials 24 Test case templates o Word o Excel o Reference:

25 FPT-Software Training Materials 25 Test Case Review Checklist o Who will use TC checklist? o Why do have to use TC checklist? Check template of test plan Check required information in TC o Template

26 Q & A


Download ppt "Test Case. FPT-Software Training Materials 2 Introduction o Purpose: Writing Test Case o Attendees: Testers o Duration: 2 hours."

Similar presentations


Ads by Google