• Home
  • History
  • Annotate
  • only in this directory
NameDateSize

..09-Sep-20194 KiB

CtsCameraTestCases.reportlog.jsonH A D09-Sep-201912 KiB

CtsUiHostTestCases.reportlog.jsonH A D09-Sep-2019261

parse_test_metrics.pyH A D09-Sep-20191.9 KiB

READMEH A D09-Sep-2019791

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