Return to Video

01-23 Specifications Solution

  • 0:00 - 0:03
    The answer to this quiz is any answer is acceptable.
  • 0:03 - 0:06
    It's perfectly possible that the answer we expected from square root of 9 is 3.
  • 0:06 - 0:09
    In fact, that's what we would expect most of the time.
  • 0:09 - 0:14
    But also, -3 is a perfectly correct answer for the square root of 9.
  • 0:14 - 0:21
    The issue that we're getting at here is what's the specification for the software under test,
  • 0:21 - 0:23
    for our square root routine?
  • 0:23 - 0:25
    Is it defined to return the positive value? the negative value?
  • 0:25 - 0:27
    Can it return either of them?
  • 0:27 - 0:29
    And this is what we're getting at here
  • 0:29 - 0:32
    is that software always operates under some sort of a specification.
  • 0:32 - 0:35
    Of course, most of the time, specification isn't actually available to us
  • 0:35 - 0:37
    in some sort of a clear technical document.
  • 0:37 - 0:41
    Often the specification is vague or it's written down in English.
  • 0:41 - 0:46
    Part of our job as a tester is to help refine the specification by figuring these things out,
  • 0:46 -
    by figuring out what the acceptable answers really are.
Title:
01-23 Specifications Solution
Description:

01-23 Specifications Solution

more » « less
Team:
Udacity
Project:
CS258: Software Testing
Duration:
0:50
Udacity Robot edited English subtitles for cs258 unit1 17 s Specifications
Amara Bot added a translation

English subtitles

Incomplete

Revisions Compare revisions