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

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

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

      <tfoot id='ytS5j'></tfoot>
      1. <small id='ytS5j'></small><noframes id='ytS5j'>

          <bdo id='ytS5j'></bdo><ul id='ytS5j'></ul>

        將量角器與 PhantomJS 一起使用

        Using Protractor with PhantomJS(將量角器與 PhantomJS 一起使用)
      2. <legend id='Bl8ik'><style id='Bl8ik'><dir id='Bl8ik'><q id='Bl8ik'></q></dir></style></legend>

          <tbody id='Bl8ik'></tbody>
        <tfoot id='Bl8ik'></tfoot>
          <bdo id='Bl8ik'></bdo><ul id='Bl8ik'></ul>
        • <small id='Bl8ik'></small><noframes id='Bl8ik'>

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

                  本文介紹了將量角器與 PhantomJS 一起使用的處理方法,對(duì)大家解決問(wèn)題具有一定的參考價(jià)值,需要的朋友們下面隨著小編來(lái)一起學(xué)習(xí)吧!

                  問(wèn)題描述

                  我需要對(duì)我的 AngularJS 應(yīng)用程序進(jìn)行 E2E 測(cè)試,Protractor 似乎是正確的方法.設(shè)置相當(dāng)簡(jiǎn)單,它就像 Chrome 中的魅力一樣.但是我需要使用無(wú)頭瀏覽器并一直在研究如何將 Protractor 與 PhantomJS 一起使用,我發(fā)現(xiàn)了這一點(diǎn):

                  I need to E2E test my AngularJS Application an Protractor seems like the right way to do it. Setup was fairly straightforward and it works like a charm in Chrome. I need however use headless browser and been researching on how to use Protractor with PhantomJS and I found this:

                  注意:我們建議不要使用 PhantomJS 進(jìn)行 Protractor 測(cè)試.PhantomJS 崩潰和行為有許多報(bào)告的問(wèn)題不同于真正的瀏覽器.

                  Note: We recommend against using PhantomJS for tests with Protractor. There are many reported issues with PhantomJS crashing and behaving differently from real browsers.

                  以上來(lái)自 https://github.com/angular/protractor/blob/master/docs/browser-setup.md

                  所以我的問(wèn)題是:

                  1. 情況仍然如此,Proractor 仍然存在 PhantomJS 的問(wèn)題嗎?

                  1. Is this still the case and Proractor still having issues with PhantomJS?

                  如果是這樣,它有多糟糕,有沒(méi)有更好的選擇?

                  If so how bad is it and is there any better option?

                  當(dāng)我的應(yīng)用部署到服務(wù)器時(shí),我將如何進(jìn)行 E2E 測(cè)試?

                  How would I do E2E testing when my app is being deployed to server?

                  推薦答案

                  情況仍然如此,Protractor 仍然存在 PhantomJS 問(wèn)題嗎?

                  Is this still the case and Protractor still having issues with PhantomJS?

                  這是真的.

                  如果是這樣,它有多糟糕,有沒(méi)有更好的選擇?

                  If so how bad is it and is there any better option?

                  很難回答它有多糟糕,但是關(guān)于掛起 phantomjs、垂死 phantomjs、執(zhí)行緩慢的 phantomjs 存在多個(gè)問(wèn)題,例如:

                  It's difficult to answer how bad is it, but there are multiple issues about hanging phantomjs, dying phantomjs, performing slow phantomjs e.g.:

                  • PhantomJS 有時(shí)會(huì)崩潰(開(kāi)放問(wèn)題超過(guò)一年)
                  • PhantomJS sometimes crashes (open issue for more than a year)

                  根據(jù)問(wèn)題,您使用 protractor 的主要原因是端到端測(cè)試.您應(yīng)該嘗試模仿真實(shí)世界的用例,模仿在您的應(yīng)用程序中工作的真實(shí)用戶.真正的用戶會(huì)使用什么瀏覽器?幻影JS?答案可能是否定的. 使用您的應(yīng)用程序設(shè)計(jì)的瀏覽器,以及您的真實(shí)用戶使用的瀏覽器.

                  According to the question, the main reason for you to use protractor is end-to-end testing. You should try to imitate real-world use cases, imitate a real user working in your application. What browser would a real user use? PhantomJS? The answer is probably "no". Use the browsers which your application is designed to work in, and the browsers your real users use.

                  當(dāng)我的應(yīng)用部署到服務(wù)器時(shí),我將如何進(jìn)行 E2E 測(cè)試?

                  How would I do E2E testing when my app is being deployed to server?

                  最自然"的方法是使用提供不同功能(瀏覽器和平臺(tái))的遠(yuǎn)程 selenium 服務(wù)器.您可以啟動(dòng)和配置自己的 selenium 服務(wù)器,也可以使用 BrowserStackSauce Labs 做得很好,為您提供了一種在廣泛的應(yīng)用程序中測(cè)試您的應(yīng)用程序的方法各種不同的瀏覽器和系統(tǒng).

                  The most "natural" approach is to use a remote selenium server that provides different capabilities - browsers and platforms. You can start up and configure your own selenium server, or you can use BrowserStack or Sauce Labs which are doing a great job providing you a way to test your application among a wide variety of different browsers and systems.

                  您還可以在沒(méi)有真實(shí)顯示但虛擬顯示 (xvfb) 的無(wú)頭環(huán)境"中運(yùn)行量角器,查看更多 這里.

                  You can also run protractor in a headless "environment" with no real, but virtual display (xvfb), see more here.

                  這篇關(guān)于將量角器與 PhantomJS 一起使用的文章就介紹到這了,希望我們推薦的答案對(duì)大家有所幫助,也希望大家多多支持html5模板網(wǎng)!

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

                  相關(guān)文檔推薦

                  Browser waits for ajax call to complete even after abort has been called (jQuery)(即使在調(diào)用 abort (jQuery) 之后,瀏覽器也會(huì)等待 ajax 調(diào)用完成)
                  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 無(wú)法加載,請(qǐng)求的資源上不存在“Access-Control-Allow-Origin標(biāo)頭) - IT屋-程序員軟件開(kāi)發(fā)技術(shù)分
                  Is it possible for XHR HEAD requests to not follow redirects (301 302)(XHR HEAD 請(qǐng)求是否有可能不遵循重定向 (301 302))
                  XMLHttpRequest 206 Partial Content(XMLHttpRequest 206 部分內(nèi)容)
                  Restrictions of XMLHttpRequest#39;s getResponseHeader()?(XMLHttpRequest 的 getResponseHeader() 的限制?)

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

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

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

                          • 主站蜘蛛池模板: 久草网在线视频 | 亚洲精品一区二区在线观看 | 综合另类 | 日本视频免费 | 国产玖玖| 91精品久久久久久久99 | 日批免费在线观看 | 久久免费观看一级毛片 | 国产原创在线观看 | 日韩av啪啪网站大全免费观看 | 一区二区福利视频 | 久久99深爱久久99精品 | 久久久久国产一区二区三区 | 日韩av在线播 | 色片在线观看 | 天天色av| 中文字幕av亚洲精品一部二部 | 久草免费在线视频 | 国产精品精品视频一区二区三区 | 欧美一区二区三区在线播放 | 国产精品久久久久9999鸭 | 在线播放国产一区二区三区 | 91久久精品日日躁夜夜躁欧美 | 日韩在线精品 | 欧美中文在线 | 免费国产一区 | 亚洲午夜小视频 | 国产在线资源 | 日韩国产专区 | 天天舔天天 | 久久久免费毛片 | 一区二区日韩 | 91网在线播放| xxx国产精品视频 | 亚洲精品久久久蜜桃 | 亚洲精品视频在线看 | 亚洲自拍偷拍av | 极品电影院 | 韩日一区二区 | 免费毛片网 | 激情的网站 |