instance-jstestnode-input-schema.json 3.18 KB
Newer Older
1
{
2
  "$schema": "http://json-schema.org/draft-07/schema#",
3 4
  "description": "Parameters to instantiate JSTestNode",
  "additionalProperties": false,
5 6 7 8
  "required": [
    "test-suite",
    "test-runner"
  ],
9 10 11 12 13 14 15 16 17 18 19 20 21
  "properties": {
    "test-suite": {
      "description": "The test suite to run",
      "type": "string",
      "enum": [
        "jio",
        "renderjs"
      ]
    },
    "remote-access-url": {
      "description": "URL that controlled browser must access to run tests",
      "type": "string",
      "format": "uri",
22
      "default": "(the web server started by this instance)",
23
      "example": "https://softinst1234.host.vifib.net/"
24
    },
25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56
    "test-runner": {
      "oneOf": [
        {
          "type": "object",
          "title": "Selenium Server",
          "description": "Configuration for Selenium server",
          "additionalProperties": false,
          "required": [
            "desired-capabilities",
            "server-url",
            "target"
          ],
          "properties": {
            "target": {
              "description": "Target system",
              "type": "string",
              "const": "selenium-server"
            },
            "server-url": {
              "description": "URL of the selenium server",
              "type": "string",
              "format": "uri"
            },
            "verify-server-certificate": {
              "description": "Verify the SSL/TLS Certificats of the selenium server when using HTTPS",
              "type": "boolean",
              "default": true
            },
            "server-ca-certificate": {
              "description": "PEM encoded bundle of CA Certificates to verify the SSL/TLS Certificate of the selenium server when using HTTPS",
              "type": "string",
              "default": "root certificates from http://certifi.io/en/latest/"
57
            },
58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74
            "desired-capabilities": {
              "description": "Desired browser capabilities",
              "required": [
                "browserName"
              ],
              "type": "object",
              "properties": {
                "browserName": {
                  "description": "Name of the browser being used, for example firefox, chrome",
                  "type": "string"
                },
                "version": {
                  "description": "The browser version",
                  "type": "string"
                }
              }
            }
75
          }
76 77 78 79 80 81 82 83 84 85 86 87 88
        },
        {
          "type": "object",
          "title": "Firefox",
          "description": "Configuration for Firefox",
          "additionalProperties": false,
          "properties": {
            "target": {
              "description": "Target system",
              "const": "firefox",
              "type": "string",
              "default": "firefox"
            }
89
          }
90 91 92 93 94 95 96 97 98 99 100 101
        },
        {
          "type": "object",
          "title": "NodeJS",
          "description": "Configuration for NodeJS",
          "additionalProperties": false,
          "properties": {
            "target": {
              "description": "Target system",
              "const": "node",
              "type": "string"
            }
102 103
          }
        }
104 105
      ]
    }
106 107
  }
}