Automated Testing

version 1/090116 by Roger Carbol

  • Home page
  • Beginning
  • Previous
  • Next



  • Section: Test Tables

    A test's "steps" table has the form:

        Table <name>
      order  command  response  
      a number  text  text  

    The following is an example of a test table:

        Table of Steps for Verify Player Description
      order  command  response  
      1  "examine me"  "^As good\-looking as ever\.\n\n$"  
      2  "x myself"  "^As good\-looking as ever\.\n\n$"  

    The order is a number that keeps the steps running in sequential order.

    The command is the text that the player would type in.

    The response is a regular expression that should match the game's response.