如何在量角器上设置黄瓜进行端到端测试?

时间:2016-09-17 08:19:36

标签: protractor cucumber

需要在量角器上设置黄瓜框架进行端到端测试。请提供成功运行设置的步骤

1 个答案:

答案 0 :(得分:1)

设置Protractor黄瓜框架的步骤:

  1. 安装npm install --save-dev protractor-cucumber-framework
  2. 要实现此框架,请使用量角器自定义框架
  3. 配置选项:

    exports.config = {
      // set to "custom" instead of cucumber. 
      framework: 'custom',
    
      // path relative to the current config file 
      frameworkPath: require.resolve('protractor-cucumber-framework')
    };
    
相关问题