跳到主要内容
Version: 2.0

Execution Case

Execution cases generated from a version of a test case in a test plan. Source test case content is read-only.

Available subscription event types:

  • ones:test:execution_case:created
  • ones:test:execution_case:updated
  • ones:test:execution_case:removed
  • ones:test:execution_case:source_changed
  • ones:test:execution_case:source_change_resolved

Read execution cases with POST /openapi/v3alpha/onesql/query and from execution_case; this API does not provide dedicated list or detail endpoints. Filter a plan with field178, a source test case with field170, and an execution case ID with uuid. Select field171.uuid/seq for the applied source version. OneSQL reads require read:project:issue.

Creating, updating, and removing require permission to edit the test plan; creating also requires permission to view the source test case. Source content and source-change status are read-only. This API does not expose source synchronization or confirmation of unaffected changes.

Authentication​

Security Scheme Type:

oauth2

OAuth Flow (authorizationCode):

Token URL: /oauth2/token

Authorization URL: /oauth2/authorize

Scopes:

  • read:project:issue: Read execution cases

  • write:project:issue: Create, update, and remove execution cases