μ΄ κ΅¬μ±μ μ¬μ©νμ¬ κ°λκΈ°(3.0.0)κ° μλ μ€μ΄-js(0.9.2) μ€μ μΌλ‘ νλ‘μ νΈλ₯Ό μ€μ νμ΅λλ€.
// protractor configuration file for cucumber
exports.config = {
allScriptsTimeout: 11000,
specs: [
'features/**/*.feature'
],
capabilities: {
'browserName': 'chrome'
},
baseUrl: 'http://192.168.1.187:8000',
seleniumAddress: 'http://127.0.0.1:4444/wd/hub',
framework: 'cucumber',
cucumberOpts: {
require: 'features/',
format: "pretty"
}
};
μ€μ΄ ν μ€νΈλ₯Ό μ€νν λ λ€μμ μ»μ΅λλ€.
> protractor config.js
Using the selenium server at http://localhost:4444/wd/hub
[launcher] Running 1 instances of WebDriver
[launcher] Error: Error: config.framework (cucumber) is not a valid framework.
...
λ΄κ° jasmine e2e ν μ€νΈλ‘ protratorλ₯Ό μ€νν λ κ·Έκ²μ μλν©λλ€(tm). λλ μ¬κΈ°μ λ¬Έμ λ₯Ό κ²μνκ³ λ΄κ° νλ Έλ€λ©΄ λλ₯Ό μ©μνμ§ μμ΅λλ€.
Ok λλ λ§μΉ¨λ΄ μ€μ΄κ° κ°λκΈ°μμ μ κ±°λμλ€λ κ²μ κΉ¨λ¬μμ΅λλ€. μ€μ΄.js λ 립 μ€νν μ€νμ΄ μννκ² μλνμ΅λλ€.
./node_modules/.bin/cucumber.js features/homepage.feature
μ€μ΄λ κ°λκΈ°(3.0.0) ꡬμ±μμ 컀μ€ν νλ μμν¬λ‘ μ€μ ν΄μΌ ν©λλ€ ~ https://github.com/angular/protractor/blob/master/docs/frameworks.md#using -cucumber:
...
framework: 'custom',
frameworkPath: 'node_modules/protractor-cucumber-framework',
...
λ°λΌμ μ€μ΄-jsμ μ무 κ΄λ ¨μ΄ μμ΅λλ€. μμ μ£μ‘ν©λλ€.
μμ μ£μ‘ν©λλ€
@pellekrogholt λ¬Έμ λ₯Ό μ€λͺ
μ΄ μ€λ λλ λ«ν ν μ΅κ·Ό νλμ΄ μμκΈ° λλ¬Έμ μλμΌλ‘ μ κ²Όμ΅λλ€. κ΄λ ¨ λ²κ·Έμ λν μ λ¬Έμ λ₯Ό μ¬μμμ€.
κ°μ₯ μ μ©ν λκΈ
Ok λλ λ§μΉ¨λ΄ μ€μ΄κ° κ°λκΈ°μμ μ κ±°λμλ€λ κ²μ κΉ¨λ¬μμ΅λλ€. μ€μ΄.js λ 립 μ€νν μ€νμ΄ μννκ² μλνμ΅λλ€.
μ€μ΄λ κ°λκΈ°(3.0.0) ꡬμ±μμ 컀μ€ν νλ μμν¬λ‘ μ€μ ν΄μΌ ν©λλ€ ~ https://github.com/angular/protractor/blob/master/docs/frameworks.md#using -cucumber:
λ°λΌμ μ€μ΄-jsμ μ무 κ΄λ ¨μ΄ μμ΅λλ€. μμ μ£μ‘ν©λλ€.