【问题标题】:Running protractor tests on localhost with VirtualHost configurations?使用 VirtualHost 配置在 localhost 上运行量角器测试?
【发布时间】:2014-09-11 08:46:03
【问题描述】:

我在 dev.angular.com 本地运行教程,并带有相应的虚拟主机和主机文件配置。我能够执行 Jasmine 单元测试,但不能执行 Protractor 端到端测试,因为它总是寻找 localhost:8000/app/index.html URL。

有没有办法重新配置 Protractor 以使用 dev.angular.com 代替?

【问题讨论】:

    标签: node.js angularjs protractor


    【解决方案1】:

    看一下配置文件。有一个名为baseUrl 的属性。将其更改为:

    baseUrl: 'http://dev.angular.com'
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2013-12-02
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多