@Override
  public void beforeTest(QTestUtil qt) throws Exception {
    if (enabled) {
      service = ScheduledQueryExecutionService.startScheduledQueryExecutorService(qt.getConf());
    }
  }
Adding this qtestoption enables the scheduled query service.
itests/util/src/main/java/org/apache/hadoop/hive/ql/scheduled/QTestScheduledQueryServiceProvider.java