Webdriverio: wdio.conf.ejs๊ฐ€ ์ƒ์„ฑ๋˜์ง€ ์•Š์Œ

์— ๋งŒ๋“  2017๋…„ 07์›” 29์ผ  ยท  4์ฝ”๋ฉ˜ํŠธ  ยท  ์ถœ์ฒ˜: webdriverio/webdriverio

๋ฌธ์ œ

๋‚˜๋Š” ๋‹น์‹œ ํ์‡„๋˜์—ˆ์ง€๋งŒ aztack ์— ์˜ํ•ด ๋‹ค์‹œ ๋ณด๊ณ ๋œ #1568 ๊ณผ ๋˜‘๊ฐ™์€ ๋ฌธ์ œ๋ฅผ ๊ฒฝํ—˜ํ–ˆ์Šต๋‹ˆ๋‹ค.

Webdriver IO๋ฅผ ์„ค์น˜ํ•œ ํ›„ ๊ตฌ์„ฑํ•˜๋ ค๊ณ  ํ•˜๋ฉด ์งˆ๋ฌธ ์ธํ„ฐํŽ˜์ด์Šค๋ฅผ ํ†ต๊ณผํ•œ ์งํ›„ ์˜ค๋ฅ˜๊ฐ€ ๋ฐœ์ƒํ•ฉ๋‹ˆ๋‹ค.

=========================
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.

ํ™˜๊ฒฝ

์„ธ๋ถ€ ์‚ฌํ•ญ

ํ”„๋ ˆ์ž„์›Œํฌ ์„ค์น˜๋ฅผ ๊ฑฐ๋ถ€ํ•˜๊ณ  ๋ฆฌํฌํ„ฐ ์„ ํƒ์„ ๊ฑด๋„ˆ๋›ฐ๊ณ  ํ…Œ์ŠคํŠธ ์„ค์ •์— ์„œ๋น„์Šค๋ฅผ ์ถ”๊ฐ€ํ•˜์—ฌ ๋ฌธ์ œ๋ฅผ ํ”ผํ•  ์ˆ˜ ์žˆ์—ˆ์Šต๋‹ˆ๋‹ค.

? 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?

๊ทธ๋Ÿฐ ๋‹ค์Œ ์„ค์น˜ํ•˜๊ณ  wdio.conf.js ๋ฅผ ์ˆ˜๋™์œผ๋กœ ํŽธ์ง‘ํ–ˆ์ง€๋งŒ ์ด์ƒ์ ์ด์ง€ ์•Š์Šต๋‹ˆ๋‹ค.

๋ฏธ๋ฆฌ ๊ฐ์‚ฌ๋“œ๋ฆฝ๋‹ˆ๋‹ค!

๊ฐ€์žฅ ์œ ์šฉํ•œ ๋Œ“๊ธ€

๋™์ผํ•œ ๋ฌธ์ œ์— ๋ถ€๋”ช์ณค์Šต๋‹ˆ๋‹ค. ๋…ธ๋“œ 8.2.1+yarn์ด v0.27.5์—์„œ ์ž‘๋™ํ•˜์ง€ ์•Š๊ณ , ๋…ธ๋“œ 8.2.1 + npm 5.3.0์ด ์ž‘๋™ํ•˜๊ณ , ๋…ธ๋“œ 7.10.1 + yarn์ด ์ž‘๋™ํ•ฉ๋‹ˆ๋‹ค. ๋ฌธ์ œ๊ฐ€ ๋  ์ˆ˜์žˆ๋Š” ์•„์ด๋””์–ด๊ฐ€ ์žˆ์Šต๋‹ˆ๊นŒ?

=========================
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

์˜ค๋ฅ˜๋Š” ๋™์ผํ•ฉ๋‹ˆ๋‹ค

๋ชจ๋“  4 ๋Œ“๊ธ€

Node v7.x๋กœ ์‹œ๋„ํ•ด ๋ณผ ์ˆ˜ ์žˆ์Šต๋‹ˆ๊นŒ?

@christian-bromann ๋ฐฉ๊ธˆ ์—ฌ๋Ÿฌ ๋ฒ„์ „์˜ Node(v6.11.1, v7.0.0, v8.1.3, v8.2.1)๋กœ ์‹œ๋„ํ–ˆ๋Š”๋ฐ ์ด์ƒํ•˜๊ฒŒ๋„ ๋ชจ๋‘ ํ†ต๊ณผํ–ˆ์Šต๋‹ˆ๋‹ค. ์‹œ๊ฐ.

๊ฐ™์€ ๋ฌธ์ œ๊ฐ€ ์žˆ๋Š” ์‚ฌ๋žŒ์€ Node๋ฅผ ๋‹ค์‹œ ์„ค์น˜ํ•˜๊ฑฐ๋‚˜ ์—…๊ทธ๋ ˆ์ด๋“œํ•˜๊ธฐ๋งŒ ํ•˜๋ฉด ๋ฉ๋‹ˆ๋‹ค. ๊ทธ๋ ‡๊ฒŒ ํ•˜๋ฉด ๋ฉ๋‹ˆ๋‹ค.

๋™์ผํ•œ ๋ฌธ์ œ๊ฐ€ ๋ฐœ์ƒํ•ฉ๋‹ˆ๋‹ค - ๋…ธ๋“œ v8.1.2 ์‚ฌ์šฉ

๋™์ผํ•œ ๋ฌธ์ œ์— ๋ถ€๋”ช์ณค์Šต๋‹ˆ๋‹ค. ๋…ธ๋“œ 8.2.1+yarn์ด v0.27.5์—์„œ ์ž‘๋™ํ•˜์ง€ ์•Š๊ณ , ๋…ธ๋“œ 8.2.1 + npm 5.3.0์ด ์ž‘๋™ํ•˜๊ณ , ๋…ธ๋“œ 7.10.1 + yarn์ด ์ž‘๋™ํ•ฉ๋‹ˆ๋‹ค. ๋ฌธ์ œ๊ฐ€ ๋  ์ˆ˜์žˆ๋Š” ์•„์ด๋””์–ด๊ฐ€ ์žˆ์Šต๋‹ˆ๊นŒ?

=========================
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

์˜ค๋ฅ˜๋Š” ๋™์ผํ•ฉ๋‹ˆ๋‹ค

์ด ํŽ˜์ด์ง€๊ฐ€ ๋„์›€์ด ๋˜์—ˆ๋‚˜์š”?
0 / 5 - 0 ๋“ฑ๊ธ‰