facebook / screenshot-tests-for-android

Generate fast deterministic screenshots during Android instrumentation tests
http://facebook.github.io/screenshot-tests-for-android
Apache License 2.0
1.74k stars 229 forks source link

File names in metadata.json are lacking .png extension #297

Open technoir42 opened 3 years ago

technoir42 commented 3 years ago

metadata.xml produced by 0.13.0:

<?xml version='1.0' encoding='utf-8' ?>
<screenshots>
    <screenshot>
        <description />
        <name>unknown_unknown</name>
        <test_class>unknown</test_class>
        <test_name>unknown</test_name>
        <tile_width>1</tile_width>
        <tile_height>2</tile_height>
        <view_hierarchy>unknown_unknown_dump.json</view_hierarchy>
        <extras />
        <absolute_file_name>/sdcard/screenshots/com.my.test/screenshots-default/unknown_unknown.png
        </absolute_file_name>
        <relative_file_name>unknown_unknown.png</relative_file_name>
        <absolute_file_name>/sdcard/screenshots/com.my.test/screenshots-default/unknown_unknown_0_1.png
        </absolute_file_name>
    </screenshot>
</screenshots>

metadata.json produced by 0.14.0:

[
  {
    "absoluteFilesNames": [
      "/sdcard/screenshots/com.my.test/screenshots-default/unknown_unknown",
      "/sdcard/screenshots/com.my.test/screenshots-default/unknown_unknown_0_1"
    ],
    "axIssues": "unknown_unknown_issues.json",
    "extras": {},
    "name": "unknown_unknown",
    "relativeFileNames": [
      "unknown_unknown",
      "unknown_unknown_0_1"
    ],
    "testClass": "unknown",
    "testName": "unknown",
    "tileHeight": 2,
    "tileWidth": 1,
    "viewHierarchy": "unknown_unknown_dump.json"
  }
]

File names in JSON metadata are lacking .png extension.