Home | History | Annotate | only in /test/suite_harness/tools/cts-test-metrics
Up to higher level directory
NameDateSize
CtsCameraTestCases.reportlog.json21-Aug-201812K
CtsUiHostTestCases.reportlog.json21-Aug-2018261
parse_test_metrics.py21-Aug-20181.9K
README21-Aug-2018791

README

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