Protractor 如何在量角器套件下运行测试

Protractor 如何在量角器套件下运行测试,protractor,suite,Protractor,Suite,如何在量角器中运行套件。这是我的配置文件: exports.config = { seleniumAddress: 'http://localhost:4444/wd/hub', suites: { one: ['test.js'], two: ['homePageSpec.js'] }, onPrepare: function () { browser.drive

如何在量角器中运行套件。这是我的配置文件:

exports.config = {
       seleniumAddress: 'http://localhost:4444/wd/hub',

       suites:
       {
         one: ['test.js'],
         two: ['homePageSpec.js']
       },

       onPrepare: function () {
           browser.driver.manage().window().setSize(1180, 900);

       },
   }

我尝试了Digrator GragratorConf.js-suite one,去掉了方括号,效果很好。比如:

suites:
       {
         one: 'test.js',
         two: 'homePageSpec.js'
       },

您得到了什么异常?我得到了以下错误--$dragrator-dragratorconf.js-suiteone[11:38:36]E/configParser-错误代码:105[11:38:36]E/configParser-错误消息:未能加载配置文件dragratorconf.js[11:38:36]E/configParser-/Users/sup/Documents/ProFirstTest/dragratorconf.js:9 onPrepare:function{^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^