Calliope JSON format¶
Calliope has its own JSON format. This can be used for multiple purposes:
- Exporting your results to a different tool
- Copying your results to a new report
- Getting insight on the Calliope database structure
Example file¶
Download our example file here: example_calliope_report.json
Structure¶
Report¶
- Parents:
- Children:
- Attributes
- id:
uuidID of the report. - profile_id:
integerID of the profile. - import_id:
uuidReference to the logs of the import into Calliope. - import_status:
enumDetermine if the import was successful, for example, if we fail to translate your file to the Calliope format (0=success, 1=failure). - date:
datetimeTimestamp of the report, this is used for the actual timeline of reports. - origin:
stringA reference to what kind of original format it was (e.g.cucumber_json,junit_xml,xunit_xml). Could be sometimes used for specific exceptions. - created_at:
datetimeTimestamp of when the report was created. - updated_at:
datetimeTimestamp of when the report was last changed. - test_suite_id:
test_suite_iddeprecated. - count_total, count_passed, count_...:
integerWhen something in a report changes, we cache the values to be able to quickly display the result. - cached_total, cached_passed, caches_...:
integerAlias for count_... attribute - build:
stringVariable set from import call for a user to refer to. - os:
stringVariable set from import call for a user to refer to. - platform:
stringVariable set from import call for a user to refer to. - containers:
array[container, container] Zero or more containers. - assets
array[asset, asset] Zero or more assets.
- id:
Container¶
- Parents:
- Children:
- 0..* containers
- 0..* results
- 0..* assets
- Attributes
- id:
uuidID of the container. - report_id:
uuidID of the parent report (optional, only set if the direct parent is a report). - container_id:
uuidID of the parent container(optional, can benullif the parent is a report). - title:
stringTitle of the container. - classification:
stringDepending on the origin of the container, it gets a classification. e.g. when the container was generated from a Cucumber scenario, the classification becomesScenario(optional). - count_total, count_passed, count_...:
integerCached values of the totals of all child results. - cached_total, cached_passed, caches_...:
integerAlias for count_... attribute. - position:
integerDetermines the order of the container to display in. - status:
stringcopies the status from its result children with the following priority: failed, broken, unknown, skipped, passed. - history_hash:
uuidUnique hash generated from thetitleof this container in combination with the hash of parent containers. Used to compare results of previous reports. - created_at:
datetimeTimestamp of when the container was created. - updated_at:
datetimeTimestamp of when the container was last changed. - containers:
array[container, container] Zero or more containers. - results:
array[result, result] Zero or more results. - assets
array[asset, asset] Zero or more assets.
- id:
Result¶
- Parents:
- Children:
- 0..* assets
- Attributes
- id:
uuidID of the result. - container_id:
uuidID of the parent container. - title:
stringTitle of the container. - status:
enum0=failed, 1=broken, 2=passed, 3=skipped, 4=unknown. - duration:
bigint - description:
string - exception_name:
string - exception_backtrace:
blob - exception_description:
blob - json_data:
blob - position
integerDetermines the order of the result to display in. - history_hash
uuidUnique hash generated from thetitleof this result in combination with the hash of parent containers. Used to compare results of previous reports. - created_at
datetimeTimestamp of when the result was created. - updated_at
datetimeTimestamp of when the result was last changed. - assets
array[asset, asset] Zero or more assets.
- id:
Asset¶
- Parents: One of the following
- Children: None
- Attributes
- id:
uuidID of the asset. - location:
stringpath to the asset stored on the server. - tag
stringused to distinguish between specific types of assets (optional). - name
stringname of the file (optional). - created_at
datetimeTimestamp of when the asset was created. - updated_at
datetimeTimestamp of when the asset was last changed. - url
stringURL to the API endpoint to call for the image (secure). - type
stringMIME Type of the file.
- id: