Preview

Case Study for White Box Testing

Good Essays
Open Document
Open Document
429 Words
Grammar
Grammar
Plagiarism
Plagiarism
Writing
Writing
Score
Score
Case Study for White Box Testing
White Box Case Study

1. Introduction
In white-box testing, the purpose is to ensure that the all the code has been tested and covered.There are different coverage measures depending on the level of detail of the white-box test. The coverage measures may also be applied to integration testing and system testing.

2. Learning Objectives
The exercise aims at giving an understanding of white-box. The specific learning goal is to gain a detailed insight into the concept of white-box testing using coverage measures.

Assignment 1: Look at the program below. How many feasible paths are there for this program?

Define a set of test cases that gives you 100% coverage of all the feasible paths.

Input (score);
If score < 45 then print (‘fail’); else print (‘pass’);
If score > 80 then print (‘ with distinction’);
End
Assignment 2: In this week’s lab session you will test the NextDate program with white-box techniques.
Get an understanding of how the program works, the code is available here

Assignment 4: Make flowgraphs of the methods in the NextDate class.
Assignment 5: Prepare test cases based on the flowgraph. Calculate the minimum number of test cases if the goal is:
• 100% Statement coverage
• 100% Decision/branch covergae
• 100% Condition coverage

4. Exercise (on computer)
Assignment 6: Now we would like you to thoroughly test the NextDate program using white-box testing. You should implement the testcases you have prepared on paper using statement, decision,and condition coverage. Preferably implement them using JUnit. Implement more test cases if you realize that you missed any during the preparation.
Remember to specify test case ID, what is tested, description, input, expected output and other useful information while executing your test cases. You may also want to make room for pass and fail notes and perhaps for comments. Record your test results carefully for your test report.
Report
The purpose of the report is to discuss the

You May Also Find These Documents Helpful

  • Powerful Essays

    The next step in the process is to create a test plan based on the requirements document. The business analyst will perform the procedure of code and then document the expected results and the actual results. It is very important that the documentation has enough detail, so if the test fails, the developer will know where the failure occurred. (Software Testing Procedures, 2009)…

    • 2001 Words
    • 9 Pages
    Powerful Essays
  • Satisfactory Essays

    Psy/315 Case 8.4

    • 127 Words
    • 1 Page

    System is working correctly all modules are tested and producing results as per our expectation.…

    • 127 Words
    • 1 Page
    Satisfactory Essays
  • Satisfactory Essays

    MNP231

    • 1327 Words
    • 4 Pages

    1. In Exercise 2, you created a Lab04 text file on your computer at the beginning of the exercise. Later, while working…

    • 1327 Words
    • 4 Pages
    Satisfactory Essays
  • Powerful Essays

    PT2520

    • 1263 Words
    • 7 Pages

    Upon completion of the project, you will submit a MS Word document with the answers to the three questions integrated within the project at key points. Questions 1 & 2 are located at the end of Step 11 and Question 3 at the end of Step 12 of the Technical Steps section of this lab. This MS Word document will be named nn_Projectanswers.doc where “nn” will be changed to your initials.…

    • 1263 Words
    • 7 Pages
    Powerful Essays
  • Satisfactory Essays

    The advantages of automated testing is that the tests are reliable to the point that same test is ran…

    • 442 Words
    • 2 Pages
    Satisfactory Essays
  • Good Essays

    unit 9 assignment

    • 421 Words
    • 2 Pages

    5. What guidelines are available to help you develop a test plan for your app?…

    • 421 Words
    • 2 Pages
    Good Essays
  • Satisfactory Essays

    Comp 122 Week 1 Ilab

    • 662 Words
    • 3 Pages

    5. Write the program to implement your algorithm. Test your program using your test cases. Did your program produce the values predicted in your test cases? Explain.…

    • 662 Words
    • 3 Pages
    Satisfactory Essays
  • Satisfactory Essays

    PROJ 586 W4 Homework

    • 588 Words
    • 3 Pages

    Once you have worked through the problems, please post your responses to the Dropbox. Please refer to the course Syllabus for the due date.…

    • 588 Words
    • 3 Pages
    Satisfactory Essays
  • Better Essays

    Grubb, P. & Takang, A.A. (2003). Software maintenance: concepts and practice (2nd ed.). Singapore: World Scientific.…

    • 1550 Words
    • 7 Pages
    Better Essays
  • Satisfactory Essays

    We are running a penetration test from Jan. 1 to Jan. 15th, 2014 on the client’s ecommerce production environment.…

    • 542 Words
    • 3 Pages
    Satisfactory Essays
  • Satisfactory Essays

    code program

    • 317 Words
    • 2 Pages

    (Input screenshot) - Insert here a screenshot of your program running showing entry of the provided set of test input data for this assignment:…

    • 317 Words
    • 2 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Lab Report

    • 738 Words
    • 3 Pages

    Procedure : Watch each part of the experimental demonstration and make predictions about what will happen in each scenario.…

    • 738 Words
    • 3 Pages
    Satisfactory Essays
  • Good Essays

    Mildorf Mock AIME

    • 19385 Words
    • 119 Pages

    preceeds each problem set1 ; the cover will list the official testing parameters, including any slight…

    • 19385 Words
    • 119 Pages
    Good Essays
  • Satisfactory Essays

    Clc Outline

    • 357 Words
    • 2 Pages

    9) Submit the assignment to the instructor by the 4th day of Module 4. (August 25th)10) Post the assignment to the CLC discussion forum as directed by the instructor. Each person should make at least three substantive comments.…

    • 357 Words
    • 2 Pages
    Satisfactory Essays
  • Better Essays

    B. The company must make sure the implementation of the test is done in a uniform manner.…

    • 1281 Words
    • 6 Pages
    Better Essays

Related Topics