reporter icon indicating copy to clipboard operation
reporter copied to clipboard

wdio + mocha testomat.log

Open TetianaKhomenko opened this issue 1 year ago • 3 comments

Describe the bug

Need to check the Testomat reporter logger for wdio.

User's command: TESTOMATIO={key} TESTOMATIO_ENV=stg MARKET=uk TESTOMATIO_TITLE='local run 4' DEBUG=@testomatio/reporter:* npx start-test-run -c 'npx wdio src/config/wdio.conf.ts --mochaOpts.grep=@testId'

User's test:

testomat.log(`log session-id: ${browser.options['sessionId']}`);
testomat.step(`step session-id: ${browser.options['sessionId']}`);
testomat.artifact(`artifact session-id 1: ${browser.options['sessionId']}`);

Debagger result:

[0-0] 2024-08-09T09:14:11.850Z @testomatio/reporter:storage No context provided for "log" data: log session-id: autoTestxxx
[0-0] 2024-08-09T09:14:11.850Z @testomatio/reporter:storage No context provided for "log" data: > step session-id: autoTestxxx
[0-0] 2024-08-09T09:14:11.850Z @testomatio/reporter:services-artifacts Save artifact: artifact session-id 1: autoTestxxx
[0-0] 2024-08-09T09:14:11.850Z @testomatio/reporter:storage No context provided for "artifact" data: artifact session-id 1: autoTestxxx

[0-0] 2024-08-09T09:14:12.302Z @testomatio/reporter:file-uploader Upload is enabled
[0-0] 2024-08-09T09:14:12.869Z @testomatio/reporter:pipe:testomatio 📨 Batch upload 1 tests

[TESTOMATIO] 🔴 Runner exited with 1
  @testomatio/reporter:client Updating run status... +38s
  @testomatio/reporter:pipe:testomatio Finishing run... +38s
[TESTOMATIO] 📊 Report Saved. Report URL: {LINK}
  @testomatio/reporter:pipe:testomatio Run finished +445ms
  @testomatio/reporter:client TOTAL artifacts 0 +446ms

In application: empty test run created

image

TetianaKhomenko avatar Aug 12 '24 05:08 TetianaKhomenko

original thread

olexandr13 avatar Aug 12 '24 05:08 olexandr13

logs implemented in https://github.com/testomatio/reporter/pull/411 check in any release 1.6+ e.g. 1.6.0-beta-artifacts

olexandr13 avatar Oct 11 '24 13:10 olexandr13

@AZANIR please check this with latest reporter version

TetianaKhomenko avatar Nov 23 '24 14:11 TetianaKhomenko