Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

screenshot artifacts don't get created #805

Closed
tachtevrenidis opened this issue Jun 29, 2018 · 13 comments
Closed

screenshot artifacts don't get created #805

tachtevrenidis opened this issue Jun 29, 2018 · 13 comments

Comments

@tachtevrenidis
Copy link

tachtevrenidis commented Jun 29, 2018

I am on RN 0.55 and Detox 8.0.0. I am running tests like this:

./node_modules/detox/local-cli/detox.js test -c ios.sim.debug --take-screenshots all --loglevel DEBUG --reuse

The artifacts folder is created and a subfolder with my test's name in it, but the folder is EMPTY. If I pass in --record-logs, I DO SEE the logs in the test artifacts folder.

The output from detox looks like this:

machinename:mobile user$ ./node_modules/detox/local-cli/detox.js test -c ios.sim.debug --take-screenshots all --loglevel DEBUG --reuse
node_modules/.bin/mocha e2e --opts e2e/mocha.opts --configuration ios.sim.debug --loglevel DEBUG  --reuse  --grep :android: --invert   --take-screenshots all  --artifacts-location "artifacts/ios.sim.debug.2018-06-29 22:19:02Z"


detox info 15:19:02: server listening on localhost:62245...
detox verb ws onOpen [object Object]
detox verb ws send: {"type":"login","params":{"sessionId":"1ac30632-0db5-6d5d-d994-20fafb42eb81","role":"tester"},"messageId":0}
detox wss 15:19:02: role=tester login (sessionId=1ac30632-0db5-6d5d-d994-20fafb42eb81)
detox wss 15:19:02: role=tester action=loginSuccess (sessionId=1ac30632-0db5-6d5d-d994-20fafb42eb81)
detox verb ws onMessage: {"type":"loginSuccess","params":{"sessionId":"1ac30632-0db5-6d5d-d994-20fafb42eb81","role":"tester"},"messageId":0}
detox verb ws  
detox verb 1: /usr/bin/xcrun simctl list -j 
detox verb 1: stdout: {
  "devicetypes" : [
    {
      "name" : "iPhone 4s",
      "identifier" : "com.apple.CoreSimulator.SimDeviceType.iPhone-4s"
    },
    {
      "name" : "iPhone 5",
      "identifier" : "com.apple.CoreSimulator.SimDeviceType.iPhone-5"
    },
    {
      "name" : "iPhone 5s",
      "identifier" : "com.apple.CoreSimulator.SimDeviceType.iPhone-5s"
    },
    {
      "name" : "iPhone 6",
      "identifier" : "com.apple.CoreSimulator.SimDeviceType.iPhone-6"
    },
    {
      "name" : "iPhone 6 Plus",
      "identifier" : "com.apple.CoreSimulator.SimDeviceType.iPhone-6-Plus"
    },
    {
      "name" : "iPhone 6s",
      "identifier" : "com.apple.CoreSimulator.SimDeviceType.iPhone-6s"
    },
    {
      "name" : "iPhone 6s Plus",
      "identifier" : "com.apple.CoreSimulator.SimDeviceType.iPhone-6s-Plus"
    },
    {
      "name" : "iPhone 7",
      "identifier" : "com.apple.CoreSimulator.SimDeviceType.iPhone-7"
    },
    {
      "name" : "iPhone 7 Plus",
      "identifier" : "com.apple.CoreSimulator.SimDeviceType.iPhone-7-Plus"
    },
    {
      "name" : "iPhone 8",
      "identifier" : "com.apple.CoreSimulator.SimDeviceType.iPhone-8"
    },
    {
      "name" : "iPhone 8 Plus",
      "identifier" : "com.apple.CoreSimulator.SimDeviceType.iPhone-8-Plus"
    },
    {
      "name" : "iPhone SE",
      "identifier" : "com.apple.CoreSimulator.SimDeviceType.iPhone-SE"
    },
    {
      "name" : "iPhone X",
      "identifier" : "com.apple.CoreSimulator.SimDeviceType.iPhone-X"
    },
    {
      "name" : "iPad 2",
      "identifier" : "com.apple.CoreSimulator.SimDeviceType.iPad-2"
    },
    {
      "name" : "iPad Retina",
      "identifier" : "com.apple.CoreSimulator.SimDeviceType.iPad-Retina"
    },
    {
      "name" : "iPad Air",
      "identifier" : "com.apple.CoreSimulator.SimDeviceType.iPad-Air"
    },
    {
      "name" : "iPad Air 2",
      "identifier" : "com.apple.CoreSimulator.SimDeviceType.iPad-Air-2"
    },
    {
      "name" : "iPad (5th generation)",
      "identifier" : "com.apple.CoreSimulator.SimDeviceType.iPad--5th-generation-"
    },
    {
      "name" : "iPad Pro (9.7-inch)",
      "identifier" : "com.apple.CoreSimulator.SimDeviceType.iPad-Pro--9-7-inch-"
    },
    {
      "name" : "iPad Pro (12.9-inch)",
      "identifier" : "com.apple.CoreSimulator.SimDeviceType.iPad-Pro"
    },
    {
      "name" : "iPad Pro (12.9-inch) (2nd generation)",
      "identifier" : "com.apple.CoreSimulator.SimDeviceType.iPad-Pro--12-9-inch---2nd-generation-"
    },
    {
      "name" : "iPad Pro (10.5-inch)",
      "identifier" : "com.apple.CoreSimulator.SimDeviceType.iPad-Pro--10-5-inch-"
    },
    {
      "name" : "iPad (6th generation)",
      "identifier" : "com.apple.CoreSimulator.SimDeviceType.iPad--6th-generation-"
    },
    {
      "name" : "Apple TV",
      "identifier" : "com.apple.CoreSimulator.SimDeviceType.Apple-TV-1080p"
    },
    {
      "name" : "Apple TV 4K",
      "identifier" : "com.apple.CoreSimulator.SimDeviceType.Apple-TV-4K-4K"
    },
    {
      "name" : "Apple TV 4K (at 1080p)",
      "identifier" : "com.apple.CoreSimulator.SimDeviceType.Apple-TV-4K-1080p"
    },
    {
      "name" : "Apple Watch - 38mm",
      "identifier" : "com.apple.CoreSimulator.SimDeviceType.Apple-Watch-38mm"
    },
    {
      "name" : "Apple Watch - 42mm",
      "identifier" : "com.apple.CoreSimulator.SimDeviceType.Apple-Watch-42mm"
    },
    {
      "name" : "Apple Watch Series 2 - 38mm",
      "identifier" : "com.apple.CoreSimulator.SimDeviceType.Apple-Watch-Series-2-38mm"
    },
    {
      "name" : "Apple Watch Series 2 - 42mm",
      "identifier" : "com.apple.CoreSimulator.SimDeviceType.Apple-Watch-Series-2-42mm"
    },
    {
      "name" : "Apple Watch Series 3 - 38mm",
      "identifier" : "com.apple.CoreSimulator.SimDeviceType.Apple-Watch-Series-3-38mm"
    },
    {
      "name" : "Apple Watch Series 3 - 42mm",
      "identifier" : "com.apple.CoreSimulator.SimDeviceType.Apple-Watch-Series-3-42mm"
    }
  ],
  "runtimes" : [
    {
      "buildversion" : "14E8301",
      "availability" : "(available)",
      "name" : "iOS 10.3",
      "identifier" : "com.apple.CoreSimulator.SimRuntime.iOS-10-3",
      "version" : "10.3.1"
    },
    {
      "buildversion" : "15A8401",
      "availability" : "(available)",
      "name" : "iOS 11.0",
      "identifier" : "com.apple.CoreSimulator.SimRuntime.iOS-11-0",
      "version" : "11.0.1"
    },
    {
      "buildversion" : "15E217",
      "availability" : "(available)",
      "name" : "iOS 11.3",
      "identifier" : "com.apple.CoreSimulator.SimRuntime.iOS-11-3",
      "version" : "11.3"
    },
    {
      "buildversion" : "15F79",
      "availability" : "(available)",
      "name" : "iOS 11.4",
      "identifier" : "com.apple.CoreSimulator.SimRuntime.iOS-11-4",
      "version" : "11.4"
    },
    {
      "buildversion" : "15L576",
      "availability" : "(available)",
      "name" : "tvOS 11.4",
      "identifier" : "com.apple.CoreSimulator.SimRuntime.tvOS-11-4",
      "version" : "11.4"
    },
    {
      "buildversion" : "15T212",
      "availability" : "(available)",
      "name" : "watchOS 4.3",
      "identifier" : "com.apple.CoreSimulator.SimRuntime.watchOS-4-3",
      "version" : "4.3"
    }
  ],
  "devices" : {
    "iOS 11.0" : [
      {
        "state" : "Shutdown",
        "availability" : "(available)",
        "name" : "iPhone 5s",
        "udid" : "399D450C-7CB5-41A6-A583-9929925380FC"
      },
      {
        "state" : "Shutdown",
        "availability" : "(available)",
        "name" : "iPhone 6",
        "udid" : "0B1A43B4-6BE6-4819-9CB0-DCAE23728193"
      },
      {
        "state" : "Shutdown",
        "availability" : "(available)",
        "name" : "iPhone 6 Plus",
        "udid" : "437F005C-768B-43AB-8980-609D80488BB6"
      },
      {
        "state" : "Shutdown",
        "availability" : "(available)",
        "name" : "iPhone 6s",
        "udid" : "047DE89E-36BD-464E-994B-83CD535DE975"
      },
      {
        "state" : "Shutdown",
        "availability" : "(available)",
        "name" : "iPhone 6s Plus",
        "udid" : "44E384D1-960D-4DD7-B7EC-45BE8F779F82"
      },
      {
        "state" : "Shutdown",
        "availability" : "(available)",
        "name" : "iPhone 7",
        "udid" : "536A3961-F99D-463E-83FB-BB426CC1C946"
      },
      {
        "state" : "Shutdown",
        "availability" : "(available)",
        "name" : "iPhone 7 Plus",
        "udid" : "1E22699E-E2E7-478A-BCBF-B87250DA1285"
      },
      {
        "state" : "Shutdown",
        "availability" : "(available)",
        "name" : "iPhone 8",
        "udid" : "44DBE1D5-4308-4FA3-8150-CF26CFEC0783"
      },
      {
        "state" : "Shutdown",
        "availability" : "(available)",
        "name" : "iPhone 8 Plus",
        "udid" : "79D8CB9F-D269-458D-88D9-BC3B15EB7969"
      },
      {
        "state" : "Shutdown",
        "availability" : "(available)",
        "name" : "iPhone 8 Plus",
        "udid" : "2C9572EA-1AE8-4C0C-9741-3B28D15C2453"
      },
      {
        "state" : "Shutdown",
        "availability" : "(available)",
        "name" : "iPhone SE",
        "udid" : "003FC67E-938C-4C3E-A4F9-D9B11385D9BD"
      },
      {
        "state" : "Shutdown",
        "availability" : "(available)",
        "name" : "iPhone X",
        "udid" : "C3D54A0A-BC13-45AE-BBAD-BC6E4C50AF40"
      },
      {
        "state" : "Shutdown",
        "availability" : "(available)",
        "name" : "iPad Air",
        "udid" : "E1492B5C-C5FF-4FBA-AE9D-C4BE3D98A414"
      },
      {
        "state" : "Shutdown",
        "availability" : "(available)",
        "name" : "iPad Air 2",
        "udid" : "AC9C8FF7-569C-4CBF-90A7-98A3ACEBFBC2"
      },
      {
        "state" : "Shutdown",
        "availability" : "(available)",
        "name" : "iPad (5th generation)",
        "udid" : "8721BBA1-49A3-4716-8DBB-4C499D07D0E1"
      },
      {
        "state" : "Shutdown",
        "availability" : "(available)",
        "name" : "iPad Pro (9.7-inch)",
        "udid" : "859C1285-CC90-49C8-80C1-C68A2F4B39CF"
      },
      {
        "state" : "Shutdown",
        "availability" : "(available)",
        "name" : "iPad Pro (12.9-inch)",
        "udid" : "1ACE6765-57CC-4FD4-98C5-CEFE4368CBA1"
      },
      {
        "state" : "Shutdown",
        "availability" : "(available)",
        "name" : "iPad Pro (12.9-inch) (2nd generation)",
        "udid" : "10794193-2423-4D3C-B7BB-B123F4ECB9C8"
      },
      {
        "state" : "Shutdown",
        "availability" : "(available)",
        "name" : "iPad Pro (10.5-inch)",
        "udid" : "7D474009-D3A9-4D2C-BD5D-5274E22C114F"
      }
    ],
    "tvOS 11.4" : [
      {
        "state" : "Shutdown",
        "availability" : "(available)",
        "name" : "Apple TV",
        "udid" : "3DDB6F82-3536-4FCF-B87B-AD31A3B0C92D"
      },
      {
        "state" : "Shutdown",
        "availability" : "(available)",
        "name" : "Apple TV 4K",
        "udid" : "D4532AD6-CEB1-4564-8244-7203280ED36D"
      },
      {
        "state" : "Shutdown",
        "availability" : "(available)",
        "name" : "Apple TV 4K (at 1080p)",
        "udid" : "6A8F6E13-7300-4F65-86D5-B819179464B4"
      }
    ],
    "com.apple.CoreSimulator.SimRuntime.tvOS-11-3" : [
      {
        "state" : "Shutdown",
        "availability" : " (unavailable, runtime profile not found)",
        "name" : "Apple TV",
        "udid" : "0D8F4787-BABD-415D-A573-4CB1826CAA27"
      },
      {
        "state" : "Shutdown",
        "availability" : " (unavailable, runtime profile not found)",
        "name" : "Apple TV 4K",
        "udid" : "1FF0CC0A-4244-45E0-B426-BC5B8614BFC5"
      },
      {
        "state" : "Shutdown",
        "availability" : " (unavailable, runtime profile not found)",
        "name" : "Apple TV 4K (at 1080p)",
        "udid" : "2F456C2D-2E2F-43AD-BF4F-B9820CC5B3CD"
      }
    ],
    "iOS 11.4" : [
      {
        "state" : "Shutdown",
        "availability" : "(available)",
        "name" : "iPhone 5s",
        "udid" : "7BC1DD56-C860-40A0-A737-D019135030D2"
      },
      {
        "state" : "Shutdown",
        "availability" : "(available)",
        "name" : "iPhone 6",
        "udid" : "286DE7FC-54D3-43A3-80AB-70932A0BF090"
      },
      {
        "state" : "Shutdown",
        "availability" : "(available)",
        "name" : "iPhone 6 Plus",
        "udid" : "9EB0DAB8-964E-4E27-958A-7FA11E20AFF1"
      },
      {
        "state" : "Shutdown",
        "availability" : "(available)",
        "name" : "iPhone 6s",
        "udid" : "A21ADA48-F8C6-42A0-9EBF-93078D16329F"
      },
      {
        "state" : "Shutdown",
        "availability" : "(available)",
        "name" : "iPhone 6s Plus",
        "udid" : "F8560965-0231-4ED0-A85D-0B6146CD68C4"
      },
      {
        "state" : "Booted",
        "availability" : "(available)",
        "name" : "iPhone 7",
        "udid" : "165A8462-2468-4262-8DCE-77B7A9533CAE"
      },
      {
        "state" : "Shutdown",
        "availability" : "(available)",
        "name" : "iPhone 7 Plus",
        "udid" : "6178FF3B-92DA-4ECD-9F75-95189D862CC5"
      },
      {
        "state" : "Booted",
        "availability" : "(available)",
        "name" : "iPhone 8",
        "udid" : "C4912CB4-F17E-4382-9956-F04452DD233B"
      },
      {
        "state" : "Booted",
        "availability" : "(available)",
        "name" : "iPhone 8 Plus",
        "udid" : "B510A61F-691D-4677-B298-0B97E3711744"
      },
      {
        "state" : "Shutdown",
        "availability" : "(available)",
        "name" : "iPhone 8 Plus-Detox",
        "udid" : "44C35A78-D87D-48E5-85D8-B022C8AB19E8"
      },
      {
        "state" : "Shutdown",
        "availability" : "(available)",
        "name" : "iPhone 8 Plus-Detox",
        "udid" : "3EDF96B7-736D-4018-8B3A-39705BB5853A"
      },
      {
        "state" : "Shutdown",
        "availability" : "(available)",
        "name" : "iPhone 8 Plus-Detox",
        "udid" : "8FE6DB67-207A-4E62-B845-B1181E7C65AD"
      },
      {
        "state" : "Shutdown",
        "availability" : "(available)",
        "name" : "iPhone 8 Plus-Detox",
        "udid" : "A94F169B-1D4C-4636-A192-F0AEFDAB956F"
      },
      {
        "state" : "Shutdown",
        "availability" : "(available)",
        "name" : "iPhone SE",
        "udid" : "3EBFA065-E8A4-4FC7-B73C-DD66E3DCC51F"
      },
      {
        "state" : "Shutdown",
        "availability" : "(available)",
        "name" : "iPhone X",
        "udid" : "AD4CBD58-82E5-44D3-ACE5-1772664DC208"
      },
      {
        "state" : "Shutdown",
        "availability" : "(available)",
        "name" : "iPad Air",
        "udid" : "4DAC28F1-5A48-4830-B637-F7EFDD76AAFC"
      },
      {
        "state" : "Shutdown",
        "availability" : "(available)",
        "name" : "iPad Air 2",
        "udid" : "EB6EEF48-8951-4F6D-A7C3-AD0ABFC06159"
      },
      {
        "state" : "Shutdown",
        "availability" : "(available)",
        "name" : "iPad (5th generation)",
        "udid" : "02C54931-196A-4517-94DD-A0A7404777F3"
      },
      {
        "state" : "Shutdown",
        "availability" : "(available)",
        "name" : "iPad Pro (9.7-inch)",
        "udid" : "2EBB7C72-E6AE-46A8-BEB6-88A7345055D6"
      },
      {
        "state" : "Shutdown",
        "availability" : "(available)",
        "name" : "iPad Pro (12.9-inch)",
        "udid" : "87C877F0-2B1B-487F-90D8-1C60F6702B15"
      },
      {
        "state" : "Shutdown",
        "availability" : "(available)",
        "name" : "iPad Pro (12.9-inch) (2nd generation)",
        "udid" : "25C527E0-8AF4-40EB-AC71-761FE6658BA7"
      },
      {
        "state" : "Shutdown",
        "availability" : "(available)",
        "name" : "iPad Pro (10.5-inch)",
        "udid" : "1FCC55EE-A1D2-4C6F-9238-97C414AA7EAB"
      }
    ],
    "iOS 11.3" : [
      {
        "state" : "Shutdown",
        "availability" : "(available)",
        "name" : "iPhone 5s",
        "udid" : "30953DDB-1EE6-4CB0-9B2A-A3960A6D2B7D"
      },
      {
        "state" : "Shutdown",
        "availability" : "(available)",
        "name" : "iPhone 6",
        "udid" : "3F3C6158-1205-46C2-9B66-455B6CDFDD42"
      },
      {
        "state" : "Shutdown",
        "availability" : "(available)",
        "name" : "iPhone 6 Plus",
        "udid" : "36136099-D798-4E1E-A979-AC9616F2A70D"
      },
      {
        "state" : "Shutdown",
        "availability" : "(available)",
        "name" : "iPhone 6s",
        "udid" : "200524A5-69F8-4F4E-9D54-421C9C5FAFFC"
      },
      {
        "state" : "Shutdown",
        "availability" : "(available)",
        "name" : "iPhone 6s Plus",
        "udid" : "64616BF8-02DE-4C8C-9637-C548591E2297"
      },
      {
        "state" : "Shutdown",
        "availability" : "(available)",
        "name" : "iPhone 7",
        "udid" : "ED944159-5A1C-4275-8F14-FC321B875840"
      },
      {
        "state" : "Shutdown",
        "availability" : "(available)",
        "name" : "iPhone 7 Plus",
        "udid" : "B1E7C490-2204-4490-B5E6-70E9A889C65A"
      },
      {
        "state" : "Shutdown",
        "availability" : "(available)",
        "name" : "iPhone 8",
        "udid" : "93932A54-AA31-45C5-9F0A-371AE576D016"
      },
      {
        "state" : "Shutdown",
        "availability" : "(available)",
        "name" : "iPhone 8 Plus",
        "udid" : "7D1DF74C-E782-428A-8576-A724615B16DD"
      },
      {
        "state" : "Shutdown",
        "availability" : "(available)",
        "name" : "iPhone 8 Plus",
        "udid" : "3CAFD757-0748-4A99-AED4-369A0D391789"
      },
      {
        "state" : "Shutdown",
        "availability" : "(available)",
        "name" : "iPhone SE",
        "udid" : "5BD57A3D-23A3-4A1E-8B26-E56B7AAFE3F6"
      },
      {
        "state" : "Shutdown",
        "availability" : "(available)",
        "name" : "iPhone X",
        "udid" : "39F6F105-98D2-456F-9406-29EC52EDCB21"
      },
      {
        "state" : "Shutdown",
        "availability" : "(available)",
        "name" : "iPad Air",
        "udid" : "EA6BD7D9-F495-42C1-B9CF-20672C89CBCC"
      },
      {
        "state" : "Shutdown",
        "availability" : "(available)",
        "name" : "iPad Air 2",
        "udid" : "3FC373C4-753B-440F-9892-F17A9FE4D1F3"
      },
      {
        "state" : "Shutdown",
        "availability" : "(available)",
        "name" : "iPad (5th generation)",
        "udid" : "82DB1623-1A23-4D7F-A41A-998ECB4663BC"
      },
      {
        "state" : "Shutdown",
        "availability" : "(available)",
        "name" : "iPad Pro (9.7-inch)",
        "udid" : "873405E9-B7DF-4ACC-ADCC-F1899B42A3D0"
      },
      {
        "state" : "Shutdown",
        "availability" : "(available)",
        "name" : "iPad Pro (12.9-inch)",
        "udid" : "44F66F09-8F17-4611-B771-8A3C126641E6"
      },
      {
        "state" : "Shutdown",
        "availability" : "(available)",
        "name" : "iPad Pro (12.9-inch) (2nd generation)",
        "udid" : "443E7135-9152-4746-9261-AEDD430D60A6"
      },
      {
        "state" : "Shutdown",
        "availability" : "(available)",
        "name" : "iPad Pro (10.5-inch)",
        "udid" : "C86059C7-3124-40EC-8BF6-01D54E6466CA"
      }
    ],
    "iOS 10.3" : [
      {
        "state" : "Shutdown",
        "availability" : "(available)",
        "name" : "iPhone 5",
        "udid" : "90F9D2AB-8BC6-4EA3-B579-817DEE291DAF"
      },
      {
        "state" : "Shutdown",
        "availability" : "(available)",
        "name" : "iPhone 5s",
        "udid" : "8C3D60DC-2236-4405-A643-DBF76C646AA1"
      },
      {
        "state" : "Shutdown",
        "availability" : "(available)",
        "name" : "iPhone 6",
        "udid" : "A719D1C2-8930-4B62-B8E2-BD2BFF55CE4E"
      },
      {
        "state" : "Shutdown",
        "availability" : "(available)",
        "name" : "iPhone 6 Plus",
        "udid" : "8318E761-43FD-4CD3-9ED1-45C80A3B6608"
      },
      {
        "state" : "Shutdown",
        "availability" : "(available)",
        "name" : "iPhone 6s",
        "udid" : "311AA380-BA40-416A-93B3-7DB3C83E4683"
      },
      {
        "state" : "Shutdown",
        "availability" : "(available)",
        "name" : "iPhone 6s Plus",
        "udid" : "9AEBFBD5-E944-4D24-BFBE-45AD8261EA99"
      },
      {
        "state" : "Shutdown",
        "availability" : "(available)",
        "name" : "iPhone 7",
        "udid" : "93F26620-70AE-41F1-B64A-37767BC355A9"
      },
      {
        "state" : "Shutdown",
        "availability" : "(available)",
        "name" : "iPhone 7 Plus",
        "udid" : "0660B6A2-59AB-4BF6-A3D4-24D148147B94"
      },
      {
        "state" : "Shutdown",
        "availability" : "(available)",
        "name" : "iPhone SE",
        "udid" : "D0F678C9-0CC6-496D-8EF9-385F78AF5FA0"
      },
      {
        "state" : "Shutdown",
        "availability" : "(available)",
        "name" : "iPad Air",
        "udid" : "D31AFD38-7FF9-4244-9CEB-28AFE3B689A0"
      },
      {
        "state" : "Shutdown",
        "availability" : "(available)",
        "name" : "iPad Air 2",
        "udid" : "47EA917B-F0A3-4C92-8134-FA43228B87A7"
      },
      {
        "state" : "Shutdown",
        "availability" : "(available)",
        "name" : "iPad (5th generation)",
        "udid" : "E0BE69B5-44ED-448F-90E5-233A17DB55EE"
      },
      {
        "state" : "Shutdown",
        "availability" : "(available)",
        "name" : "iPad Pro (9.7 inch)",
        "udid" : "B9F9ADC9-DF2F-4137-8490-FB3C24F06E7F"
      },
      {
        "state" : "Shutdown",
        "availability" : "(available)",
        "name" : "iPad Pro (12.9 inch)",
        "udid" : "6D63E36C-D714-45FB-8A16-C719A0A729A9"
      },
      {
        "state" : "Shutdown",
        "availability" : "(available)",
        "name" : "iPad Pro (12.9-inch) (2nd generation)",
        "udid" : "5B634077-F6D7-4B2F-8043-2F27BA733B62"
      },
      {
        "state" : "Shutdown",
        "availability" : "(available)",
        "name" : "iPad Pro (10.5-inch)",
        "udid" : "F0131AC0-9BB1-433F-877B-E54DF9607655"
      }
    ],
    "watchOS 4.3" : [
      {
        "state" : "Shutdown",
        "availability" : "(available)",
        "name" : "Apple Watch - 38mm",
        "udid" : "E64941AA-A574-4C0B-A78B-74941EFC2B26"
      },
      {
        "state" : "Shutdown",
        "availability" : "(available)",
        "name" : "Apple Watch - 42mm",
        "udid" : "2DE0661A-E841-4F54-A72F-E29386054A4D"
      },
      {
        "state" : "Shutdown",
        "availability" : "(available)",
        "name" : "Apple Watch Series 2 - 38mm",
        "udid" : "E58B8CCD-D63E-4A59-B230-39D98B9BA35E"
      },
      {
        "state" : "Shutdown",
        "availability" : "(available)",
        "name" : "Apple Watch Series 2 - 42mm",
        "udid" : "795FD9F4-F4A6-4AA5-903C-32039C6D9F57"
      },
      {
        "state" : "Shutdown",
        "availability" : "(available)",
        "name" : "Apple Watch Series 3 - 38mm",
        "udid" : "AE1BA366-B1D2-4AA0-94CA-A382D3E3C19C"
      },
      {
        "state" : "Shutdown",
        "availability" : "(available)",
        "name" : "Apple Watch Series 3 - 42mm",
        "udid" : "EA22A0C0-6140-4E73-9383-09857BCA3328"
      }
    ]
  },
  "pairs" : {
    "C8F2D0D6-DD06-4D0B-B2DE-E0C9AC1DEF0A" : {
      "watch" : {
        "name" : "Apple Watch Series 3 - 38mm",
        "udid" : "AE1BA366-B1D2-4AA0-94CA-A382D3E3C19C",
        "state" : "Shutdown"
      },
      "phone" : {
        "name" : "iPhone 8",
        "udid" : "C4912CB4-F17E-4382-9956-F04452DD233B",
        "state" : "Booted"
      },
      "state" : "(active, disconnected)"
    },
    "55916326-E46D-4C5A-9605-CF29C8109B1F" : {
      "watch" : {
        "name" : "Apple Watch Series 2 - 42mm",
        "udid" : "795FD9F4-F4A6-4AA5-903C-32039C6D9F57",
        "state" : "Shutdown"
      },
      "phone" : {
        "name" : "iPhone 7 Plus",
        "udid" : "6178FF3B-92DA-4ECD-9F75-95189D862CC5",
        "state" : "Shutdown"
      },
      "state" : "(active, disconnected)"
    },
    "B7DDFE4B-D087-482E-9E0A-523CFC581CF4" : {
      "watch" : {
        "name" : "Apple Watch Series 2 - 38mm",
        "udid" : "E58B8CCD-D63E-4A59-B230-39D98B9BA35E",
        "state" : "Shutdown"
      },
      "phone" : {
        "name" : "iPhone 7",
        "udid" : "165A8462-2468-4262-8DCE-77B7A9533CAE",
        "state" : "Booted"
      },
      "state" : "(active, disconnected)"
    },
    "74098116-370C-44E9-9A64-4615343606AB" : {
      "watch" : {
        "name" : "Apple Watch Series 3 - 42mm",
        "udid" : "EA22A0C0-6140-4E73-9383-09857BCA3328",
        "state" : "Shutdown"
      },
      "phone" : {
        "name" : "iPhone 8 Plus",
        "udid" : "B510A61F-691D-4677-B298-0B97E3711744",
        "state" : "Booted"
      },
      "state" : "(active, disconnected)"
    }
  }
}
 
detox verb 2: applesimutils --list --byType "iPhone 8" --byOS "11.4" 
detox info 2: Searching for device matching iPhone 8... 
detox verb 2: stdout: [
  {
    "deviceType" : {
      "name" : "iPhone 8",
      "identifier" : "com.apple.CoreSimulator.SimDeviceType.iPhone-8"
    },
    "state" : "Booted",
    "availability" : "(available)",
    "name" : "iPhone 8",
    "udid" : "C4912CB4-F17E-4382-9956-F04452DD233B",
    "os" : {
      "version" : "11.4",
      "availability" : "(available)",
      "name" : "iOS 11.4",
      "identifier" : "com.apple.CoreSimulator.SimRuntime.iOS-11-4",
      "buildversion" : "15F79"
    }
  }
]
 
detox verb 3: applesimutils --list --byId "C4912CB4-F17E-4382-9956-F04452DD233B" 
detox verb 3: stdout: [
  {
    "deviceType" : {
      "name" : "iPhone 8",
      "identifier" : "com.apple.CoreSimulator.SimDeviceType.iPhone-8"
    },
    "state" : "Booted",
    "availability" : "(available)",
    "name" : "iPhone 8",
    "udid" : "C4912CB4-F17E-4382-9956-F04452DD233B",
    "os" : {
      "version" : "11.4",
      "availability" : "(available)",
      "name" : "iOS 11.4",
      "identifier" : "com.apple.CoreSimulator.SimRuntime.iOS-11-4",
      "buildversion" : "15F79"
    }
  }
]
 
detox verb 4: /usr/bin/xcrun simctl terminate C4912CB4-F17E-4382-9956-F04452DD233B com.company.example.product 
detox info 4: Terminating com.company.example.product... 
detox info 4: com.company.example.product terminated 
detox verb 5: /bin/cat /dev/null >/Users/user/Library/Developer/CoreSimulator/Devices/C4912CB4-F17E-4382-9956-F04452DD233B/data/tmp/detox.last_launch_app_log.out 2>/Users/user/Library/Developer/CoreSimulator/Devices/C4912CB4-F17E-4382-9956-F04452DD233B/data/tmp/detox.last_launch_app_log.err && SIMCTL_CHILD_DYLD_INSERT_LIBRARIES="/Users/user/Library/Detox/ios/6835fdc9621ba06e099f505790cc7b06d2e6c1b5/Detox.framework/Detox" /usr/bin/xcrun simctl launch --stdout=/tmp/detox.last_launch_app_log.out --stderr=/tmp/detox.last_launch_app_log.err C4912CB4-F17E-4382-9956-F04452DD233B com.company.example.product --args -detoxServer ws://localhost:62245 -detoxSessionId 1ac30632-0db5-6d5d-d994-20fafb42eb81 
detox info 5: Launching com.company.example.product... 
detox verb 5: stdout: com.company.example.product: 80622
 
detox info 5: com.company.example.product launched. The stdout and stderr logs were recreated, you can watch them with:
        tail -F /Users/user/Library/Developer/CoreSimulator/Devices/C4912CB4-F17E-4382-9956-F04452DD233B/data/tmp/detox.last_launch_app_log.{out,err} 
detox verb ws send: {"type":"isReady","params":{},"messageId":-1000}
detox wss 15:19:04: role=tester action=isReady (sessionId=1ac30632-0db5-6d5d-d994-20fafb42eb81)
detox wss 15:19:04: role=testee not connected, cannot fw action (sessionId=1ac30632-0db5-6d5d-d994-20fafb42eb81)
detox wss 15:19:05: role=testee login (sessionId=1ac30632-0db5-6d5d-d994-20fafb42eb81)
detox wss 15:19:05: role=testee action=loginSuccess (sessionId=1ac30632-0db5-6d5d-d994-20fafb42eb81)
detox wss 15:19:07: role=testee action=ready (sessionId=1ac30632-0db5-6d5d-d994-20fafb42eb81)
detox verb ws onMessage: {"type":"ready","messageId":-1000,"params":{}}
detox verb ws  
  product Test Suite
detox verb 6: /usr/bin/xcrun simctl terminate C4912CB4-F17E-4382-9956-F04452DD233B com.company.example.product 
detox info 6: Terminating com.company.example.product... 
detox info 6: com.company.example.product terminated 
detox verb 7: /usr/bin/xcrun simctl uninstall C4912CB4-F17E-4382-9956-F04452DD233B com.company.example.product 
detox info 7: Uninstalling com.company.example.product... 
detox wss 15:19:07: role=testee disconnect (sessionId=1ac30632-0db5-6d5d-d994-20fafb42eb81)
detox info 7: com.company.example.product uninstalled 
detox verb 8: /usr/bin/xcrun simctl install C4912CB4-F17E-4382-9956-F04452DD233B "/Users/user/Development/odsp-common-metro/items-view/mobile/ios/build/Build/Products/Debug-iphonesimulator/product.app" 
detox info 8: Installing /Users/user/Development/odsp-common-metro/items-view/mobile/ios/build/Build/Products/Debug-iphonesimulator/product.app... 
detox info 8: /Users/user/Development/odsp-common-metro/items-view/mobile/ios/build/Build/Products/Debug-iphonesimulator/product.app installed 
detox verb 9: /bin/cat /dev/null >/Users/user/Library/Developer/CoreSimulator/Devices/C4912CB4-F17E-4382-9956-F04452DD233B/data/tmp/detox.last_launch_app_log.out 2>/Users/user/Library/Developer/CoreSimulator/Devices/C4912CB4-F17E-4382-9956-F04452DD233B/data/tmp/detox.last_launch_app_log.err && SIMCTL_CHILD_DYLD_INSERT_LIBRARIES="/Users/user/Library/Detox/ios/6835fdc9621ba06e099f505790cc7b06d2e6c1b5/Detox.framework/Detox" /usr/bin/xcrun simctl launch --stdout=/tmp/detox.last_launch_app_log.out --stderr=/tmp/detox.last_launch_app_log.err C4912CB4-F17E-4382-9956-F04452DD233B com.company.example.product --args -detoxServer ws://localhost:62245 -detoxSessionId 1ac30632-0db5-6d5d-d994-20fafb42eb81 
detox info 9: Launching com.company.example.product... 
detox verb 9: stdout: com.company.example.product: 80640
 
detox info 9: com.company.example.product launched. The stdout and stderr logs were recreated, you can watch them with:
        tail -F /Users/user/Library/Developer/CoreSimulator/Devices/C4912CB4-F17E-4382-9956-F04452DD233B/data/tmp/detox.last_launch_app_log.{out,err} 
detox verb ws send: {"type":"isReady","params":{},"messageId":-1000}
detox wss 15:19:10: role=tester action=isReady (sessionId=1ac30632-0db5-6d5d-d994-20fafb42eb81)
detox wss 15:19:10: role=testee not connected, cannot fw action (sessionId=1ac30632-0db5-6d5d-d994-20fafb42eb81)
detox wss 15:19:11: role=testee login (sessionId=1ac30632-0db5-6d5d-d994-20fafb42eb81)
detox wss 15:19:11: role=testee action=loginSuccess (sessionId=1ac30632-0db5-6d5d-d994-20fafb42eb81)
detox wss 15:19:13: role=testee action=ready (sessionId=1ac30632-0db5-6d5d-d994-20fafb42eb81)
detox verb ws onMessage: {"type":"ready","messageId":-1000,"params":{}}
detox verb ws  
detox verb ws send: {"type":"invoke","params":{"target":{"type":"Invocation","value":{"target":{"type":"Class","value":"GREYCondition"},"method":"detoxConditionForElementMatched:","args":[{"type":"Invocation","value":{"target":{"type":"EarlGrey","value":"instance"},"method":"detox_selectElementWithMatcher:","args":[{"type":"Invocation","value":{"target":{"type":"Class","value":"GREYMatchers"},"method":"detoxMatcherForBoth:and:","args":[{"type":"Invocation","value":{"target":{"type":"Class","value":"GREYMatchers"},"method":"matcherForAccessibilityID:","args":[{"type":"NSString","value":"DataSourcesView"}]}},{"type":"Invocation","value":{"target":{"type":"Class","value":"GREYMatchers"},"method":"matcherForSufficientlyVisible","args":[]}}]}}]}}]}},"method":"waitWithTimeout:","args":[{"type":"CGFloat","value":1}]},"messageId":1}
detox wss 15:19:13: role=tester action=invoke (sessionId=1ac30632-0db5-6d5d-d994-20fafb42eb81)
detox wss 15:19:13: role=testee action=invokeResult (sessionId=1ac30632-0db5-6d5d-d994-20fafb42eb81)
detox verb ws onMessage: {"type":"invokeResult","messageId":1,"params":{"result":"(null)"}}
detox verb ws  
detox verb ws send: {"type":"invoke","params":{"target":{"type":"Invocation","value":{"target":{"type":"EarlGrey","value":"instance"},"method":"detox_selectElementWithMatcher:","args":[{"type":"Invocation","value":{"target":{"type":"Class","value":"GREYMatchers"},"method":"matcherForAccessibilityID:","args":[{"type":"NSString","value":"dataSourceCell-Graph"}]}}]}},"method":"assertWithMatcher:","args":[{"type":"Invocation","value":{"target":{"type":"Class","value":"GREYMatchers"},"method":"matcherForSufficientlyVisible","args":[]}}]},"messageId":2}
detox wss 15:19:13: role=tester action=invoke (sessionId=1ac30632-0db5-6d5d-d994-20fafb42eb81)
detox wss 15:19:13: role=testee action=invokeResult (sessionId=1ac30632-0db5-6d5d-d994-20fafb42eb81)
detox verb ws onMessage: {"type":"invokeResult","messageId":2,"params":{"result":"(GREYElementInteraction)"}}
detox verb ws  
detox verb ws send: {"type":"invoke","params":{"target":{"type":"Invocation","value":{"target":{"type":"EarlGrey","value":"instance"},"method":"detox_selectElementWithMatcher:","args":[{"type":"Invocation","value":{"target":{"type":"Class","value":"GREYMatchers"},"method":"matcherForAccessibilityID:","args":[{"type":"NSString","value":"dataSourceCell-Graph"}]}}]}},"method":"performAction:","args":[{"type":"Invocation","value":{"target":{"type":"Class","value":"GREYActions"},"method":"actionForTap","args":[]}}]},"messageId":3}
detox wss 15:19:13: role=tester action=invoke (sessionId=1ac30632-0db5-6d5d-d994-20fafb42eb81)
detox wss 15:19:13: role=testee action=invokeResult (sessionId=1ac30632-0db5-6d5d-d994-20fafb42eb81)
detox verb ws onMessage: {"type":"invokeResult","messageId":3,"params":{"result":"(GREYElementInteraction)"}}
detox verb ws  
detox verb ws send: {"type":"invoke","params":{"target":{"type":"Invocation","value":{"target":{"type":"EarlGrey","value":"instance"},"method":"detox_selectElementWithMatcher:","args":[{"type":"Invocation","value":{"target":{"type":"Class","value":"GREYMatchers"},"method":"matcherForAccessibilityID:","args":[{"type":"NSString","value":"EnterAccountEmail"}]}}]}},"method":"performAction:","args":[{"type":"Invocation","value":{"target":{"type":"Class","value":"GREYActions"},"method":"actionForTypeText:","args":[{"type":"NSString","value":"producttest@onedrivemobile.oncompany.com"}]}}]},"messageId":4}
detox wss 15:19:13: role=tester action=invoke (sessionId=1ac30632-0db5-6d5d-d994-20fafb42eb81)
detox wss 15:19:16: role=testee action=invokeResult (sessionId=1ac30632-0db5-6d5d-d994-20fafb42eb81)
detox verb ws onMessage: {"type":"invokeResult","messageId":4,"params":{"result":"(GREYElementInteraction)"}}
detox verb ws  
detox verb ws send: {"type":"invoke","params":{"target":{"type":"Invocation","value":{"target":{"type":"EarlGrey","value":"instance"},"method":"detox_selectElementWithMatcher:","args":[{"type":"Invocation","value":{"target":{"type":"Class","value":"GREYMatchers"},"method":"detoxMatcherForBoth:and:","args":[{"type":"Invocation","value":{"target":{"type":"Class","value":"GREYMatchers"},"method":"detoxMatcherForClass:","args":[{"type":"NSString","value":"_UIAlertControllerActionView"}]}},{"type":"Invocation","value":{"target":{"type":"Class","value":"GREYMatchers"},"method":"detox_matcherForAccessibilityLabel:","args":[{"type":"NSString","value":"Done"}]}}]}}]}},"method":"performAction:","args":[{"type":"Invocation","value":{"target":{"type":"Class","value":"GREYActions"},"method":"actionForTap","args":[]}}]},"messageId":5}
detox wss 15:19:16: role=tester action=invoke (sessionId=1ac30632-0db5-6d5d-d994-20fafb42eb81)
detox wss 15:19:17: role=testee action=invokeResult (sessionId=1ac30632-0db5-6d5d-d994-20fafb42eb81)
detox verb ws onMessage: {"type":"invokeResult","messageId":5,"params":{"result":"(GREYElementInteraction)"}}
detox verb ws  
detox verb ws send: {"type":"invoke","params":{"target":{"type":"Invocation","value":{"target":{"type":"Class","value":"GREYCondition"},"method":"detoxConditionForElementMatched:","args":[{"type":"Invocation","value":{"target":{"type":"EarlGrey","value":"instance"},"method":"detox_selectElementWithMatcher:","args":[{"type":"Invocation","value":{"target":{"type":"Class","value":"GREYMatchers"},"method":"detoxMatcherForBoth:and:","args":[{"type":"Invocation","value":{"target":{"type":"Class","value":"GREYMatchers"},"method":"detoxMatcherForBoth:and:","args":[{"type":"Invocation","value":{"target":{"type":"Class","value":"GREYMatchers"},"method":"detox_matcherForAccessibilityLabel:","args":[{"type":"NSString","value":"Enter password"}]}},{"type":"Invocation","value":{"target":{"type":"Class","value":"GREYMatchers"},"method":"matcherForAccessibilityValue:","args":[{"type":"NSString","value":"Password"}]}}]}},{"type":"Invocation","value":{"target":{"type":"Class","value":"GREYMatchers"},"method":"matcherForSufficientlyVisible","args":[]}}]}}]}}]}},"method":"waitWithTimeout:","args":[{"type":"CGFloat","value":3}]},"messageId":6}
detox verb ws send: {"type":"invoke","params":{"target":{"type":"Invocation","value":{"target":{"type":"EarlGrey","value":"instance"},"method":"detox_selectElementWithMatcher:","args":[{"type":"Invocation","value":{"target":{"type":"Class","value":"GREYMatchers"},"method":"detoxMatcherForBoth:and:","args":[{"type":"Invocation","value":{"target":{"type":"Class","value":"GREYMatchers"},"method":"detoxMatcherForBoth:and:","args":[{"type":"Invocation","value":{"target":{"type":"Class","value":"GREYMatchers"},"method":"detox_matcherForAccessibilityLabel:","args":[{"type":"NSString","value":"Enter password"}]}},{"type":"Invocation","value":{"target":{"type":"Class","value":"GREYMatchers"},"method":"matcherForAccessibilityValue:","args":[{"type":"NSString","value":"Password"}]}}]}},{"type":"Invocation","value":{"target":{"type":"Class","value":"GREYMatchers"},"method":"matcherForSufficientlyVisible","args":[]}}]}}]}},"method":"performAction:","args":[{"type":"Invocation","value":{"target":{"type":"Class","value":"GREYActions"},"method":"actionForTypeText:","args":[{"type":"NSString","value":"P@ssword1"}]}}]},"messageId":7}
detox wss 15:19:17: role=tester action=invoke (sessionId=1ac30632-0db5-6d5d-d994-20fafb42eb81)
detox wss 15:19:17: role=tester action=invoke (sessionId=1ac30632-0db5-6d5d-d994-20fafb42eb81)
detox wss 15:19:20: role=testee action=testFailed (sessionId=1ac30632-0db5-6d5d-d994-20fafb42eb81)
detox verb ws onMessage: {"type":"testFailed","messageId":7,"params":{"details":"Cannot find UI element.\nException with Action: {\n  \"Action Name\" : \"Type 'P@ssword1'\",\n  \"Element Matcher\" : \"(((((((respondsToSelector(isAccessibilityElement) && isAccessibilityElement) && accessibilityLabel('Enter password')) && !(descendantThatMatches((kindOfClass('RCTTextView') && ((respondsToSelector(isAccessibilityElement) && isAccessibilityElement) && accessibilityLabel('Enter password')))))) && ((respondsToSelector(isAccessibilityElement) && isAccessibilityElement) && accessibilityValue('Password'))) && matcherForSufficientlyVisible(>=0.750000)) && !(kindOfClass('RCTScrollView'))) || (kindOfClass('UIScrollView') && ((kindOfClass('UIView') || respondsToSelector(accessibilityContainer)) && ancestorThatMatches(((((((respondsToSelector(isAccessibilityElement) && isAccessibilityElement) && accessibilityLabel('Enter password')) && !(descendantThatMatches((kindOfClass('RCTTextView') && ((respondsToSelector(isAccessibilityElement) && isAccessibilityElement) && accessibilityLabel('Enter password')))))) && ((respondsToSelector(isAccessibilityElement) && isAccessibilityElement) && accessibilityValue('Password'))) && matcherForSufficientlyVisible(>=0.750000)) && kindOfClass('RCTScrollView'))))))\",\n  \"Recovery Suggestion\" : \"Check if the element exists in the UI hierarchy printed below. If it exists, adjust the matcher so that it accurately matches element.\"\n}\n\nError Trace: [\n  {\n    \"Description\" : \"Interaction cannot continue because the desired element was not found.\",\n    \"Error Domain\" : \"com.google.earlgrey.ElementInteractionErrorDomain\",\n    \"Error Code\" : \"0\",\n    \"File Name\" : \"GREYElementInteraction.m\",\n    \"Function Name\" : \"-[GREYElementInteraction matchedElementsWithTimeout:error:]\",\n    \"Line\" : \"124\"\n  }\n]"}}
detox verb ws  
Already signed in -- skipping auth
expecting element with name Documents
detox verb ws send: {"type":"invoke","params":{"target":{"type":"Invocation","value":{"target":{"type":"EarlGrey","value":"instance"},"method":"detox_selectElementWithMatcher:","args":[{"type":"Invocation","value":{"target":{"type":"Class","value":"GREYMatchers"},"method":"matcherForAccessibilityID:","args":[{"type":"NSString","value":"Documents"}]}}]}},"method":"assertWithMatcher:","args":[{"type":"Invocation","value":{"target":{"type":"Class","value":"GREYMatchers"},"method":"matcherForSufficientlyVisible","args":[]}}]},"messageId":8}
detox wss 15:19:20: role=tester action=invoke (sessionId=1ac30632-0db5-6d5d-d994-20fafb42eb81)
detox wss 15:19:20: role=testee action=invokeResult (sessionId=1ac30632-0db5-6d5d-d994-20fafb42eb81)
detox verb ws onMessage: {"type":"invokeResult","messageId":8,"params":{"result":"(GREYElementInteraction)"}}
detox verb ws  
expecting item commanding sheet to appear after tap
detox verb ws send: {"type":"invoke","params":{"target":{"type":"Invocation","value":{"target":{"type":"EarlGrey","value":"instance"},"method":"detox_selectElementWithMatcher:","args":[{"type":"Invocation","value":{"target":{"type":"Class","value":"GREYMatchers"},"method":"matcherForAccessibilityID:","args":[{"type":"NSString","value":"Documents_itemCommanding"}]}}]}},"method":"performAction:","args":[{"type":"Invocation","value":{"target":{"type":"Class","value":"GREYActions"},"method":"actionForTap","args":[]}}]},"messageId":9}
detox wss 15:19:20: role=tester action=invoke (sessionId=1ac30632-0db5-6d5d-d994-20fafb42eb81)
detox wss 15:19:21: role=testee action=invokeResult (sessionId=1ac30632-0db5-6d5d-d994-20fafb42eb81)
detox verb ws onMessage: {"type":"invokeResult","messageId":9,"params":{"result":"(GREYElementInteraction)"}}
detox verb ws  
detox verb ws send: {"type":"invoke","params":{"target":{"type":"Invocation","value":{"target":{"type":"EarlGrey","value":"instance"},"method":"detox_selectElementWithMatcher:","args":[{"type":"Invocation","value":{"target":{"type":"Class","value":"GREYMatchers"},"method":"matcherForAccessibilityID:","args":[{"type":"NSString","value":"itemCommandingSheet"}]}}]}},"method":"assertWithMatcher:","args":[{"type":"Invocation","value":{"target":{"type":"Class","value":"GREYMatchers"},"method":"matcherForSufficientlyVisible","args":[]}}]},"messageId":10}
detox wss 15:19:21: role=tester action=invoke (sessionId=1ac30632-0db5-6d5d-d994-20fafb42eb81)
detox wss 15:19:21: role=testee action=invokeResult (sessionId=1ac30632-0db5-6d5d-d994-20fafb42eb81)
detox verb ws onMessage: {"type":"invokeResult","messageId":10,"params":{"result":"(GREYElementInteraction)"}}
detox verb ws  
detox verb ws send: {"type":"invoke","params":{"target":{"type":"Invocation","value":{"target":{"type":"EarlGrey","value":"instance"},"method":"detox_selectElementWithMatcher:","args":[{"type":"Invocation","value":{"target":{"type":"Class","value":"GREYMatchers"},"method":"matcherForAccessibilityID:","args":[{"type":"NSString","value":"Documents_itemCommanding"}]}}]}},"method":"performAction:","args":[{"type":"Invocation","value":{"target":{"type":"Class","value":"GREYActions"},"method":"actionForTap","args":[]}}]},"messageId":11}
detox wss 15:19:21: role=tester action=invoke (sessionId=1ac30632-0db5-6d5d-d994-20fafb42eb81)
detox wss 15:19:21: role=testee action=invokeResult (sessionId=1ac30632-0db5-6d5d-d994-20fafb42eb81)
detox verb ws onMessage: {"type":"invokeResult","messageId":11,"params":{"result":"(GREYElementInteraction)"}}
detox verb ws  
which has children, tapping it
detox verb ws send: {"type":"invoke","params":{"target":{"type":"Invocation","value":{"target":{"type":"EarlGrey","value":"instance"},"method":"detox_selectElementWithMatcher:","args":[{"type":"Invocation","value":{"target":{"type":"Class","value":"GREYMatchers"},"method":"matcherForAccessibilityID:","args":[{"type":"NSString","value":"Documents"}]}}]}},"method":"performAction:","args":[{"type":"Invocation","value":{"target":{"type":"Class","value":"GREYActions"},"method":"actionForTap","args":[]}}]},"messageId":12}
detox wss 15:19:21: role=tester action=invoke (sessionId=1ac30632-0db5-6d5d-d994-20fafb42eb81)
detox wss 15:19:22: role=testee action=invokeResult (sessionId=1ac30632-0db5-6d5d-d994-20fafb42eb81)
detox verb ws onMessage: {"type":"invokeResult","messageId":12,"params":{"result":"(GREYElementInteraction)"}}
detox verb ws  
evaluating child with name test-documents.xlsx
detox verb ws send: {"type":"invoke","params":{"target":{"type":"Invocation","value":{"target":{"type":"EarlGrey","value":"instance"},"method":"detox_selectElementWithMatcher:","args":[{"type":"Invocation","value":{"target":{"type":"Class","value":"GREYMatchers"},"method":"matcherForAccessibilityID:","args":[{"type":"NSString","value":"test-documents.xlsx"}]}}]}},"method":"assertWithMatcher:","args":[{"type":"Invocation","value":{"target":{"type":"Class","value":"GREYMatchers"},"method":"matcherForSufficientlyVisible","args":[]}}]},"messageId":13}
detox wss 15:19:22: role=tester action=invoke (sessionId=1ac30632-0db5-6d5d-d994-20fafb42eb81)
detox wss 15:19:23: role=testee action=invokeResult (sessionId=1ac30632-0db5-6d5d-d994-20fafb42eb81)
detox verb ws onMessage: {"type":"invokeResult","messageId":13,"params":{"result":"(GREYElementInteraction)"}}
detox verb ws  
Tapping back button
detox verb ws send: {"type":"invoke","params":{"target":{"type":"Invocation","value":{"target":{"type":"EarlGrey","value":"instance"},"method":"detox_selectElementWithMatcher:","args":[{"type":"Invocation","value":{"target":{"type":"Class","value":"GREYMatchers"},"method":"detoxMatcherForClass:","args":[{"type":"NSString","value":"_UIBackButtonContainerView"}]}}]}},"method":"performAction:","args":[{"type":"Invocation","value":{"target":{"type":"Class","value":"GREYActions"},"method":"actionForTap","args":[]}}]},"messageId":14}
detox wss 15:19:23: role=tester action=invoke (sessionId=1ac30632-0db5-6d5d-d994-20fafb42eb81)
detox wss 15:19:23: role=testee action=invokeResult (sessionId=1ac30632-0db5-6d5d-d994-20fafb42eb81)
detox verb ws onMessage: {"type":"invokeResult","messageId":14,"params":{"result":"(GREYElementInteraction)"}}
detox verb ws  
expecting element with name Empty Folder
detox verb ws send: {"type":"invoke","params":{"target":{"type":"Invocation","value":{"target":{"type":"EarlGrey","value":"instance"},"method":"detox_selectElementWithMatcher:","args":[{"type":"Invocation","value":{"target":{"type":"Class","value":"GREYMatchers"},"method":"matcherForAccessibilityID:","args":[{"type":"NSString","value":"Empty Folder"}]}}]}},"method":"assertWithMatcher:","args":[{"type":"Invocation","value":{"target":{"type":"Class","value":"GREYMatchers"},"method":"matcherForSufficientlyVisible","args":[]}}]},"messageId":15}
detox wss 15:19:23: role=tester action=invoke (sessionId=1ac30632-0db5-6d5d-d994-20fafb42eb81)
detox wss 15:19:24: role=testee action=invokeResult (sessionId=1ac30632-0db5-6d5d-d994-20fafb42eb81)
detox verb ws onMessage: {"type":"invokeResult","messageId":15,"params":{"result":"(GREYElementInteraction)"}}
detox verb ws  
expecting item commanding sheet to appear after tap
detox verb ws send: {"type":"invoke","params":{"target":{"type":"Invocation","value":{"target":{"type":"EarlGrey","value":"instance"},"method":"detox_selectElementWithMatcher:","args":[{"type":"Invocation","value":{"target":{"type":"Class","value":"GREYMatchers"},"method":"matcherForAccessibilityID:","args":[{"type":"NSString","value":"Empty Folder_itemCommanding"}]}}]}},"method":"performAction:","args":[{"type":"Invocation","value":{"target":{"type":"Class","value":"GREYActions"},"method":"actionForTap","args":[]}}]},"messageId":16}
detox wss 15:19:24: role=tester action=invoke (sessionId=1ac30632-0db5-6d5d-d994-20fafb42eb81)
detox wss 15:19:24: role=testee action=invokeResult (sessionId=1ac30632-0db5-6d5d-d994-20fafb42eb81)
detox verb ws onMessage: {"type":"invokeResult","messageId":16,"params":{"result":"(GREYElementInteraction)"}}
detox verb ws  
detox verb ws send: {"type":"invoke","params":{"target":{"type":"Invocation","value":{"target":{"type":"EarlGrey","value":"instance"},"method":"detox_selectElementWithMatcher:","args":[{"type":"Invocation","value":{"target":{"type":"Class","value":"GREYMatchers"},"method":"matcherForAccessibilityID:","args":[{"type":"NSString","value":"itemCommandingSheet"}]}}]}},"method":"assertWithMatcher:","args":[{"type":"Invocation","value":{"target":{"type":"Class","value":"GREYMatchers"},"method":"matcherForSufficientlyVisible","args":[]}}]},"messageId":17}
detox wss 15:19:24: role=tester action=invoke (sessionId=1ac30632-0db5-6d5d-d994-20fafb42eb81)
detox wss 15:19:25: role=testee action=invokeResult (sessionId=1ac30632-0db5-6d5d-d994-20fafb42eb81)
detox verb ws onMessage: {"type":"invokeResult","messageId":17,"params":{"result":"(GREYElementInteraction)"}}
detox verb ws  
detox verb ws send: {"type":"invoke","params":{"target":{"type":"Invocation","value":{"target":{"type":"EarlGrey","value":"instance"},"method":"detox_selectElementWithMatcher:","args":[{"type":"Invocation","value":{"target":{"type":"Class","value":"GREYMatchers"},"method":"matcherForAccessibilityID:","args":[{"type":"NSString","value":"Empty Folder_itemCommanding"}]}}]}},"method":"performAction:","args":[{"type":"Invocation","value":{"target":{"type":"Class","value":"GREYActions"},"method":"actionForTap","args":[]}}]},"messageId":18}
detox wss 15:19:25: role=tester action=invoke (sessionId=1ac30632-0db5-6d5d-d994-20fafb42eb81)
detox wss 15:19:25: role=testee action=invokeResult (sessionId=1ac30632-0db5-6d5d-d994-20fafb42eb81)
detox verb ws onMessage: {"type":"invokeResult","messageId":18,"params":{"result":"(GREYElementInteraction)"}}
detox verb ws  
which has children, tapping it
detox verb ws send: {"type":"invoke","params":{"target":{"type":"Invocation","value":{"target":{"type":"EarlGrey","value":"instance"},"method":"detox_selectElementWithMatcher:","args":[{"type":"Invocation","value":{"target":{"type":"Class","value":"GREYMatchers"},"method":"matcherForAccessibilityID:","args":[{"type":"NSString","value":"Empty Folder"}]}}]}},"method":"performAction:","args":[{"type":"Invocation","value":{"target":{"type":"Class","value":"GREYActions"},"method":"actionForTap","args":[]}}]},"messageId":19}
detox wss 15:19:25: role=tester action=invoke (sessionId=1ac30632-0db5-6d5d-d994-20fafb42eb81)
detox wss 15:19:26: role=testee action=invokeResult (sessionId=1ac30632-0db5-6d5d-d994-20fafb42eb81)
detox verb ws onMessage: {"type":"invokeResult","messageId":19,"params":{"result":"(GREYElementInteraction)"}}
detox verb ws  
Tapping back button
detox verb ws send: {"type":"invoke","params":{"target":{"type":"Invocation","value":{"target":{"type":"EarlGrey","value":"instance"},"method":"detox_selectElementWithMatcher:","args":[{"type":"Invocation","value":{"target":{"type":"Class","value":"GREYMatchers"},"method":"detoxMatcherForClass:","args":[{"type":"NSString","value":"_UIBackButtonContainerView"}]}}]}},"method":"performAction:","args":[{"type":"Invocation","value":{"target":{"type":"Class","value":"GREYActions"},"method":"actionForTap","args":[]}}]},"messageId":20}
detox wss 15:19:26: role=tester action=invoke (sessionId=1ac30632-0db5-6d5d-d994-20fafb42eb81)
detox wss 15:19:27: role=testee action=invokeResult (sessionId=1ac30632-0db5-6d5d-d994-20fafb42eb81)
detox verb ws onMessage: {"type":"invokeResult","messageId":20,"params":{"result":"(GREYElementInteraction)"}}
detox verb ws  
expecting element with name test.docx
detox verb ws send: {"type":"invoke","params":{"target":{"type":"Invocation","value":{"target":{"type":"EarlGrey","value":"instance"},"method":"detox_selectElementWithMatcher:","args":[{"type":"Invocation","value":{"target":{"type":"Class","value":"GREYMatchers"},"method":"matcherForAccessibilityID:","args":[{"type":"NSString","value":"test.docx"}]}}]}},"method":"assertWithMatcher:","args":[{"type":"Invocation","value":{"target":{"type":"Class","value":"GREYMatchers"},"method":"matcherForSufficientlyVisible","args":[]}}]},"messageId":21}
detox wss 15:19:27: role=tester action=invoke (sessionId=1ac30632-0db5-6d5d-d994-20fafb42eb81)
detox wss 15:19:27: role=testee action=invokeResult (sessionId=1ac30632-0db5-6d5d-d994-20fafb42eb81)
detox verb ws onMessage: {"type":"invokeResult","messageId":21,"params":{"result":"(GREYElementInteraction)"}}
detox verb ws  
expecting item commanding sheet to appear after tap
detox verb ws send: {"type":"invoke","params":{"target":{"type":"Invocation","value":{"target":{"type":"EarlGrey","value":"instance"},"method":"detox_selectElementWithMatcher:","args":[{"type":"Invocation","value":{"target":{"type":"Class","value":"GREYMatchers"},"method":"matcherForAccessibilityID:","args":[{"type":"NSString","value":"test.docx_itemCommanding"}]}}]}},"method":"performAction:","args":[{"type":"Invocation","value":{"target":{"type":"Class","value":"GREYActions"},"method":"actionForTap","args":[]}}]},"messageId":22}
detox wss 15:19:27: role=tester action=invoke (sessionId=1ac30632-0db5-6d5d-d994-20fafb42eb81)
detox wss 15:19:28: role=testee action=invokeResult (sessionId=1ac30632-0db5-6d5d-d994-20fafb42eb81)
detox verb ws onMessage: {"type":"invokeResult","messageId":22,"params":{"result":"(GREYElementInteraction)"}}
detox verb ws  
detox verb ws send: {"type":"invoke","params":{"target":{"type":"Invocation","value":{"target":{"type":"EarlGrey","value":"instance"},"method":"detox_selectElementWithMatcher:","args":[{"type":"Invocation","value":{"target":{"type":"Class","value":"GREYMatchers"},"method":"matcherForAccessibilityID:","args":[{"type":"NSString","value":"itemCommandingSheet"}]}}]}},"method":"assertWithMatcher:","args":[{"type":"Invocation","value":{"target":{"type":"Class","value":"GREYMatchers"},"method":"matcherForSufficientlyVisible","args":[]}}]},"messageId":23}
detox wss 15:19:28: role=tester action=invoke (sessionId=1ac30632-0db5-6d5d-d994-20fafb42eb81)
detox wss 15:19:28: role=testee action=invokeResult (sessionId=1ac30632-0db5-6d5d-d994-20fafb42eb81)
detox verb ws onMessage: {"type":"invokeResult","messageId":23,"params":{"result":"(GREYElementInteraction)"}}
detox verb ws  
detox verb ws send: {"type":"invoke","params":{"target":{"type":"Invocation","value":{"target":{"type":"EarlGrey","value":"instance"},"method":"detox_selectElementWithMatcher:","args":[{"type":"Invocation","value":{"target":{"type":"Class","value":"GREYMatchers"},"method":"matcherForAccessibilityID:","args":[{"type":"NSString","value":"test.docx_itemCommanding"}]}}]}},"method":"performAction:","args":[{"type":"Invocation","value":{"target":{"type":"Class","value":"GREYActions"},"method":"actionForTap","args":[]}}]},"messageId":24}
detox wss 15:19:28: role=tester action=invoke (sessionId=1ac30632-0db5-6d5d-d994-20fafb42eb81)
detox wss 15:19:28: role=testee action=invokeResult (sessionId=1ac30632-0db5-6d5d-d994-20fafb42eb81)
detox verb ws onMessage: {"type":"invokeResult","messageId":24,"params":{"result":"(GREYElementInteraction)"}}
detox verb ws  
Tapping back button
detox verb ws send: {"type":"invoke","params":{"target":{"type":"Invocation","value":{"target":{"type":"EarlGrey","value":"instance"},"method":"detox_selectElementWithMatcher:","args":[{"type":"Invocation","value":{"target":{"type":"Class","value":"GREYMatchers"},"method":"detoxMatcherForClass:","args":[{"type":"NSString","value":"_UIBackButtonContainerView"}]}}]}},"method":"performAction:","args":[{"type":"Invocation","value":{"target":{"type":"Class","value":"GREYActions"},"method":"actionForTap","args":[]}}]},"messageId":25}
detox wss 15:19:28: role=tester action=invoke (sessionId=1ac30632-0db5-6d5d-d994-20fafb42eb81)
detox wss 15:19:29: role=testee action=invokeResult (sessionId=1ac30632-0db5-6d5d-d994-20fafb42eb81)
detox verb ws onMessage: {"type":"invokeResult","messageId":25,"params":{"result":"(GREYElementInteraction)"}}
detox verb ws  
    ✓ Graph loads items (21768ms)

detox verb ArtifactsManager finalized artifacts successfully
detox verb ws send: {"type":"cleanup","params":{"stopRunner":false},"messageId":26}
detox wss 15:19:29: role=tester action=cleanup (sessionId=1ac30632-0db5-6d5d-d994-20fafb42eb81)
detox wss 15:19:29: role=testee action=cleanupDone (sessionId=1ac30632-0db5-6d5d-d994-20fafb42eb81)
detox verb ws onMessage: {"type":"cleanupDone","messageId":26,"params":{}}
detox verb ws  

  1 passing (27s)

detox wss 15:19:29: role=tester disconnect (sessionId=1ac30632-0db5-6d5d-d994-20fafb42eb81)
detox wss 15:19:29: role=testee disconnect (sessionId=1ac30632-0db5-6d5d-d994-20fafb42eb81)

Help! :-)

@tachtevrenidis
Copy link
Author

my init.js looks like this:

const detox = require('detox');
const config = require('../package.json').detox;

// these are changes for when the 'screenshots' feature is released in detox
const adapter = require('detox/runners/mocha/adapter');

before(async () => {
  await detox.init(config);
});

beforeEach(async function () {
  await adapter.beforeEach(this);
});

afterEach(async function () {
  await adapter.afterEach(this);
});

after(async () => {
  await detox.cleanup();
});

@noomorph
Copy link
Collaborator

I'm not sure if I can investigate it within the next few days. Hopefully on Monday I'll be able to take a good look at it.

The only thing that looks kinda "suspicious" to me is the --reuse flag in your use case. Try running without it and let's see if it helps. If (suddenly!) yes, then let's file it as a bug.

@tachtevrenidis
Copy link
Author

tachtevrenidis commented Jun 30, 2018

I tried with and without --reuse, the outcome is the same. I looked at the code a little, some observations:

  1. there is a method in detox called 'takeScreenshot', that method is NEVER called (added console.log to debug)
  2. video recording does not work also
  3. when i run detox test, if detox has to boot a simulator, then I see a simctl instruction to the simulator, to take a screenshot but with params 'dev/null' which results in a noop. No further screenshot instructions
  4. I tried with a custom artifacts dir but nothing
  5. I tried with a test that passes and another one that fails on purpose, still nothing

I hope this helps!

@noomorph
Copy link
Collaborator

noomorph commented Jun 30, 2018 via email

@tachtevrenidis
Copy link
Author

tachtevrenidis commented Jun 30, 2018

yeap did that. If I add bogus code in there and try to run the tests, I get an error on init.js. So that makes me think it is getting called. Also log recording is working but I am not sure this is tied to the beforeEach and afterEach using the adapter.

@noomorph
Copy link
Collaborator

noomorph commented Jul 1, 2018

The thing is that only log recording can work without beforeEach and afterEach - it will be recording everything from the start till the end in startup.log file.

What kind of error do you get in init.js with your bogus code? Please post details.

@tachtevrenidis
Copy link
Author

for example, if I add this:

const detox = require('detox');
const config = require('../package.json').detox;

// these are changes for when the 'screenshots' feature is released in detox
const adapter = require('detox/runners/mocha/adapter');

before(async () => {
  await detox.init(config);
});

beforeEach(async function () {
  weird stuff
  await adapter.beforeEach(this);
});

afterEach(async function () {
  await adapter.afterEach(this);
});

after(async () => {
  await detox.cleanup();
});

I get:

node_modules/.bin/mocha e2e --opts e2e/mocha.opts --configuration ios.sim.debug --loglevel DEBUG    --grep :android: --invert  --record-logs all --take-screenshots true  --artifacts-location "test-results/detox/ios/"
/Users/kotachte/Development/odsp-common-metro/items-view/mobile/e2e/init.js:12
  weird stuff
        ^^^^^

SyntaxError: Unexpected identifier
    at createScript (vm.js:80:10)
    at Object.runInThisContext (vm.js:139:10)
    at Module._compile (module.js:599:28)
    at Object.Module._extensions..js (module.js:646:10)
    at Module.load (module.js:554:32)
    at tryModuleLoad (module.js:497:12)
    at Function.Module._load (module.js:489:3)
    at Module.require (module.js:579:17)
    at require (internal/module.js:11:18)
    at /Users/kotachte/Development/odsp-common-metro/common/temp/node_modules/.onedrive.pkgs.visualstudio.com/mocha/4.1.0/node_modules/mocha/lib/mocha.js:231:27
    at Array.forEach (<anonymous>)
    at Mocha.loadFiles (/Users/kotachte/Development/odsp-common-metro/common/temp/node_modules/.onedrive.pkgs.visualstudio.com/mocha/4.1.0/node_modules/mocha/lib/mocha.js:228:14)
    at Mocha.run (/Users/kotachte/Development/odsp-common-metro/common/temp/node_modules/.onedrive.pkgs.visualstudio.com/mocha/4.1.0/node_modules/mocha/lib/mocha.js:536:10)
    at Object.<anonymous> (/Users/kotachte/Development/odsp-common-metro/common/temp/node_modules/.onedrive.pkgs.visualstudio.com/mocha/4.1.0/node_modules/mocha/bin/_mocha:573:18)
    at Module._compile (module.js:635:30)
    at Object.Module._extensions..js (module.js:646:10)
    at Module.load (module.js:554:32)
    at tryModuleLoad (module.js:497:12)
    at Function.Module._load (module.js:489:3)
    at Function.Module.runMain (module.js:676:10)
    at startup (bootstrap_node.js:187:16)
    at bootstrap_node.js:608:3
child_process.js:644
    throw err;
    ^

Error: Command failed: node_modules/.bin/mocha e2e --opts e2e/mocha.opts --configuration ios.sim.debug --loglevel DEBUG    --grep :android: --invert  --record-logs all --take-screenshots true  --artifacts-location "test-results/detox/ios/"
    at checkExecSyncError (child_process.js:601:13)

@noomorph
Copy link
Collaborator

noomorph commented Jul 2, 2018

@tachtevrenidis, could you please add something less "bogus" 😃, e.g.:

beforeEach(async function () {
  try {
    console.log('KOTACHTE TRY BEFORE_EACH');
    await adapter.beforeEach(this);
    console.log('KOTACHTE SUCCESS BEFORE_EACH');
  } catch (e) {
    console.error('KOTACHTE CAUGHT ERROR', e);
  }
});

Please post your experiences.

@tachtevrenidis
Copy link
Author

here is an excerpt:

detox verb simulator-log-info watch strategy: watch
  product Test Suite
user TRY BEFORE_EACH
detox verb SimulatorLogPlugin stopping to watch log
detox verb simulator-log-info Unwatch  /Users/user/Library/Developer/CoreSimulator/Devices/C4912CB4-F17E-4382-9956-F04452DD233B/data/tmp/detox.last_launch_app_log.out
detox verb simulator-log-info Unwatch  /Users/user/Library/Developer/CoreSimulator/Devices/C4912CB4-F17E-4382-9956-F04452DD233B/data/tmp/detox.last_launch_app_log.err
detox verb SimulatorLogPlugin starting to watch log
detox verb simulator-log-info Tail starting...
detox verb simulator-log-info filename: /Users/user/Library/Developer/CoreSimulator/Devices/C4912CB4-F17E-4382-9956-F04452DD233B/data/tmp/detox.last_launch_app_log.out
detox verb simulator-log-info encoding: utf-8
detox verb simulator-log-info filesystem.watch present? true
detox verb simulator-log-info useWatchFile: false
detox verb simulator-log-info watch strategy: watch
detox verb simulator-log-info Tail starting...
detox verb simulator-log-info filename: /Users/user/Library/Developer/CoreSimulator/Devices/C4912CB4-F17E-4382-9956-F04452DD233B/data/tmp/detox.last_launch_app_log.err
detox verb simulator-log-info encoding: utf-8
detox verb simulator-log-info filesystem.watch present? true
detox verb simulator-log-info useWatchFile: false
detox verb simulator-log-info watch strategy: watch
user SUCCESS BEFORE_EACH

@tachtevrenidis
Copy link
Author

I also see this:

detox verb 4: stdout: Xcode 9.4.1
Build version 9F2000
 
detox verb 5: /usr/bin/xcrun simctl boot C4912CB4-F17E-4382-9956-F04452DD233B 
detox info 5: Booting device C4912CB4-F17E-4382-9956-F04452DD233B 
detox verb 6: /usr/bin/xcrun simctl bootstatus C4912CB4-F17E-4382-9956-F04452DD233B 
detox verb 6: stdout: Monitoring boot status for iPhone 8 (C4912CB4-F17E-4382-9956-F04452DD233B).
[2018-07-02 14:39:51 +0000] Status=4, isTerminal=NO, Elapsed=00:01.
	Waiting on System App

[2018-07-02 14:39:51 +0000] Status=4, isTerminal=NO, Elapsed=00:01.
	Waiting on System App

[2018-07-02 14:39:51 +0000] Status=4, isTerminal=NO, Elapsed=00:02.
	Waiting on System App

[2018-07-02 14:39:52 +0000] Status=4, isTerminal=NO, Elapsed=00:03.
	Waiting on System App

[2018-07-02 14:39:53 +0000] Status=4, isTerminal=NO, Elapsed=00:04.
	Waiting on System App

[2018-07-02 14:39:54 +0000] Status=4, isTerminal=NO, Elapsed=00:05.
	Waiting on System App

[2018-07-02 14:39:55 +0000] Status=4, isTerminal=NO, Elapsed=00:06.
	Waiting on System App

[2018-07-02 14:39:57 +0000] Status=4, isTerminal=NO, Elapsed=00:07.
	Waiting on System App

[2018-07-02 14:39:58 +0000] Status=1, isTerminal=NO, Elapsed=00:08.
	Waiting on BackBoard

[2018-07-02 14:39:59 +0000] Status=4, isTerminal=NO, Elapsed=00:09.
	Waiting on System App

[2018-07-02 14:39:59 +0000] Status=4294967295, isTerminal=YES, Elapsed=00:10.
	Finished

 
takeScreenshot - EXECUTE:  io C4912CB4-F17E-4382-9956-F04452DD233B screenshot "/dev/null"
detox verb 7: /usr/bin/xcrun simctl io C4912CB4-F17E-4382-9956-F04452DD233B screenshot "/dev/null" 
detox ERR! 7: running "/usr/bin/xcrun simctl io C4912CB4-F17E-4382-9956-F04452DD233B screenshot "/dev/null"" returned 2 
detox ERR! 7: stderr: An error was encountered processing the command (domain=SimulatorKit.SimDisplayScreenshotWriter.ScreenshotError, code=2):
Error creating the image

as I was saying earlier, I only see this 'takeScreenshot' reference if detox has to boot my simulator. If it is already booted, I don't see this.

@tachtevrenidis
Copy link
Author

I am available all day, if you need more debug info (we can chat, screen share etc if you want). Being able to generate screenshots is of high priority to us! Also, I want to thank you for taking the time to add this feature, and also taking the time to troubleshoot with me! Very appreciative!

@noomorph
Copy link
Collaborator

noomorph commented Jul 2, 2018

Ping me tomorrow. You'll find my email in git log.

@noomorph
Copy link
Collaborator

noomorph commented Jul 3, 2018

@tachtevrenidis, your issue will be addressed by the next detox@8.0.1 .

@wix wix locked and limited conversation to collaborators Jul 23, 2018
# for free to subscribe to this conversation on GitHub. Already have an account? #.
Projects
None yet
Development

No branches or pull requests

2 participants