code: def run_all_clicked(self):
          
          self.reset_status()
  
          self.enable_busy_cursor()
          report = []
          fail_count = 0
          pass_count = 0
  
          index = 0
          for row in range(self.table.rowCount()):
              item = self.table.item(row, 0)
              status_item = self.table.item(row, 1)
              name_item = item.text()
  
              try:
                  index += 1
                  result = self.run_task(item, status_item, index=index)
                  if result:
                      # P for passed
                      report.append('P: %s\n' % name_item)
                      pass_count += 1
                  else:
                      report.append('F: %s\n' % name_item)
                      fail_count += 1
              except Exception as e:  # pylint: disable=W0703
                  LOGGER.exception(
                      'Batch execution failed. The exception: ' + str(e))
                  report.append('F: %s\n' % name_item)
                  fail_count += 1
                  self.disable_busy_cursor()
  
          try:
              report_path = self.write_report(
                  report, pass_count, fail_count)
              self.show_report(report_path)
          except IOError:
              # noinspection PyArgumentList,PyCallByClass,PyTypeChecker
              QMessageBox.question(self, 'Error',
                                         'Failed to write report file.')
              self.disable_busy_cursor()
          self.disable_busy_cursor()
docs: Run all scenario when pbRunAll is clicked.