<small id='GplVO'></small><noframes id='GplVO'>

<tfoot id='GplVO'></tfoot>

    • <bdo id='GplVO'></bdo><ul id='GplVO'></ul>

    <legend id='GplVO'><style id='GplVO'><dir id='GplVO'><q id='GplVO'></q></dir></style></legend>

    1. <i id='GplVO'><tr id='GplVO'><dt id='GplVO'><q id='GplVO'><span id='GplVO'><b id='GplVO'><form id='GplVO'><ins id='GplVO'></ins><ul id='GplVO'></ul><sub id='GplVO'></sub></form><legend id='GplVO'></legend><bdo id='GplVO'><pre id='GplVO'><center id='GplVO'></center></pre></bdo></b><th id='GplVO'></th></span></q></dt></tr></i><div id='GplVO'><tfoot id='GplVO'></tfoot><dl id='GplVO'><fieldset id='GplVO'></fieldset></dl></div>

        Protractor 和 Karma 可以一起使用吗?

        时间:2023-10-12

      1. <small id='SOLZH'></small><noframes id='SOLZH'>

          <tfoot id='SOLZH'></tfoot>
          <i id='SOLZH'><tr id='SOLZH'><dt id='SOLZH'><q id='SOLZH'><span id='SOLZH'><b id='SOLZH'><form id='SOLZH'><ins id='SOLZH'></ins><ul id='SOLZH'></ul><sub id='SOLZH'></sub></form><legend id='SOLZH'></legend><bdo id='SOLZH'><pre id='SOLZH'><center id='SOLZH'></center></pre></bdo></b><th id='SOLZH'></th></span></q></dt></tr></i><div id='SOLZH'><tfoot id='SOLZH'></tfoot><dl id='SOLZH'><fieldset id='SOLZH'></fieldset></dl></div>

            • <legend id='SOLZH'><style id='SOLZH'><dir id='SOLZH'><q id='SOLZH'></q></dir></style></legend>
              • <bdo id='SOLZH'></bdo><ul id='SOLZH'></ul>
                  <tbody id='SOLZH'></tbody>

                  本文介绍了Protractor 和 Karma 可以一起使用吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

                  问题描述

                  如果 Protractor 正在取代 Angular Scenario Runner 进行 E2E 测试,这是否意味着我仍然可以将它与 Karma 作为我的端到端测试框架?

                  If Protractor is replacing Angular Scenario Runner for E2E testing, does that mean I will still be able to use it with Karma as my E2E testing framework ?

                  推荐答案

                  Protractor 的当前维护者不推荐:

                  Not recommended by the current maintainer of Protractor:

                  https://github.com/angular/protractor/issues/9#issuecomment-19927049

                  Protractor 和 Karma 不应该一起使用;相反,它们为运行测试提供了单独的系统.Protractor 和 Karma 涵盖了测试的不同方面 - Karma 主要用于单元测试,而 Protractor 应该用于端到端测试.

                  Protractor and Karma should not be used together; instead they provide separate systems for running tests. Protractor and Karma cover different aspects of testing - Karma is intended mostly for unit tests, while Protractor should be used for end to end testing.

                  Protractor 构建在 WebDriverJS 之上,它使用 Selenium/WebDriver 服务器来配置浏览器和驱动测试执行.可以在这里找到纯 WebDriverJS 的示例:http://code.google.com/p/selenium/wiki/WebDriverJs

                  Protractor is built on top of WebDriverJS, which uses a Selenium/WebDriver server to provision browsers and drive test execution. Examples of pure WebDriverJS can be found here: http://code.google.com/p/selenium/wiki/WebDriverJs

                  https://github.com/angular/protractor/issues/9#issuecomment-19931154

                  Georgios - 我认为将 Protractor 和 Karma 分开是有意义的 - 对于端到端测试,您需要 webdriver 的原生事件驱动和灵活性,而对于单元测试,您需要快速执行和自动查看文件.

                  Georgios - I think it makes sense to keep Protractor and Karma separate - for end to end tests, you want the native event driving and flexibility of webdriver, while for unit tests you want fast execution and autowatching of files.

                  这篇关于Protractor 和 Karma 可以一起使用吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持html5模板网!

                  上一篇:量角器:element.getText() 返回一个对象而不是字符串 下一篇:将 require 与相对路径一起使用

                  相关文章

                  最新文章

                    • <bdo id='PANAa'></bdo><ul id='PANAa'></ul>
                    1. <small id='PANAa'></small><noframes id='PANAa'>

                      <i id='PANAa'><tr id='PANAa'><dt id='PANAa'><q id='PANAa'><span id='PANAa'><b id='PANAa'><form id='PANAa'><ins id='PANAa'></ins><ul id='PANAa'></ul><sub id='PANAa'></sub></form><legend id='PANAa'></legend><bdo id='PANAa'><pre id='PANAa'><center id='PANAa'></center></pre></bdo></b><th id='PANAa'></th></span></q></dt></tr></i><div id='PANAa'><tfoot id='PANAa'></tfoot><dl id='PANAa'><fieldset id='PANAa'></fieldset></dl></div>

                    2. <legend id='PANAa'><style id='PANAa'><dir id='PANAa'><q id='PANAa'></q></dir></style></legend>
                      <tfoot id='PANAa'></tfoot>