Structure #
output/
├─ json/
│ ├─ test_results.json
│ ├─ test_results/
│ │ ├─ test case 1.xlsx
│ │ ├─ test case 2.xlsx
│ │ └─ ...
The json extractor will generate a test_results.json file and a test_results folder containing the details of the test cases results in xlsx format.
test_results.json #
The test_results.json file will contain the following properties:
test_case: the name of the test casestatus: the status of the test case. Can besuccess,failureorerrorerror.type: the type of the error if the test case failed or raised an errorerror.message: the error message if the test case failed or raised an errorsource.start: the start time of the source extractionsource.end: the end time of the source extractionsource.duration: the duration of the source extractionsource.count: the count of the source datasetexpected.start: the start time of the expected extractionexpected.end: the end time of the expected extractionexpected.duration: the duration of the expected extractionexpected.count: the count of the expected datasetcompare.start: the start time of the comparisoncompare.end: the end time of the comparisoncompare.duration: the duration of the comparisoncompare.success_rate: the success rate of the test case
test_results folder #
The test_results folder will contain one xlsx file per test case. Each file will contain a sheet with the gap between the source and the expected dataset
Example #
{
"test_case": "test 1",
"status": "passed",
"source": {
"start": "2024-02-05T17:08:36Z",
"end": "2024-02-05T17:08:36Z",
"duration": 0.0032982,
"count": 100
},
"expected": {
"start": "2024-02-05T17:08:36Z",
"end": "2024-02-05T17:08:36Z",
"duration": 6.0933333333333335e-05,
"count": 100
},
"compare": {
"start": "2024-02-05T17:08:36Z",
"end": "2024-02-05T17:08:36Z",
"duration": 0.0032982,
"success_rate": 1.0
}
},
{
"test_case": "test 2",
"status": "failed",
"source": {
"start": "2024-02-05T17:08:36Z",
"end": "2024-02-05T17:08:36Z",
"duration": 0.0032982,
"count": 100
},
"expected": {
"start": "2024-02-05T17:08:36Z",
"end": "2024-02-05T17:08:36Z",
"duration": 6.0933333333333335e-05,
"count": 100
},
"compare": {
"start": "2024-02-05T17:08:36Z",
"end": "2024-02-05T17:08:36Z",
"duration": 0.0032982,
"success_rate": 0.95
},
"error": {
"type": "Data",
"message": "Some rows are not equals between source dataset and expected dataset"
}
}