code: public function pause(RunnerServiceContext $context)
      {
          if ($context instanceof QtiRunnerServiceContext) {
  
              $context->getTestSession()->suspend();
              $this->persist($context);
  
          } else {
              throw new \common_exception_InvalidArgumentType(
                  'QtiRunnerService',
                  'pause',
                  0,
                  'oat\taoQtiTest\models\runner\QtiRunnerServiceContext',
                  $context
              );
          }
  
          return true;
      }
docs: Sets the test to paused state
  @param RunnerServiceContext $context
  @return boolean
  @throws \common_Exception