ploosh.
Documentation
Structure
output/
├─ csv/
│ ├─ test_results.csv
│ ├─ test_results/
│ │ ├─ test case 1.xlsx
│ │ ├─ test case 2.xlsx
│ │ └─ ...
The csv extractor will generate a testresults.csv file and a testresults folder containing the details of the test cases results in xlsx format.
test_results.csv
Thetest_results.csv file will contain the following columns:
execution_id: the unique execution identifier for this test runname: the name of the test casestate: the state of the test case. Can bepassed,failedorerrorsource_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 datasetsourceexecutedaction: the executed action for the source (SQL query, file path, etc.)expected_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 datasetexpectedexecutedaction: the executed action for the expected dataset (SQL query, file path, etc.)compare_start: the start time of the comparisoncompare_end: the end time of the comparisoncompare_duration: the duration of the comparisonsuccess_rate: the success rate of the test caseerror_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 errorerrordetailfile_path: the path to the Excel file containing the comparison gap details (only present when there are data mismatches)
test_results folder
Thetest_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 datasetExample
executionid,name,state,sourcestart,sourceend,sourceduration,sourcecount,sourceexecutedaction,expectedstart,expectedend,expectedduration,expectedcount,expectedexecutedaction,comparestart,compareend,compareduration,successrate,errortype,errormessage,errordetailfilepath
testexecution123,test 1,passed,2024-02-05T17:08:36Z,2024-02-05T17:08:36Z,0.0032982,100,SELECT FROM table1,2024-02-05T17:08:36Z,2024-02-05T17:08:36Z,6.0933333333333335e-05,100,SELECT FROM table2,2024-02-05T17:08:36Z,2024-02-05T17:08:36Z,0.0032982,1.0,,,
testexecution123,test 2,failed,2024-02-05T17:08:36Z,2024-02-05T17:08:36Z,0.0032982,100,SELECT FROM table1,2024-02-05T17:08:36Z,2024-02-05T17:08:36Z,6.0933333333333335e-05,100,SELECT FROM table2,2024-02-05T17:08:36Z,2024-02-05T17:08:36Z,0.0032982,0.95,Data,Some rows are not equals between source dataset and expected dataset,/output/csv/test_results/test 2.xlsx