Git Product home page Git Product logo

Comments (7)

mlynch avatar mlynch commented on July 19, 2024 1

Are you on Windows?

from ionic-e2e-example.

achacofe avatar achacofe commented on July 19, 2024 1

Good, In my case I am using Mac, macOS Monterey, with version 12.3.

When executing any test command, I get the same error on the console
npm run ionic-e2e:run:ios

npm ERR! [email protected] ionic-e2e:run:ios: `TS_NODE_PROJECT=tests/tsconfig.json  wdio tests/config/wdio.ios.config.ts`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the [email protected] ionic-e2e:run:ios script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/achacofe/.npm/_logs/2022-03-30T07_52_41_976Z-debug.log

But when executing any test command, I get the same error on the console:
npm run ionic-e2e:run:web

> [email protected] ionic-e2e:run:web /Users/achacofe/pocs/Ionic-FWKA6369/ionic-e2e-example
> TS_NODE_PROJECT=tests/tsconfig.json  wdio tests/config/wdio.web.config.ts

[0-0] RUNNING in chrome - /tests/specs/app.about.spec.ts, /tests/specs/app.account.spec.ts, /tests/specs/app.login.spec.ts, /tests/specs/app.map.spec.ts, /tests/specs/app.schedule-filter.spec.ts, /tests/specs/app.schedule.spec.ts, /tests/specs/app.session-detail.spec.ts, /tests/specs/app.signup.spec.ts, /tests/specs/app.speaker-detail.spec.ts, /tests/specs/app.speaker-list.spec.ts, /tests/specs/app.support.spec.ts, /tests/specs/app.tutorial.spec.ts
ERROR webdriver: Request failed with status 500 due to session not created: session not created: This version of ChromeDriver only supports Chrome version 96
[0-0] Current browser version is 100.0.4896.60 with binary path /Applications/Google Chrome.app/Contents/MacOS/Google Chrome
[0-0]  ERROR webdriver: 0   chromedriver                        0x000000010a636269 __gxx_personality_v0 + 582729
[0-0] 1   chromedriver                        0x000000010a5c1c33 __gxx_personality_v0 + 106003
[0-0] 2   chromedriver                        0x000000010a17ee28 chromedriver + 171560
[0-0] 3   chromedriver                        0x000000010a1a5433 chromedriver + 328755
[0-0] 4   chromedriver                        0x000000010a1a0ff6 chromedriver + 311286
[0-0] 5   chromedriver                        0x000000010a19d6c6 chromedriver + 296646
[0-0] 6   chromedriver                        0x000000010a1d79c3 chromedriver + 534979
[0-0] 7   chromedriver                        0x000000010a1d1723 chromedriver + 509731
[0-0] 8   chromedriver                        0x000000010a1a775e chromedriver + 337758
[0-0] 9   chromedriver                        0x000000010a1a8a95 chromedriver + 342677
[0-0] 10  chromedriver                        0x000000010a5f28ab __gxx_personality_v0 + 305803
[0-0] 11  chromedriver                        0x000000010a609863 __gxx_personality_v0 + 399939
[0-0] 12  chromedriver                        0x000000010a60ec7f __gxx_personality_v0 + 421471
[0-0] 13  chromedriver                        0x000000010a60abba __gxx_personality_v0 + 404890
[0-0] 14  chromedriver                        0x000000010a5e6e51 __gxx_personality_v0 + 258097
[0-0] 15  chromedriver                        0x000000010a626158 __gxx_personality_v0 + 516920
[0-0] 16  chromedriver                        0x000000010a6262e1 __gxx_personality_v0 + 517313
[0-0] 17  chromedriver                        0x000000010a63d6f8 __gxx_personality_v0 + 612568
[0-0] 18  libsystem_pthread.dylib             0x00007ff8034e14e1 _pthread_start + 125
[0-0] 19  libsystem_pthread.dylib             0x00007ff8034dcf6b thread_start + 15
[0-0] 
[0-0] 2022-03-30T07:54:57.231Z ERROR @wdio/runner: Error: Failed to create session.
[0-0] session not created: This version of ChromeDriver only supports Chrome version 96
[0-0] Current browser version is 100.0.4896.60 with binary path /Applications/Google Chrome.app/Contents/MacOS/Google Chrome
[0-0]     at startWebDriverSession (/Users/achacofe/pocs/Ionic-FWKA6369/ionic-e2e-example/node_modules/webdriver/build/utils.js:72:15)
[0-0]     at processTicksAndRejections (internal/process/task_queues.js:97:5)
[0-0] FAILED in chrome - /tests/specs/app.about.spec.ts, /tests/specs/app.account.spec.ts, /tests/specs/app.login.spec.ts, /tests/specs/app.map.spec.ts, /tests/specs/app.schedule-filter.spec.ts, /tests/specs/app.schedule.spec.ts, /tests/specs/app.session-detail.spec.ts, /tests/specs/app.signup.spec.ts, /tests/specs/app.speaker-detail.spec.ts, /tests/specs/app.speaker-list.spec.ts, /tests/specs/app.support.spec.ts, /tests/specs/app.tutorial.spec.ts

Spec Files:      0 passed, 1 failed, 1 total (100% completed) in 00:00:13 

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] ionic-e2e:run:web: `TS_NODE_PROJECT=tests/tsconfig.json  wdio tests/config/wdio.web.config.ts`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the [email protected] ionic-e2e:run:web script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/achacofe/.npm/_logs/2022-03-30T07_54_57_622Z-debug.log

NOTA: Here I do not use a capacitor because it is the project of this repo, but to carry out these tests in a project with a capacitor, how should it be used? Can you document this a bit more?

from ionic-e2e-example.

paulosllvn avatar paulosllvn commented on July 19, 2024

Yes i am using windows

from ionic-e2e-example.

nive745 avatar nive745 commented on July 19, 2024

@paulosllvn Are you able to run test cases with appium

from ionic-e2e-example.

wswebcreation avatar wswebcreation commented on July 19, 2024

Hi @achacofe

Can you run the test again, but then with VERBOSE=true npm run ionic-e2e:run:android, see https://github.com/ionic-team/ionic-e2e-example/blob/main/tests/config/wdio.shared.appium.config.ts#L28

This would create a log for Appium and would tell us more about what happened with Appium. It should automatically download the correct ChromeDriver version (which is likely not happening according to the error). Can you share the logs as a gist?

from ionic-e2e-example.

mannysangra avatar mannysangra commented on July 19, 2024

@mlynch @paulosllvn this way will solve y problem npx wdio run tests/config/wdio.android.config.ts --autoCompileOpts.tsNodeOpts.project=tests/tsconfig.json

from ionic-e2e-example.

Related Issues (5)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.