@Override
  protected void payloadHandling() {
    if (this.payload != null) {
      JsonObject payload = this.payload;
      this.securedURL = payload.getString("securedURL");
      this.nonSecuredURL = payload.getString("nonSecuredURL");
      if (!this.securedURL.endsWith("/")) {
        this.securedURL += "/";
      }
      if (!this.nonSecuredURL.endsWith("/")) {
        this.nonSecuredURL += "/";
      }
      this.revision = payload.getString("revision");
      this.reportStyle = payload.getInt("reportStyle", 1);
      this.reporter.addEnvironmentParam("revision ", this.revision);
      this.reporter.addEnvironmentParam("secure-URL ", this.securedURL);
      this.reporter.addEnvironmentParam("non-secured-URL ", this.nonSecuredURL);
      this.reporter.addEnvironmentParam(
          "report-style ", this.reportStyle == 1 ? "Grouped" : "Individually");
      if (payload.get("tests") == null) {
        logger.warn(
            "Running all tests is not yet implemented. Currently supported: \r\n"
                + "webrtc \r\n"
                + "mediacapture-streams \r\n");
      } else {
        JsonArray testArray = payload.getJsonArray("tests");
        logger.info("Running tests for: " + testArray.toString());
        for (int index = 0; index < testArray.size(); index++) {
          tests.add(testArray.getString(index));
        }
      }
    }
  }
WPTest implementation of KiteTest. Checks and retrieves the tests and sub tests from WPT server.
Runs the tests and retrieves the results displayed on the page.
KITE-WPT-Test/src/main/java/org/webrtc/kite/wpt/WPTTest.java