Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

wdio + mocha testomat.log #369

Open
TetianaKhomenko opened this issue Aug 12, 2024 · 3 comments
Open

wdio + mocha testomat.log #369

TetianaKhomenko opened this issue Aug 12, 2024 · 3 comments
Assignees
Labels
bug Something isn't working priority high webdriver.io wdio, webdriverio
Milestone

Comments

@TetianaKhomenko
Copy link

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 TetianaKhomenko added bug Something isn't working priority high webdriver.io wdio, webdriverio labels Aug 12, 2024
@TetianaKhomenko TetianaKhomenko added this to the 0.5.36 milestone Aug 12, 2024
@olexandr13
Copy link
Collaborator

olexandr13 commented Aug 12, 2024

original thread

@olexandr13
Copy link
Collaborator

logs implemented in #411
check in any release 1.6+
e.g. 1.6.0-beta-artifacts

@TetianaKhomenko
Copy link
Author

@AZANIR please check this with latest reporter version

@TetianaKhomenko TetianaKhomenko modified the milestones: 0.5.36, 0.5.38 Nov 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working priority high webdriver.io wdio, webdriverio
Projects
None yet
Development

No branches or pull requests

3 participants