久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

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

      <i id='PI0C8'><tr id='PI0C8'><dt id='PI0C8'><q id='PI0C8'><span id='PI0C8'><b id='PI0C8'><form id='PI0C8'><ins id='PI0C8'></ins><ul id='PI0C8'></ul><sub id='PI0C8'></sub></form><legend id='PI0C8'></legend><bdo id='PI0C8'><pre id='PI0C8'><center id='PI0C8'></center></pre></bdo></b><th id='PI0C8'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='PI0C8'><tfoot id='PI0C8'></tfoot><dl id='PI0C8'><fieldset id='PI0C8'></fieldset></dl></div>
      <legend id='PI0C8'><style id='PI0C8'><dir id='PI0C8'><q id='PI0C8'></q></dir></style></legend>
      • <bdo id='PI0C8'></bdo><ul id='PI0C8'></ul>

        <tfoot id='PI0C8'></tfoot>

        可以說,如何在每次量角器 -spec 測試后重新啟動

        How to, so to speak, restart or close browser after every protractor -spec test(可以說,如何在每次量角器 -spec 測試后重新啟動或關閉瀏覽器)
        <tfoot id='Wt6mo'></tfoot>
          <bdo id='Wt6mo'></bdo><ul id='Wt6mo'></ul>

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

              1. <legend id='Wt6mo'><style id='Wt6mo'><dir id='Wt6mo'><q id='Wt6mo'></q></dir></style></legend>
              2. <i id='Wt6mo'><tr id='Wt6mo'><dt id='Wt6mo'><q id='Wt6mo'><span id='Wt6mo'><b id='Wt6mo'><form id='Wt6mo'><ins id='Wt6mo'></ins><ul id='Wt6mo'></ul><sub id='Wt6mo'></sub></form><legend id='Wt6mo'></legend><bdo id='Wt6mo'><pre id='Wt6mo'><center id='Wt6mo'></center></pre></bdo></b><th id='Wt6mo'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='Wt6mo'><tfoot id='Wt6mo'></tfoot><dl id='Wt6mo'><fieldset id='Wt6mo'></fieldset></dl></div>

                    <tbody id='Wt6mo'></tbody>
                  本文介紹了可以說,如何在每次量角器 -spec 測試后重新啟動或關閉瀏覽器的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

                  問題描述

                  我正在為 Web 應用程序實施量角器測試.我已經做了一些谷歌搜索,但我想出了 zip,我希望我創建的每個規范在瀏覽器運行該特定規范文件中的所有測試后關閉瀏覽器,然后繼續到下一個 -spec 文件,等等.我有諸如使用beforeAll"和afterAll"之類的東西,但 Jasmine 無法識別這些方法.朝著正確的方向前進會很棒!

                  I am implementing Protractor test for a web app. I have done some google searching but I have come up with zip, I want to every spec that I create to close the browser after it has ran all of the test in that specific spec file and then continue on to the next -spec file, etc. I've things such as using "beforeAll" and "afterAll" but Jasmine doesn't recognize these methods. A point in the right direction would be awesome!

                  describe('我稍后會在這里放一些更有意義的東西:)', function () {

                  describe('i will put something more meaningful here later :)', function () {

                  //not sure if this method actually exist in Jasmine
                  afterAll(function () {
                     //restart browser or something of the nature
                  });
                  
                  it('should do stuff', function () {
                  
                  });
                  
                  it('do stuff', function () {
                  
                  });
                  

                  });

                  瀏覽器應該關閉,然后重新打開以運行下一個規范.

                  browser should then close, and then open back up to run the next spec.

                  推薦答案

                  說到測試之間重啟瀏覽器,有一個相關的配置選項:

                  Speaking about restarting browser between tests, there is a relevant configuration option:

                  // If true, protractor will restart the browser between each test.
                  // CAUTION: This will cause your tests to slow down drastically.
                  restartBrowserBetweenTests: false,
                  

                  將其設置為 true.

                  僅供參考,這是初始功能請求:

                  FYI, Here is the initial feature request:

                  • 功能請求:可以選擇在每個測試用例/場景之間重新啟動新的瀏覽器會話

                  beforeAllafterAll 內置在 jasmine-2.x 中.要使它們工作,您需要將 jasmine2 設置為測試框架 在 量角器配置中:

                  beforeAll and afterAll are built into jasmine-2.x. To make them work, you need to set jasmine2 as a testing framework in the protractor config:

                  exports.config = {
                      ...
                      framework: 'jasmine2',
                      ...
                  }
                  

                  <小時>

                  對于jasmine-1.x,有第三方jasmine-beforeAll 提供相同功能的包.


                  For jasmine-1.x, there is a third-party jasmine-beforeAll package that provides the same exact functionality.

                  這篇關于可以說,如何在每次量角器 -spec 測試后重新啟動或關閉瀏覽器的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!

                  【網站聲明】本站部分內容來源于互聯網,旨在幫助大家更快的解決問題,如果有圖片或者內容侵犯了您的權益,請聯系我們刪除處理,感謝您的支持!

                  相關文檔推薦

                  Browser waits for ajax call to complete even after abort has been called (jQuery)(即使在調用 abort (jQuery) 之后,瀏覽器也會等待 ajax 調用完成)
                  JavaScript innerHTML is not working for IE?(JavaScript innerHTML 不適用于 IE?)
                  XMLHttpRequest cannot load, No #39;Access-Control-Allow-Origin#39; header is present on the requested resource(XMLHttpRequest 無法加載,請求的資源上不存在“Access-Control-Allow-Origin標頭) - IT屋-程序員軟件開發技術分
                  Is it possible for XHR HEAD requests to not follow redirects (301 302)(XHR HEAD 請求是否有可能不遵循重定向 (301 302))
                  NETWORK_ERROR: XMLHttpRequest Exception 101(NETWORK_ERROR:XMLHttpRequest 異常 101)
                  XMLHttpRequest 206 Partial Content(XMLHttpRequest 206 部分內容)

                    • <tfoot id='aOKrO'></tfoot>

                      1. <legend id='aOKrO'><style id='aOKrO'><dir id='aOKrO'><q id='aOKrO'></q></dir></style></legend>
                          <tbody id='aOKrO'></tbody>

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

                        • <i id='aOKrO'><tr id='aOKrO'><dt id='aOKrO'><q id='aOKrO'><span id='aOKrO'><b id='aOKrO'><form id='aOKrO'><ins id='aOKrO'></ins><ul id='aOKrO'></ul><sub id='aOKrO'></sub></form><legend id='aOKrO'></legend><bdo id='aOKrO'><pre id='aOKrO'><center id='aOKrO'></center></pre></bdo></b><th id='aOKrO'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='aOKrO'><tfoot id='aOKrO'></tfoot><dl id='aOKrO'><fieldset id='aOKrO'></fieldset></dl></div>
                          • <bdo id='aOKrO'></bdo><ul id='aOKrO'></ul>
                          • 主站蜘蛛池模板: 国产伊人精品 | 91福利网| 午夜小电影 | 日韩网站免费观看 | 欧美精品一区二区三区在线播放 | 国产亚洲一区二区在线观看 | 九九综合九九 | 天天干天天色 | 亚洲97| 91看片视频| 欧美午夜精品理论片a级按摩 | 天天干视频网 | 中文字幕免费 | 日本a视频| 一区二区三区亚洲精品国 | 久热精品在线 | 亚洲+变态+欧美+另类+精品 | 久久久精品一区二区 | 亚洲精品久久久久中文字幕欢迎你 | 三极网站 | 免费观看黄色片视频 | 国产精品美女久久久久久免费 | 欧美精品综合 | 男女午夜免费视频 | 久久夜视频 | 综合久久久 | 日韩中文欧美 | 欧美精品综合在线 | 国产在线中文 | 亚洲一区二区三区四区在线观看 | 国产一区二区在线免费观看 | 精品国产黄a∨片高清在线 成人区精品一区二区婷婷 日本一区二区视频 | 国产精品视频一二三区 | 亚洲一区二区三区在线观看免费 | 久久久免费毛片 | 玖玖玖在线观看 | 亚洲精品日韩一区二区电影 | 一区二区三区四区不卡视频 | 韩国av电影网 | 在线观看亚洲精品视频 | 国产一区精品在线 |