Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

comment on

( [id://3333]=superdoc: print w/replies, xml ) Need Help??
This leads me to suspect that software test development is also not best when it designed on a black-box.

Amen to that.

Years ago I was responsible for defining the test plan for an OS/2 replacement for a previos DOS app. I was given the IT department generated (black-box mandated) test plan for the original as a starting point. It consisted of a stack of green&white lined fanfold about 7 inches thick. The first 1 1/2" of that were the tests for checking the handling of the applications configuration file.

Of the 20-something lines in the file, 14 were fully qualified path names to various other files. For each of these there was a comprehensive set of tests that consisted of manually editing the line of the config file to introduce particular errors (non-existant drive letter; non-existant directory; space in a directory name; space in a filename; non-existant file; etc. etc.) and then running the program and ensuring that it detected the errors. This batch of tests (the first 1 1/2") took 2 people a week to run.

Looking inside the code, it was obvious that

  • If the errors were detected in one of the 14 lines, they would be discovered in all of them.
  • The program simply passes the path as read from the config file to the CRT open() and reported back whatever errors it found.

    Given that the waterfall development method required that these tests be re-run every time the program was modified--even if the change was a totally trivial spelling correction; or something major but in a completely unrelated part of the program--the cost of that "black box innocence" to the reality of the inner workings was huge over the 7 years and hundreds of versions that had been tested.


    Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
    Lingua non convalesco, consenesco et abolesco. -- Rule 1 has a caveat! -- Who broke the cabal?
    "Science is about questioning the status quo. Questioning authority".
    The "good enough" maybe good enough for the now, and perfection maybe unobtainable, but that should not preclude us from striving for perfection, when time, circumstance or desire allow.

    In reply to Re^2: Reading the manual and knowing if you are getting good by BrowserUk
    in thread Reading the manual and knowing if you are getting good by ghenry

    Title:
    Use:  <p> text here (a paragraph) </p>
    and:  <code> code here </code>
    to format your post; it's "PerlMonks-approved HTML":



    • Are you posting in the right place? Check out Where do I post X? to know for sure.
    • Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
      <code> <a> <b> <big> <blockquote> <br /> <dd> <dl> <dt> <em> <font> <h1> <h2> <h3> <h4> <h5> <h6> <hr /> <i> <li> <nbsp> <ol> <p> <small> <strike> <strong> <sub> <sup> <table> <td> <th> <tr> <tt> <u> <ul>
    • Snippets of code should be wrapped in <code> tags not <pre> tags. In fact, <pre> tags should generally be avoided. If they must be used, extreme care should be taken to ensure that their contents do not have long lines (<70 chars), in order to prevent horizontal scrolling (and possible janitor intervention).
    • Want more info? How to link or How to display code and escape characters are good places to start.
  • Log In?
    Username:
    Password:

    What's my password?
    Create A New User
    Domain Nodelet?
    Chatterbox?
    and the web crawler heard nothing...

    How do I use this?Last hourOther CB clients
    Other Users?
    Others sharing their wisdom with the Monastery: (4)
    As of 2024-04-23 07:33 GMT
    Sections?
    Information?
    Find Nodes?
    Leftovers?
      Voting Booth?

      No recent polls found