Closed sskyrpis closed 1 year ago
@sskyrpis can you please provide a reproducible example?
Let's use a dummy example:
describe('Test', () => {
it('Test', async () => { await expect(true); }); });
The test passed:
[/var/folders/3n/z0_2p7gn03q5x5mt40c4lj1m0000kr/T/tmpOvD7Dc/Baseline-5.app.zip iOS #0-0] Running: /var/folders/3n/z0_2p7gn03q5x5mt40c4lj1m0000kr/T/tmpOvD7Dc/Baseline-5.app.zip on iOS [/var/folders/3n/z0_2p7gn03q5x5mt40c4lj1m0000kr/T/tmpOvD7Dc/Baseline-5.app.zip iOS #0-0] Session ID: 159ced5d88db4b19866c5dad72a038ac [/var/folders/3n/z0_2p7gn03q5x5mt40c4lj1m0000kr/T/tmpOvD7Dc/Baseline-5.app.zip iOS #0-0] [/var/folders/3n/z0_2p7gn03q5x5mt40c4lj1m0000kr/T/tmpOvD7Dc/Baseline-5.app.zip iOS #0-0] ยป /test/specs/common/test.spec.js [/var/folders/3n/z0_2p7gn03q5x5mt40c4lj1m0000kr/T/tmpOvD7Dc/Baseline-5.app.zip iOS #0-0] Test [/var/folders/3n/z0_2p7gn03q5x5mt40c4lj1m0000kr/T/tmpOvD7Dc/Baseline-5.app.zip iOS #0-0] โ Test [/var/folders/3n/z0_2p7gn03q5x5mt40c4lj1m0000kr/T/tmpOvD7Dc/Baseline-5.app.zip iOS #0-0] [/var/folders/3n/z0_2p7gn03q5x5mt40c4lj1m0000kr/T/tmpOvD7Dc/Baseline-5.app.zip iOS #0-0] 1 passing (1.3s) [/var/folders/3n/z0_2p7gn03q5x5mt40c4lj1m0000kr/T/tmpOvD7Dc/Baseline-5.app.zip iOS #0-0] [/var/folders/3n/z0_2p7gn03q5x5mt40c4lj1m0000kr/T/tmpOvD7Dc/Baseline-5.app.zip iOS #0-0] Check out job at
This is the job ran at SauceLabs:
as you can see the status is Completed and not passed.
In package.json we use these devDependencies:
"@wdio/appium-service": "8.11.2", "@wdio/cli": "8.14.4", "@wdio/devtools-service": "8.14.3", "@wdio/local-runner": "8.14.3", "@wdio/mocha-framework": "8.14.0", "@wdio/sauce-service": "8.14.5", "@wdio/spec-reporter": "8.14.0", "wdio-chromedriver-service": "8.1.1", "wdio-html-nice-reporter": "8.0.6", "wdio-image-comparison-service": "3.0.0", "wdio-intercept-service": "4.4.0", "wdio-json-reporter": "3.0.0", "wdio-mochawesome-reporter": "4.0.0", "wdio-native-app-compare-service": "2.1.0", "wdio-ocr-service": "1.1.2", "wdio-video-reporter": "3.5.0",
@sskyrpis the job you shared has an updated job name from WebdriverIO, so it seems to work.
Yes, the job name updated, but the status is not updated to "Passed"
Can you provide a reproducible example as a Github project?
Closing due to inactivity
Hello,
I have an example as Github project:
https://github.com/TVP-Corp/mobile-wdio-repro
When we run the spec: playhub.spec.js, the test is passing in the spec reporter:
but the status in SauceLabs doesn't update to 'Passed' and remains as 'Completed'
This ticket is closed, do i have to open a new one?
Thanks for providing a reproducible example. I can re-open this issue.
We greatly appreciate any contributions that help implement this feature request. While we understand that active contributors have their own priorities, we kindly request your assistance if you rely on this feature being implemented. We encourage you to take a look at our contribution guidelines or join our friendly Discord development server, where you can ask any questions you may have. Thank you for your support, and cheers!
@sskyrpis can you reduce the size of the reproducible example to only the tests and remove the app code which you probably don't want to share anyway.
This is just a dummy project, there is no sensitive info inside. It's only a reproducible example.
@christian-bromann Hello, Are you able to reproduce it?
Are you able to reproduce it?
I am not, I created a new WebdriverIO project with Sauce enabled and it works all fine, e.g.: https://app.eu-central-1.saucelabs.com/tests/bf4855cf95ae4b5bacd07274232acc7a
Because you used a new project, is it possible to share with us any details in order to compare them with our project? e.g. your capabilities, versions from package.json, your wdio.shared.conf.js
@sskyrpis create a new project via npm init wdio@latest ./saucetest
and select E2E test on Sauce Labs, then select the default values. If I run the provided example file I get a passing marked test: https://app.saucelabs.com/tests/a32930d470fe47d7b9d71a6d0aec1281?auth=cd7d67e2ed7aa990e2d6a47ae4fab314
I will go ahead and close the issue. Please provide a reproducible example so it would allow us to debug potential bugs. Thank you!
Hello,
I have tried the new project as you said and indeed the example file marked as Passed in SauceLabs. The thing is that this project has just the necessary things, it doesn't actual use appium or wdio conf file with specific capabilities. I shared a dummy project with you with the exact same capabilities and configuration as the one we use here, in order to try to reproduce it in your side as well (https://github.com/TVP-Corp/mobile-wdio-repro). Can you please try to run the playhub.spec.js in that project and see the actual result? Can i help with anything or give you any other info you need?
Have you read the Contributing Guidelines on issues?
WebdriverIO Version
8
Node.js Version
v16.19.0
Mode
WDIO Testrunner
Which capabilities are you using?
What happened?
We set up a new project, we use webdriverio 8 and we run the tests through SauceLabs in android and iOS simulators. When we run the tests from locally to SauceLabs, the tests are passing (we can see that in the spec reporter in our console) but we get an error right after the update job: INFO @wdio/sauce-service: Update job with sessionId 3620266ee6e743e5bf80ada2c6106cbe, status: passing which is: ERROR @wdio/utils:shim: Error: Failed calling updateJob: Response code 404 (Not Found), 404 page not found
The configuration we use in SauceLabs is:
const { config: sharedConfig } = require('./wdio.shared.conf'); const config = { ...sharedConfig, specFileRetries: 2, region: 'eu', user: 'user', key: 'key', tunnelIdentifier: 'test', host: 'https://ondemand.eu-central-1.saucelabs.com/wd/hub', services: [ ...(sharedConfig?.services || []), [ 'sauce', { sauceConnect: true, connectVersion: 'latest', }, ], ], }; exports.config = config;
The result of this is that the status of the test is not updated in SauceLabs side as you can see.
What is your expected behavior?
The result to be updated in SauceLabs side.
How to reproduce the bug.
Run a local test to SauceLabs
Relevant log output
Code of Conduct
Is there an existing issue for this?