2016-08-03 6 views
0

分度器conf.jsファイルを実行してステップデフレーションスケルトンを生成しようとしています。 分裂器にBDDを実装する必要があります。キュウリ分度器積分を使用してスケルトンを生成する

conf.js

exports.config = { 
    directConnect: true, 
    capabilities: { 
    'browserName': 'chrome' 
    }, 
    framework: 'custom', 
    frameworkPath: require.resolve('protractor-cucumber-framework'), 
    specs: ['features /*.feature'], 
    jasmineNodeOpts: { 
    defaultTimeoutInterval: 30000 
    } 
}; 

機能ファイル

@tag1 
Feature: Add Numbers 
    As a user of the calculator 
    I want to add 2 numbers 

    @tag2 
    Scenario: Add 2 small numbers 
    Given the calculator is cleared 
    When I add 5 and 6 
    Then the result should be 11 
+0

:私はTAG2 @

シナリオを2つの数字

を追加したい電卓の使用者として数字を追加コンソールの出力にエラーがありますか? – Mallory

+0

エラーは何ですか?質問はなんですか? – nilesh

+0

重複した質問のように見える - http://stackoverflow.com/questions/38605648/how-to-generate-skeleton-using-cucumber-feature-file – Rocky

答えて

0

あなたは以下のようにツアー機能ファイルのテキストの書式を設定する必要があります。 conf.jsファイルを実行すると、手順が表示されます。 TAG1 @

特集ですか2つの小さな数字を追加

Given the calculator is cleared 
When I add 5 and 6 
Then the result should be 11 
関連する問題