简体   繁体   English

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

[英]How to setup cucumber on top of protractor to do end to end testing?

Need to setup cucumber framework on top of protractor to do end to end testing.需要在量角器上设置黄瓜框架以进行端到端测试。 Kindly provide to steps to successfully run the setup请提供成功运行设置的步骤

Steps to setup Protractor cucumber framework:设置量角器黄瓜框架的步骤:

  1. Install npm install --save-dev protractor-cucumber-framework安装 npm install --save-dev protractor-cucumber-framework
  2. To implement this framework, utilize the protractor custom framework要实现此框架,请使用量角器自定义框架

config option:配置选项:

exports.config = {
  // set to "custom" instead of cucumber. 
  framework: 'custom',

  // path relative to the current config file 
  frameworkPath: require.resolve('protractor-cucumber-framework')
};

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM