Automated Testing

version 1/090116 by Roger Carbol

  • Home page
  • Beginning
  • Previous
  • Next



  • Part 6 -- When Play Begins

    When play begins:
        if File of Reports exists:
            read File of Reports into Table of Reports;
        if File of Scripts exists:
            read File of Scripts into the Table of Executions;
        if the Table of Executions is not empty:
            repeat through the Table of Executions:
                repeat with item running through tests:
                    if the index of the item is the index entry:
                        now index of testcontroller is the index entry;
            repeat through the Table of Executions:
                if index of testcontroller is the index entry:
                    blank out the whole row;
            write File of Scripts from the Table of Executions;
            repeat with item running through tests:
                if the index of the item is the index of testcontroller:
                    try asserting the item;
        otherwise:
            if the Table of Reports is not empty:
                issue report;
                repeat through the Table of Reports:
                    blank out the whole row;
                write File of Reports from the Table of Reports.