Skip to content

Commit

Permalink
report: add a spec
Browse files Browse the repository at this point in the history
Added the report specification for the report files in Qase format
  • Loading branch information
gibiw committed Jun 19, 2024
1 parent 91ea42c commit 9321821
Show file tree
Hide file tree
Showing 4 changed files with 239 additions and 0 deletions.
19 changes: 19 additions & 0 deletions report/schemas/models/attachment.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
type: object
properties:
content:
type: string
nullable: true
file_name:
type: string
nullable: true
file_path:
type: string
nullable: true
mime_type:
type: string
nullable: true
size:
type: number
nullable: true
id:
type: string
39 changes: 39 additions & 0 deletions report/schemas/models/step.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
type: object
properties:
id:
type: string
step_type:
type: string
data:
type: object
properties:
action:
type: string
expected_result:
type: string
nullable: true
parent_id:
type: string
nullable: true
execution:
type: object
properties:
status:
type: string
start_time:
type: number
nullable: true
duration:
type: number
nullable: true
end_time:
type: number
nullable: true
attachments:
type: array
items:
$ref: "./attachment.yaml"
steps:
type: array
items:
$ref: "./step.yaml"
90 changes: 90 additions & 0 deletions report/schemas/result.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,90 @@
type: object
properties:
attachments:
type: array
items:
$ref: "./models/attachment.yaml"
author:
type: string
nullable: true
execution:
type: object
properties:
status:
type: string
start_time:
type: number
nullable: true
end_time:
type: number
nullable: true
duration:
type: number
nullable: true
stacktrace:
type: string
nullable: true
thread:
type: string
nullable: true
fields:
type: array
nullable: true
items:
type: object
properties:
name:
type: string
value:
type: string
nullable: true
id:
type: string
message:
type: string
nullable: true
muted:
type: boolean
params:
type: array
nullable: true
items:
type: object
properties:
name:
type: string
value:
type: string
nullable: true
relations:
type: object
nullable: true
properties:
suite:
type: object
properties:
data:
type: array
items:
type: object
properties:
title:
type: string
public_id:
type: object
properties:
run_id:
type: number
nullable: true
signature:
type: string
nullable: true
steps:
type: array
items:
$ref: "./models/step.yaml"
testops_id:
type: number
nullable: true
title:
type: string
91 changes: 91 additions & 0 deletions report/schemas/root.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,91 @@
type: object
properties:
title:
type: string
description: title of the report
execution:
type: object
properties:
start_time:
type: number
description: start time of the report
end_time:
type: number
description: end time of the report
duration:
type: number
description: duration of the report
cumulative_duration:
description: Cumulative duration of all tests in the report
type: number
stats:
type: object
properties:
total:
type: number
description: total number of tests in the report
passed:
type: number
description: number of passed tests in the report
failed:
type: number
description: number of failed tests in the report
skipped:
type: number
description: number of skipped tests in the report
broken:
type: number
description: number of broken tests in the report
muted:
type: number
description: number of muted tests in the report
results:
type: array
description: list of results in the report
items:
type: object
properties:
duration:
type: number
description: duration of the test
id:
type: string
description: id of the test
status:
type: string
description: status of the test
thread:
type: string
nullable: true
description: thread of the test
title:
type: string
description: title of the test
threads:
type: array
description: list of threads in the report
nullable: true
items:
type: string
suites:
type: array
description: list of suites in the report
nullable: true
items:
type: string
environment:
type: string
description: environment of the report
nullable: true
host_data:
type: array
description: list of host data in the report. Like hostname, os, version etc.
items:
type: object
properties:
name:
type: string
description: name of the host data
value:
type: string
description: value of the host data

0 comments on commit 9321821

Please sign in to comment.