Salesforce · JSON Structure

Salesforce Test Case Structure

Type: object Properties: 7 Required: 7
Fortune 500AIAnalyticsCloudCommerceCRMCustomer ServiceEnterpriseMarketingPlatformSales

TestCase is a JSON Structure definition published by Salesforce, describing 7 properties, of which 7 are required. It conforms to the https://json-structure.org/draft/2020-12/schema meta-schema.

Properties

endTime generatedData inputs startTime status testNumber testResults

Meta-schema: https://json-structure.org/draft/2020-12/schema

JSON Structure

Raw ↑
{
  "type": "object",
  "name": "TestCase",
  "properties": {
    "endTime": {
      "type": "string"
    },
    "generatedData": {
      "type": "object",
      "properties": {
        "actionsSequence": {
          "type": "string"
        },
        "invokedActions": {
          "type": "string"
        },
        "outcome": {
          "type": "string"
        },
        "sessionId": {
          "type": "string"
        },
        "topic": {
          "type": "string"
        },
        "citations": {
          "type": "string"
        }
      },
      "required": [
        "actionsSequence",
        "invokedActions",
        "outcome",
        "sessionId",
        "topic"
      ]
    },
    "inputs": {
      "type": "object",
      "properties": {
        "contextVariables": {
          "type": "object"
        },
        "conversationHistory": {
          "type": "array",
          "description": "",
          "items": {
            "type": "string"
          }
        },
        "utterance": {
          "type": "string"
        }
      },
      "required": [
        "contextVariables",
        "conversationHistory",
        "utterance"
      ]
    },
    "startTime": {
      "type": "string"
    },
    "status": {
      "type": "string"
    },
    "testNumber": {
      "type": "integer"
    },
    "testResults": {
      "type": "array",
      "description": "",
      "items": {
        "type": "object",
        "properties": {
          "actualValue": {
            "type": "string"
          },
          "endTime": {
            "type": "string"
          },
          "errorCode": {
            "type": "integer"
          },
          "expectedValue": {
            "type": "string"
          },
          "metricLabel": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "result": {
            "type": "string"
          },
          "score": {
            "type": "integer"
          },
          "startTime": {
            "type": "string"
          },
          "status": {
            "type": "string"
          },
          "metricExplainability": {
            "type": "string"
          }
        },
        "required": [
          "endTime",
          "errorCode",
          "metricLabel",
          "name",
          "score",
          "startTime",
          "status"
        ]
      }
    }
  },
  "required": [
    "endTime",
    "generatedData",
    "inputs",
    "startTime",
    "status",
    "testNumber",
    "testResults"
  ],
  "$schema": "https://json-structure.org/draft/2020-12/schema"
}