Name | Date | Size | #Lines | LOC | ||
---|---|---|---|---|---|---|
.. | - | - | ||||
CtsCameraTestCases.reportlog.json | D | 03-May-2024 | 12 KiB | 1 | 1 | |
CtsUiHostTestCases.reportlog.json | D | 03-May-2024 | 261 | 1 | 1 | |
README | D | 03-May-2024 | 791 | 15 | 11 | |
parse_test_metrics.py | D | 03-May-2024 | 1.9 KiB | 59 | 34 |
README
1The parse_test_metrics.py script can be used to parse test metrics json files. Run the following 2command to see a demo: 3python parse_test_metrics.py CtsCameraTestCases.reportlog.json 4 5To parse multiple files, list all files as arguments. Try the following: 6python parse_test_metrics.py CtsCameraTestCases.reportlog.json CtsUiHostTestCases.reportlog.json 7python parse_test_metrics.py *.json 8 9Test metrics json files can be found in $CTS_ROOT/repository/results/$RESULT_DIR/report-log-files/ 10directory. 11 12The MetricsParser class defines functions to parse a json file. The _Parse function takes a filename 13as input, reads the json file and adds the json object to json_data. The _PrintJson function 14takes the filename and corresponding json_data and prints out the streams as key, value pairs. 15