home *** CD-ROM | disk | FTP | other *** search
/ Current Shareware 1994 January / SHAR194.ISO / modem / jbtutor1.zip / LESSON14.TXT < prev    next >
Text File  |  1993-09-29  |  3KB  |  51 lines

  1. Testing the script
  2. ~~~~~~~~~~~~~~~~~~
  3.  
  4.         The previous 13 lessons have provided enough info to write a
  5. complete mailrun script + a couple enhancements.  Once you have a
  6. script, the next step is to test it.  The first test you should
  7. perform is a "sanity check"..print the script and review each line
  8. for obvious syntax errors (e.g., "missing" braces, extra spaces in
  9. lines, "missing" macro IDs, misspelled commands, etc.).  Run through
  10. the script in your mind, process by process..trace the sequence of
  11. events from start to finish.
  12.  
  13.         After you're satisfied that there's nothing obviously wrong
  14. with the script which would cause it to bomb out right away, it's
  15. time to check it out on-line.  This part is real easy..you just sit
  16. back and watch what happens.  Before you jump into this test, though,
  17. be sure you have:
  18.  
  19.         -- already configured the mail door on the board, i.e.,
  20. conferences you want scanned, protocol, etc., etc.
  21.  
  22.         -- already downloaded a mail packet from the BBS and have
  23. generated a .REP.  You'll want to test everything the script is
  24. supposed to do, which includes uploading a .REP if one exists.
  25.  
  26.         All right, it's time to run the script.  Bring up the dialing
  27. directory.  Is the "Linked Macro" for the BBS you want to call the
  28. correct macro?  Put the highlight bar over the BBS and press enter.
  29. Rub the sleep out of your eyes, because you'll need to be on your
  30. toes for the next couple of minutes (assuming you connect with the
  31. board).  Once you've connected with the BBS, pay careful attention to
  32. the status bar during script operation.  Are the "LOOK" statements
  33. appropriate?  Watch the reaction of the BBS to what the script is
  34. sending.  Everything OK?
  35.  
  36.         At this point, two things can happen -- the script could
  37. execute perfectly from start to finish.  If so, congratulations!..you
  38. are well on your way to having a rock-solid script.  Even if the
  39. script does everything perfectly the first time, I would recommend
  40. running it manually for at least three separate BBS sessions.  Be
  41. sure to observe the process each time.
  42.  
  43.         The second possibility is that an alarm will sound somewhere
  44. during the process..the macro screen will come up with one macro line
  45. highlighted and an error message displayed on the bottom of the
  46. screen.  Don't get discouraged if this happens, because it happens
  47. even to the best script writers.  This possibility leads to the final
  48. lesson in this first series -- Debugging -- coming up next lesson.
  49.  
  50. Jim
  51.