reporter icon indicating copy to clipboard operation
reporter copied to clipboard

S3 Artifacts doesn't work on 1.6.*

Open dnlstpnv opened this issue 8 months ago • 2 comments

Describe the bug In version @testomatio/reporter 1.6., failed test reports contain an empty artifacts array, even though screenshots are captured and available. You can see a diff, v 1.5.3 log this: @testomatio/reporter:file-uploader Upload is enabled, 1.6. no.

This causes missing attachments in the Testomatio UI for failed tests.

Expected behavior Screenshots should appear in the artifacts array and be visible in the Testomatio UI for failed tests.

  • OS: MacOS / Ubuntu 24.04
Log 1.6.16 version:

[0-0] 2025-04-30T14:54:59.647Z @testomatio/reporter:pipe:testomatio :incoming_envelope: Batch upload 1 tests
[0-0] 2025-04-30T14:54:59.647Z @testomatio/reporter:pipe:testomatio {
[0-0]   rid: undefined,
[0-0]   files: [],
[0-0]   steps: undefined,
[0-0]   status: ‘failed’,
[0-0]   stack: ‘1’,
[0-0]   example: null,
[0-0]   file: undefined,
[0-0]   code: null,
[0-0]   title: ‘@T11effba9’,
[0-0]   suite_title: undefined,
[0-0]   suite_id: undefined,
[0-0]   test_id: ‘@T11effba9’,
[0-0]   message: Can’t call click on element with selector “~element” because element wasn’t found,
[0-0]   run_time: 5263,
[0-0]   artifacts: [],
[0-0]   meta: {},
[0-0]   api_key: ‘token’,
[0-0]   create: false
[0-0] } 0 [
[0-0]   {
[0-0]     rid: undefined,
[0-0]     files: [],
[0-0]     steps: undefined,
[0-0]     status: ‘failed’,
[0-0]     stack: ‘1’,
[0-0]     example: null,
[0-0]     file: undefined,
[0-0]     code: null,
[0-0]     title: ‘@T11effba9’,
[0-0]     suite_title: undefined,
[0-0]     suite_id: undefined,
[0-0]     test_id: ‘@T11effba9’,
[0-0]     message: Can’t call click on element with selector “~element” because element wasn’t found,
[0-0]     run_time: 5263,
[0-0]     artifacts: [],
[0-0]     meta: {},
[0-0]     api_key: ‘token’,
[0-0]     create: false
[0-0]   }
[0-0] ]

Log 1.5.3 version:

[0-0] 2025-04-30T14:52:01.650Z @testomatio/reporter:file-uploader Upload is enabled
[0-0] 2025-04-30T14:52:02.663Z @testomatio/reporter:pipe:testomatio :incoming_envelope: Batch upload 1 tests
[0-0] 2025-04-30T14:52:02.664Z @testomatio/reporter:pipe:testomatio {
[0-0]   rid: undefined,
[0-0]   files: [],
[0-0]   steps: undefined,
[0-0]   status: ‘failed’,
[0-0]   stack: ‘1’,
[0-0]   example: null,
[0-0]   file: undefined,
[0-0]   code: null,
[0-0]   title: ‘@T11effba9’,
[0-0]   suite_title: undefined,
[0-0]   suite_id: undefined,
[0-0]   test_id: ‘@T11effba9’,
[0-0]   message: Can’t call click on element with selector “~element” because element wasn’t found,
[0-0]   run_time: 5237,
[0-0]   artifacts: [
[0-0]      ‘https://*.*.amazonaws.com/*/T11effba9.png’
[0-0]   ],
[0-0]   meta: undefined,
[0-0]   api_key: ‘token’,
[0-0]   create: false
[0-0] } 0 [
[0-0]   {
[0-0]     rid: undefined,
[0-0]     files: [],
[0-0]     steps: undefined,
[0-0]     status: ‘failed’,
[0-0]     stack: ‘1’,
[0-0]     example: null,
[0-0]     file: undefined,
[0-0]     code: null,
[0-0]     title: ‘Like user @T11effba9’,
[0-0]     suite_title: undefined,
[0-0]     suite_id: undefined,
[0-0]     test_id: ‘@T11effba9’,
[0-0]     message: Can’t call click on element with selector “~element” because element wasn’t found,
[0-0]     run_time: 5237,
[0-0]     artifacts: [
[0-0]       ‘https://*.*.amazonaws.com/*/T11effba9.png’
[0-0]     ],
[0-0]     meta: undefined,
[0-0]     api_key: ‘token’,
[0-0]     create: false
[0-0]   }
[0-0] ]`

dnlstpnv avatar Apr 30 '25 15:04 dnlstpnv

wdio + appium + ts

TetianaKhomenko avatar May 01 '25 08:05 TetianaKhomenko

there are more users reporting this issue with wdio

TetianaKhomenko avatar May 01 '25 08:05 TetianaKhomenko

@olexandr13 we need to check file buffers we need to check webdriverio logs

DavertMik avatar May 12 '25 19:05 DavertMik