Preview

software testing

Satisfactory Essays
Open Document
Open Document
619 Words
Grammar
Grammar
Plagiarism
Plagiarism
Writing
Writing
Score
Score
software testing
SOFTWARE TESTING

Q4. (a) Is functional testing sufficient to determine code coverage?

Answer:

No, functional testing is not sufficient to determine code coverage. In testing when we refer to code coverage we are talking about how much of the code is being covered/executed/tested during test execution. So the goal behind code coverage is to determine areas that are not being tested and creating tests that can cover these gaps. Structural and functional testing can be used to determine code coverage. Code coverage is a form of white box testing where one looks at the code directly. A mix of white and black box testing is necessary to get maximum coverage. Just functional testing is not enough to do code coverage. There are some codes that do not get executed from the front end or UI testing. There are codes in place for recovery, back up, load balancing, etc that have to be covered in non-functional testing.
Traditionally code coverage products were relegated to the developer desktop environment. More recently, products like NCover (measures managed processes) have expanded that understanding to directly include white box testing and indirectly support coverage analysis for black box testing. Further, many make the case that the best use of code coverage as an objective measurement of functional testing needs to include access to corollary cyclomatic complexity metrics.
(b) What is loop testing?

Answer:
The goal of loop testing is to test while-do, repeat-until, (or do-while) and any other loops in a program thoroughly - by trying to ensure that each is executed at minimal, typical, and maximal values - and to try to ``break'' the program, by trying to have a loop executed with a fewer than minimum, as well as a larger than maximal, number of iterations.

Three types of loops will be tested.
Simple Loops are loops whose loop bodies contain no other loops (so, these are the ``innermost'' loops if any loops are nested).
Nested Loops are

You May Also Find These Documents Helpful

  • Satisfactory Essays

    Nt1330 Unit 2 Assignment 1

    • 3740 Words
    • 15 Pages

    1. A while loop will not execute the body of the code if you have your test condition incorrect.…

    • 3740 Words
    • 15 Pages
    Satisfactory Essays
  • Satisfactory Essays

    a. The test include the severity from high, medium or low. Scans and test also include, parameters that control technical aspects, timeouts, number of host, type of port scanner, policy checks, service detection scan settings, UNIX compliances and many other checks that can give vulnerabilities.…

    • 486 Words
    • 3 Pages
    Satisfactory Essays
  • Good Essays

    Generating minimal test cases for effective program test is a tool for generating test cases for a ‘c’ program. The main purpose of this tool is to automatically generate the minimum number of test cases for a given program to perform effective test on it. This document describes the software requirements for Test Case Generation tool.…

    • 1533 Words
    • 7 Pages
    Good Essays
  • Powerful Essays

    Mat 540 Week 4 Paper

    • 1775 Words
    • 8 Pages

    * Provide a set of values that will test the normal operation of this program segment. Defend your choices.…

    • 1775 Words
    • 8 Pages
    Powerful Essays
  • Satisfactory Essays

    Pt1420 Assignment

    • 1058 Words
    • 5 Pages

    1) Initialization: the variable is initialized 2) Test: the loop tests the variable by comparing it to the maximum value 3) Increment: to increase the value during each iteration the loop increments the counter variable by adding 1 to it.…

    • 1058 Words
    • 5 Pages
    Satisfactory Essays
  • Good Essays

    unit 8 homework

    • 793 Words
    • 5 Pages

    Infinite loops usually occur when the programmer forgets to write code inside the loop that makes the test condition false. In most circumstances you should avoid writing infinite loops.…

    • 793 Words
    • 5 Pages
    Good Essays
  • Satisfactory Essays

    5. Refers to scanning a system for vulnerabilities and reveals information about the target that is needed to access it.…

    • 263 Words
    • 2 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Lab 7 Student

    • 1242 Words
    • 7 Pages

    A condition-controlled loop uses a true/false condition to control the number of times that it repeats.…

    • 1242 Words
    • 7 Pages
    Satisfactory Essays
  • Good Essays

    Unit 7 Assignment 1

    • 749 Words
    • 4 Pages

    Describe the difference between pretest loops and posttest loops? Pretest loop or do while loop tests its condition before performing iteration whereas a posttest loop or do until loop executes one or more statements and then a condition is tested.…

    • 749 Words
    • 4 Pages
    Good Essays
  • Satisfactory Essays

    The while loop is used to repeat a section of code an unknown number of times until a specific condition is met. For example, say we want to know how many times a given number can be divided by 2 before it is less than or equal to 1. If we know a specific number, such as 32, we can say 5 times, but for a given symbolic variable "NUMBER" which represents any number in the world, how many times is not known a priori (before hand). In this case, we could use a while loop to determine that answer:…

    • 391 Words
    • 2 Pages
    Satisfactory Essays
  • Good Essays

    Coupling metrics: It provides an indication of the "connectedness" of a module to other modules…

    • 431 Words
    • 2 Pages
    Good Essays
  • Good Essays

    PT1420 Assign7

    • 685 Words
    • 4 Pages

    It is a condition-controlled loop with predictable number of iterations. The loop starts at some number (usually the topmost number or zero), then counts down until it reaches the limit (usually zero or the topmost number), at which point it exist the loop. The other common type starts at zero or one, and increments until it reaches a destination number.…

    • 685 Words
    • 4 Pages
    Good Essays
  • Good Essays

    Senior Level Experience

    • 1237 Words
    • 5 Pages

    Test Planning manages the overall testing workload, quality assurance, and software defect management. Test Automation strives to develop automated scripts for testing and reach an optimum level of automated test cases within each software product. Test Software Execution is where the day to day software testing is performed to identify defects in application code and assist the business and applications in addressing and/or resolving the products defects in a timely manner.…

    • 1237 Words
    • 5 Pages
    Good Essays
  • Good Essays

    3. If a block of program code is composed of nested Loop statements and the outer loop count is 3 and the inner loop count is 6, how many times does the inner loop execute?…

    • 610 Words
    • 3 Pages
    Good Essays
  • Good Essays

    Software Engineering

    • 985 Words
    • 4 Pages

    I have many goals in mind for my life. I want to graduate university, possibly go to graduate school, and obtain a career in which I am happy and satisfied. Yes, I know this sounds very cliché as many people want to obtain this kind of life. I don’t mind obtaining a “normal” happy life as long as I am happy with it. I am familiar with Maslow’s Hierarchy of Needs and I want to make sure I fulfill my lower needs before I start trying to achieve my goals. I have never actually applied the GIOADA process to my decision making in the past. After reading the document that describes the GIOADA process, I will start applying this process to future decisions I make in life. Also, as I look back at some of the big decisions I made previously, I wish I applied the GIOADA process in making these decisions. That would have allowed me to more strongly analyze all the processes of the decision making.…

    • 985 Words
    • 4 Pages
    Good Essays

Related Topics