Skip to content

GraphQL Schema Reference

TestCase

GraphQL Schema definition

  • type TestCase {
  • id: String!
  • name: String
  • description: String
  • method: String
  • templateId: String @deprecated( reason: "This field is deprecated and has been superseded by 'libraryTestCaseId'. " )
  • libraryTestCaseId: String
  • mitreId: String
  • deprecated: Boolean
  • organizations: [Organization!]
  • defensiveLayers: [DefensiveLayer]
  • outcomeNotes: String
  • activityLogged: String @deprecated( reason: "Field is no longer supported" )
  • alertSeverity: String @deprecated( reason: "Field is no longer supported" )
  • outcomes: [String] @deprecated( reason: "Field is no longer supported" )
  • outcome: Outcome
  • operatorGuidance: String
  • redTools: [RedTool]
  • blueTools: [BlueTool]
  • metadata: [MetadataKeyValuePair]
  • redTeamMetadata: [MetadataKeyValuePair] @deprecated( reason: "This field is deprecated and has been superseded by 'metadata'. Metadata is now associated at the test case level." )
  • blueTeamMetadata: [MetadataKeyValuePair] @deprecated( reason: "This field is deprecated and has been superseded by 'metadata'. Metadata is now associated at the test case level." )
  • tags: [Tag]
  • phase: Phase
  • automationCmd: String
  • automationExecutor: String
  • automationCleanup: String
  • automationCleanupExecutor: String
  • automationArgument: [AutomationArgument]
  • executionArtifactIdInfo: [ExecutionArtifactIdInfo]
  • attackLogProcedures: [AttackLogProcedure]
  • status: String
  • offset: Int
  • targets: [Target]
  • sources: [Source]
  • detectionGuidance: [String]
  • preventionGuidance: [String]
  • detectionTime: TimelineEvent
  • attackStop: TimelineEvent
  • attackStart: TimelineEvent
  • references: [String]
  • # Data Ver is only relevant for ENV (non-Library) Test Cases.
  • # For new Assessments, this typically defaults to a value of 2 which allows
  • # recording Test Case Outcomes at a per-tool level.
  • # When set to 1, Outcome recording is in Legacy mode which records a single
  • # outcome for the Test Case and all associated tools
  • dataVer: Int
  • createTime: Float
  • updateTime: Float
  • defenseToolOutcomes: [DefenseToolOutcome]
  • }