Webdriverio: wdio.conf.ejs non créé

Créé le 29 juil. 2017  ·  4Commentaires  ·  Source: webdriverio/webdriverio

Le problème

J'ai rencontré exactement le même problème que # 1568 qui a été fermé à l'époque mais signalé à nouveau par aztack .

Lorsque j'essaie de configurer Webdriver IO après l'avoir installé, j'obtiens une erreur juste après être passé par l'interface des questions :

=========================
WDIO Configuration Helper
=========================

? Where do you want to execute your tests? On my local machine
? Which framework do you want to use? mocha
? Shall I install the framework adapter for you? Yes
? Where are your test specs located? ./test/*.js
? Which reporter do you want to use?  spec - https://github.com/webdriverio/wdio-spec-reporter
? Shall I install the reporter library for you? Yes
? Do you want to add a service to your test setup?  selenium-standalone - https://github.com/webdriverio/wdio-selenium-standalone
-service
? Shall I install the services for you? Yes
? Level of logging verbosity command
? In which directory should screenshots gets saved if a command fails? ./errorShots/
? What is the base url? http://localhost

Installing wdio packages:

Packages installed successfully, creating configuration file...
fs.js:651
  return binding.open(pathModule._makeLong(path), stringToFlags(flags), mode);
                 ^

Error: ENOENT: no such file or directory, open '/Users/sarahdayan/Projets/communitytalk.com/node_modules/webdriverio/build/lib/helpers/wdio.conf.ejs'
    at Object.fs.openSync (fs.js:651:18)
    at Object.fs.readFileSync (fs.js:553:33)
    at renderConfigurationFile (/Users/sarahdayan/Projets/communitytalk.com/node_modules/webdriverio/build/lib/cli.js:292:28)
    at /Users/sarahdayan/Projets/communitytalk.com/node_modules/webdriverio/build/lib/cli.js:282:17
    at /Users/sarahdayan/Projets/communitytalk.com/node_modules/npm-install-package/index.js:31:5
    at ChildProcess.exithandler (child_process.js:262:7)
    at emitTwo (events.js:125:13)
    at ChildProcess.emit (events.js:213:7)
    at maybeClose (internal/child_process.js:897:16)
    at Socket.stream.socket.on (internal/child_process.js:340:11)
npm ERR! Test failed.  See above for more details.

Environnement

Détail

J'ai réussi à contourner le problème en disant non à l'installation du framework et en sautant la sélection d'un journaliste et en ajoutant un service à ma configuration de test :

? Shall I install the framework adapter for you? No
? Which reporter do you want to use?
? Do you want to add a service to your test setup?

Je les ai ensuite installés et j'ai édité les wdio.conf.js manuellement mais ce n'est pas l'idéal.

Merci d'avance!

Commentaire le plus utile

Je suis tombé sur le même problème: le nœud 8.2.1 + fil ne fonctionne pas v0.27.5, le nœud 8.2.1 + npm 5.3.0 fonctionne, le nœud 7.10.1 + fil fonctionne. Des idées où le problème peut être?

=========================
WDIO Configuration Helper
=========================

? Where do you want to execute your tests? On my local machine
? Which framework do you want to use? cucumber
? Shall I install the framework adapter for you? Yes
? Where are your feature files located? ./features/**/*.feature
? Where are your step definitions located? ./features/step-definitions
? Which reporter do you want to use?  spec - https://github.com/webdriverio/wdio-spec-reporter
? Shall I install the reporter library for you? Yes
? Do you want to add a service to your test setup?  selenium-standalone - https://github.com/webdriverio/wdio-selenium-standalone-service,  phantomjs - https://github.com/cognitom/wdio-phantomjs-serv
ice
? Shall I install the services for you? Yes
? Level of logging verbosity silent
? In which directory should screenshots gets saved if a command fails? ./errorShots/
? What is the base url? http://localhost

l'erreur est la même

Tous les 4 commentaires

Pouvez-vous essayer avec Node v7.x ?

@christian-bromann Je viens d'essayer avec plusieurs versions de Node (v6.11.1, v7.0.0, v8.1.3, v8.2.1) et bizarrement, tout a réussi 😶 Peut-être que quelque chose n'allait pas avec ma copie locale de Node quand je l'ai essayé la première temps.

Je suppose que toute personne ayant le même problème n'aurait qu'à réinstaller ou mettre à niveau Node et cela devrait le faire.

J'ai le même problème - en utilisant le nœud v8.1.2

Je suis tombé sur le même problème: le nœud 8.2.1 + fil ne fonctionne pas v0.27.5, le nœud 8.2.1 + npm 5.3.0 fonctionne, le nœud 7.10.1 + fil fonctionne. Des idées où le problème peut être?

=========================
WDIO Configuration Helper
=========================

? Where do you want to execute your tests? On my local machine
? Which framework do you want to use? cucumber
? Shall I install the framework adapter for you? Yes
? Where are your feature files located? ./features/**/*.feature
? Where are your step definitions located? ./features/step-definitions
? Which reporter do you want to use?  spec - https://github.com/webdriverio/wdio-spec-reporter
? Shall I install the reporter library for you? Yes
? Do you want to add a service to your test setup?  selenium-standalone - https://github.com/webdriverio/wdio-selenium-standalone-service,  phantomjs - https://github.com/cognitom/wdio-phantomjs-serv
ice
? Shall I install the services for you? Yes
? Level of logging verbosity silent
? In which directory should screenshots gets saved if a command fails? ./errorShots/
? What is the base url? http://localhost

l'erreur est la même

Cette page vous a été utile?
0 / 5 - 0 notes