2012-07-30 41 views
10

即時通訊工作ruby.railstutorial.org/ruby-on-rails-tutorial-book 。 即時通訊使用導軌3.2.7,叉勺,RSpec的,水豚,launchy和一些警衛:)使用規範進行測試,來自railstutorial第3章的水豚不起作用(have_selector('title',::text =>'| Home'))

我在第3章與測試一個很奇怪的問題:

好像測試的arent工作是什麼在<head> -Tag內。如果我把<title> -tag放在<body> -tag裏面,而不是頭標籤,它可以正常工作。 它也適用於當我把<h1>-標籤<title>以上<head>-標籤。這很奇怪,不是嗎?

請幫我解決問題。

的示例是從:ruby.railstutorial.org/chapters/static-pages#code:title_test:

it "should have the right title" do 
    visit '/static_pages/home' 
    page.should have_selector('title', 
        :text => "Ruby on Rails Tutorial Sample App | Home") 
end 

誤差信息是:

Failures:

1) Static pages Home page should have the title 'Home' Failure/Error: page.should have_selector('title', :text => ' | Home') Capybara::ExpectationNotMet: expected to find css "title" with text " | Home" but there were no matches. Also found "", which matched the selector but not all filters. # ./spec/requests/static_pages_spec.rb:15:in `block (3 levels) in '

那一個是工作:

it "should have the h1 'Sample App'" do 
    visit '/static_pages/home' 
    page.should have_selector('h1', :text => 'Sample App') 
end 

呈現的HTML文件:

<!DOCTYPE html> 
<html> 
<head> 
    <title>Ruby on Rails Tutorial Sample App | Home</title> 
    <!-- some css,js stuff --> 
</head> 
<body> 

<h1>Sample App</h1> 
<p> 
    This is the home page for the 
    <a href="http://railstutorial.org/">Ruby on Rails Tutorial</a> 
    sample application 
</p> 

</body> 
</html> 

感謝

編輯: 你能找到的文件即時通訊與GitHub上的工作: https://github.com/farukg/sample_app/

鏈接到spec文件: https://github.com/farukg/sample_app/blob/master/spec/requests/static_pages_spec.rb

我所做的解釋: 主頁的代碼就像它應該是的。 關於頁面的代碼具有其自己的佈局,其中h1標籤位於title-tag之上,以顯示它適用於某種原因。 最後,幫助頁面的標題標籤也在其中起作用。

我絕對困惑,爲什麼我有這樣一個奇怪的行爲?

後衛的完整輸出:

> Run all 
Bundle already up-to-date 
Running all specs 
Running tests with args ["--drb", "--colour", "-f", "progress", "-r", "/home/faruk/.rvm/gems/ruby-1.9.3-p125/gems/guard-rspec-1.2.0/lib/guard/rspec/formatters/notification_rspec.rb", "-f", "Guard::RSpec::Formatter::NotificationRSpec", "--out", "/dev/null", "--failure-exit-code", "2", "spec"]... 
..FFF.....Neues Fenster in aktueller Browsersitzung erstellt. 
.FF.. 

Failures: 

    1) Static pages Home page having application layout should have_selector head title 'Home' 
    Failure/Error: page.should have_selector('head title', 
    Capybara::ExpectationNotMet: 
     expected to find css "head title" with text "Ruby on Rails Tutorial Sample App | Home" but there were no matches. Also found "", which matched the selector but not all filters. 
    # ./spec/requests/static_pages_spec.rb:23:in `block (3 levels) in <top (required)>' 

    2) Static pages Home page having application layout should have content 'Home' 
    Failure/Error: page.should have_content("Ruby on Rails Tutorial Sample App | Home") 
     expected there to be text "Ruby on Rails Tutorial Sample App | Home" in "Sample App This is the home page for the Ruby on Rails Tutorial sample application" 
    # ./spec/requests/static_pages_spec.rb:30:in `block (3 levels) in <top (required)>' 

    3) Static pages Home page having application layout should have css title 'Home' 
    Failure/Error: page.should have_css("title", :text => "Ruby on Rails Tutorial Sample App | Home") 
    Capybara::ExpectationNotMet: 
     expected to find css "title" with text "Ruby on Rails Tutorial Sample App | Home" but there were no matches. Also found "", which matched the selector but not all filters. 
    # ./spec/requests/static_pages_spec.rb:36:in `block (3 levels) in <top (required)>' 

    4) Static pages about page with own layout should JUST have_selector head title 
    Failure/Error: page.should have_selector('head title') 
    Capybara::ExpectationNotMet: 
     expected to find css "head title" but there were no matches 
    # ./spec/requests/static_pages_spec.rb:86:in `block (3 levels) in <top (required)>' 

    5) Static pages about page with own layout should have_selector head title 'About Us' 
    Failure/Error: page.should have_selector('head title', 
    Capybara::ExpectationNotMet: 
     expected to find css "head title" with text "Ruby on Rails Tutorial Sample App | About Us" but there were no matches 
    # ./spec/requests/static_pages_spec.rb:93:in `block (3 levels) in <top (required)>' 

Finished in 0.66215 seconds 
15 examples, 5 failures 

Failed examples: 

rspec ./spec/requests/static_pages_spec.rb:20 # Static pages Home page having application layout should have_selector head title 'Home' 
rspec ./spec/requests/static_pages_spec.rb:27 # Static pages Home page having application layout should have content 'Home' 
rspec ./spec/requests/static_pages_spec.rb:33 # Static pages Home page having application layout should have css title 'Home' 
rspec ./spec/requests/static_pages_spec.rb:83 # Static pages about page with own layout should JUST have_selector head title 
rspec ./spec/requests/static_pages_spec.rb:90 # Static pages about page with own layout should have_selector head title 'About Us' 
Done. 

> Neues Fenster in aktueller Browsersitzung erstellt. 
Neues Fenster in aktueller Browsersitzung erstellt. 
+0

你保存了你的文件嗎? – Dougui 2012-07-30 17:33:16

+0

是的,當然,我也使用了save_and_open_page,這樣我就可以看到更改 – farukg 2012-07-30 17:37:57

+2

似乎你無法查詢水豚2.0中的元素,關於在這裏修復它的討論https://github.com/jnicklas/capybara/issues/844 – <span class="text-secondary"> <small> <span>2012-11-28 16:26:25</span> </small> </span> </p> </div> </div> </div> </div> </div> </article> </div> <div class="answer-title"> <span class="text-logo margin-top-sm">A</span> <h2 class="title h4">回答</h2> </div> <div class="item-description text-md markdown-body margin-bottom-40 voidso"> <article class="board-top-1 padding-top-10"> <div class="post-col vote-info"> <span class="count">6<i class="fa fa-thumbs-up"></i></span> <i class="fa fa-check fa-2x"></i> </div> <div class="post-offset"> <div class="answer fmt"> <p>我只是檢查在Github上項目,它似乎是你正在使用水豚的邊緣版本:</p> <p>的Gemfile</p> <pre><code class="prettyprint-override">gem 'capybara', :git => 'git://github.com/jnicklas/capybara.git' </code></pre> <p>Gemfile.lock的</p> <pre><code class="prettyprint-override">GIT remote: git://github.com/jnicklas/capybara.git revision: e561d249555195cdd0e9251246fc75aae876f833 specs: capybara (2.0.0.beta2) mime-types (>= 1.16) nokogiri (>= 1.3.3) rack (>= 1.0.0) rack-test (>= 0.5.4) selenium-webdriver (~> 2.0) xpath (~> 1.0.0.beta1) </code></pre> <p>如果不出意外,我敢說這是你的問題的原因。(當然,我的<a href="https://github.com/prusswan/sample_app" rel="nofollow">reference project</a>是在更新水豚使用邊緣版本後被全部打破)</p> <p>因此,除非您熱衷於幫助進行<a href="https://groups.google.com/forum/#!msg/ruby-capybara/0tRg-sxs7fs/1PNyRm9wSe0J" rel="nofollow">Capybara 2</a>的beta測試,否則您應該堅持使用1.1.2版本列表<a href="http://ruby.railstutorial.org/chapters/static-pages#code-gemfile_rspec" rel="nofollow">here</a>。</p> </div> <div class="post-info"> <div class="post-meta row"> <p class="text-secondary col-lg-6"> <span class="source"> <a rel="noopener" target="_blank" href="https://stackoverflow.com/q/11751968">來源</a> </span> </p> <p class="text-secondary col-lg-6"> <span class="float-right date"> <span>2012-08-01 02:57:45</span> <a rel="noopener" target="_blank" href="https://stackoverflow.com/users/663028/">prusswan</a></span> </p> <p class="col-12"></p> <p class="col-12"></p></div> </div> <!-- comments --> <div class="comments"> <div itemprop="comment" class="post-comment"> <div class="row"> <div class="col-lg-1"><span class="text-secondary">+0</span></div> <div class="col-lg-11"> <p class="commenttext">謝謝,它現在可以運行:) – <span class="text-secondary"> <small> <a rel="noopener" target="_blank" href="https://stackoverflow.com/users/1453671/">farukg</a></span> <span>2012-08-01 06:25:28</span> </small> </span> </p> </div> </div> </div> </div> </div> </article> <div> <script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script> <ins class="adsbygoogle" style="display:block" data-ad-client="ca-pub-6208739752673518" data-ad-slot="4319274062" data-ad-format="auto" data-full-width-responsive="true"></ins> <script> (adsbygoogle = window.adsbygoogle || []).push({}); </script> </div> <article class="board-top-1 padding-top-10"> <div class="post-col vote-info"> <span class="count">0<i class="fa fa-thumbs-up"></i></span> </div> <div class="post-offset"> <div class="answer fmt"> <p>你能與這個測試:</p> <pre><code class="prettyprint-override">page.should have_selector('head title', :text => "Ruby on Rails Tutorial Sample App | Home") </code></pre> </div> <div class="post-info"> <div class="post-meta row"> <p class="text-secondary col-lg-6"> <span class="source"> <a rel="noopener" target="_blank" href="https://stackoverflow.com/q/11726713">來源</a> </span> </p> <p class="text-secondary col-lg-6"> <span class="float-right date"> <span>2012-07-30 17:42:27</span> <a rel="noopener" target="_blank" href="https://stackoverflow.com/users/1118038/">Dougui</a></span> </p> <p class="col-12"></p> <p class="col-12"></p></div> </div> <!-- comments --> <div class="comments"> <div itemprop="comment" class="post-comment"> <div class="row"> <div class="col-lg-1"><span class="text-secondary">+0</span></div> <div class="col-lg-11"> <p class="commenttext">不幸的是,那是行不通的... – <span class="text-secondary"> <small> <a rel="noopener" target="_blank" href="https://stackoverflow.com/users/1453671/">farukg</a></span> <span>2012-07-30 17:54:02</span> </small> </span> </p> </div> </div> </div> <div itemprop="comment" class="post-comment"> <div class="row"> <div class="col-lg-1"><span class="text-secondary">+0</span></div> <div class="col-lg-11"> <p class="commenttext">只是爲了測試你可以試試這個:page.should have_content(「Ruby on Rails教程示例應用程序|首頁」) – <span class="text-secondary"> <small> <a rel="noopener" target="_blank" href="https://stackoverflow.com/users/1118038/">Dougui</a></span> <span>2012-07-30 18:00:12</span> </small> </span> </p> </div> </div> </div> <div itemprop="comment" class="post-comment"> <div class="row"> <div class="col-lg-1"><span class="text-secondary">+0</span></div> <div class="col-lg-11"> <p class="commenttext">我嘗試過,但仍然無法正常工作。再次,如果我把身體標籤內的文字,它的作品。 – <span class="text-secondary"> <small> <a rel="noopener" target="_blank" href="https://stackoverflow.com/users/1453671/">farukg</a></span> <span>2012-07-30 18:10:22</span> </small> </span> </p> </div> </div> </div> </div> </div> </article> <article class="board-top-1 padding-top-10"> <div class="post-col vote-info"> <span class="count">0<i class="fa fa-thumbs-up"></i></span> </div> <div class="post-offset"> <div class="answer fmt"> <p>眼下做到這一點,最簡單的方法是從網頁HTML訪問Title元素,這將返回標題:</p> <pre><code class="prettyprint-override">page.html.match(/<title>(.*)<\/title>/)[1].to_s </code></pre> <p>並不理想,因爲它是一種使用上的HTML正則表達式(! )但會起作用。也許最好寫一個輔助函數</p> <pre><code class="prettyprint-override"># put in spec/support/utilities.rb def page_title(page) page.html.match(/<title>(.*)<\/title>/)[1].to_s end </code></pre> <p>那麼你的測試可以把它關閉了這麼長時間後,也可以寫成</p> <pre><code class="prettyprint-override">page_title(page).should eq("Ruby on Rails Tutorial Sample App | Home" } </code></pre> </div> <div class="post-info"> <div class="post-meta row"> <p class="text-secondary col-lg-6"> <span class="source"> <a rel="noopener" target="_blank" href="https://stackoverflow.com/q/13625073">來源</a> </span> </p> <p class="text-secondary col-lg-6"> <span class="float-right date"> <span>2012-11-29 11:44:42</span> </p> <p class="col-12"></p> <p class="col-12"></p></div> </div> </div> </article> <article class="board-top-1 padding-top-10"> <div class="post-col vote-info"> <span class="count">0<i class="fa fa-thumbs-up"></i></span> </div> <div class="post-offset"> <div class="answer fmt"> <p>這是新的我。 感謝stackoverflow,我能夠在描述之後立即在spec文件頂部的render_views中修復一些測試。 從</p> <pre><code class="prettyprint-override">describe "GET 'home'" do it "returns http success" do get 'home' response.should be_success end </code></pre> <p>,但沒有使用的佈局我得到通過的測試還沒有我得到這個錯誤:文本 水豚:: ExpectationNotMet: 希望找到CSS「標題」文本「主頁| Ruby on Rails的教程示例應用程序「但沒有匹配。 但除此之後,在寶石文件 中使用寶石'水豚','1.1.2'後,我的測試通過。但我也在路線中使用get'home'作爲動作匹配。 我希望這可以幫助。</p> </div> <div class="post-info"> <div class="post-meta row"> <p class="text-secondary col-lg-6"> <span class="source"> <a rel="noopener" target="_blank" href="https://stackoverflow.com/q/14788545">來源</a> </span> </p> <p class="text-secondary col-lg-6"> <span class="float-right date"> <span>2013-02-09 13:13:27</span> </p> <p class="col-12"></p> <p class="col-12"></p></div> </div> </div> </article> <div> <script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script> <ins class="adsbygoogle" style="display:block" data-ad-client="ca-pub-6208739752673518" data-ad-slot="4319274062" data-ad-format="auto" data-full-width-responsive="true"></ins> <script> (adsbygoogle = window.adsbygoogle || []).push({}); </script> </div> <article class="board-top-1 padding-top-10"> <div class="post-col vote-info"> <span class="count">5<i class="fa fa-thumbs-up"></i></span> </div> <div class="post-offset"> <div class="answer fmt"> <p>如果您使用水豚2,你可以使用<code class="prettyprint-override">have_title</code>方法是這樣的:</p> <p><code class="prettyprint-override">page.should have_title("Ruby on Rails Tutorial Sample App | Home")</code></p> </div> <div class="post-info"> <div class="post-meta row"> <p class="text-secondary col-lg-6"> <span class="source"> <a rel="noopener" target="_blank" href="https://stackoverflow.com/q/17191861">來源</a> </span> </p> <p class="text-secondary col-lg-6"> <span class="float-right date"> <span>2013-06-19 13:00:17</span> </p> <p class="col-12"></p> <p class="col-12"></p></div> </div> <!-- comments --> <div class="comments"> <div itemprop="comment" class="post-comment"> <div class="row"> <div class="col-lg-1"><span class="text-secondary">+2</span></div> <div class="col-lg-11"> <p class="commenttext">謝謝你,這個解決方案對我很有用 – <span class="text-secondary"> <small> <span>2013-11-24 05:49:30</span> </small> </span> </p> </div> </div> </div> </div> </div> </article> <article class="board-top-1 padding-top-10"> <div class="post-col vote-info"> <span class="count">7<i class="fa fa-thumbs-up"></i></span> </div> <div class="post-offset"> <div class="answer fmt"> <p>這只是因爲<code class="prettyprint-override"><title></code>在<code class="prettyprint-override"><head></code>所以它不會出現。</p> <p>利用這一點,解決我的問題:</p> <pre><code class="prettyprint-override">page.should have_selector 'title', :visible => false </code></pre> <p>提示:您可以將同樣的檢查其他<code class="prettyprint-override"><head></code>元素,如<code class="prettyprint-override"><meta></code>,例如,要確定你(和你會留下來)谷歌友好。</p> </div> <div class="post-info"> <div class="post-meta row"> <p class="text-secondary col-lg-6"> <span class="source"> <a rel="noopener" target="_blank" href="https://stackoverflow.com/q/17627525">來源</a> </span> </p> <p class="text-secondary col-lg-6"> <span class="float-right date"> <span>2013-07-13 06:12:12</span> <a rel="noopener" target="_blank" href="https://stackoverflow.com/users/1201298/">htaidirt</a></span> </p> <p class="col-12"></p> <p class="col-12"></p></div> </div> <!-- comments --> <div class="comments"> <div itemprop="comment" class="post-comment"> <div class="row"> <div class="col-lg-1"><span class="text-secondary">+2</span></div> <div class="col-lg-11"> <p class="commenttext">非常感謝你解釋這個問題。以下是使用CSS選擇器的同一事物的示例用法: page.should have_css('head img [src =「http://d.adroll.com/cm/f/out」]',visible:假) – <span class="text-secondary"> <small> <a rel="noopener" target="_blank" href="https://stackoverflow.com/users/267348/">olleolleolle</a></span> <span>2013-10-22 09:11:39</span> </small> </span> </p> </div> </div> </div> <div itemprop="comment" class="post-comment"> <div class="row"> <div class="col-lg-1"><span class="text-secondary">+0</span></div> <div class="col-lg-11"> <p class="commenttext">這解決了我的問題,謝謝! – <span class="text-secondary"> <small> <span>2014-10-04 18:55:10</span> </small> </span> </p> </div> </div> </div> </div> </div> </article> </div> <div class="clearfix"> </div> <div class="relative-box"> <div class="relative">相關問題</div> <ul class="relative_list"> <li> 1. <a href="http://hk.voidcc.com/question/p-ablmzkyi-cp.html" target="_blank" title="錯誤,而使用水豚當我嘗試使用水豚測試頁面來測試頁面"> 錯誤,而使用水豚當我嘗試使用水豚測試頁面來測試頁面 </a> </li> <li> 2. <a href="http://hk.voidcc.com/question/p-dxvdxnxf-bt.html" target="_blank" title="水豚FILL_IN不起作用"> 水豚FILL_IN不起作用 </a> </li> <li> 3. <a href="http://hk.voidcc.com/question/p-ydvoyxbz-ua.html" target="_blank" title="水豚規範使用attach_file蜻蜓"> 水豚規範使用attach_file蜻蜓 </a> </li> <li> 4. <a href="http://hk.voidcc.com/question/p-dpufpupe-nz.html" target="_blank" title="RailsTutorial第3章 - 我只是不能讓我的測試,以通過"> RailsTutorial第3章 - 我只是不能讓我的測試,以通過 </a> </li> <li> 5. <a href="http://hk.voidcc.com/question/p-tzunikcu-ed.html" target="_blank" title="水豚2.0.2訪問不起作用"> 水豚2.0.2訪問不起作用 </a> </li> <li> 6. <a href="http://hk.voidcc.com/question/p-qloqexxw-ga.html" target="_blank" title="水豚:我如何測試一張桌子有3排使用水豚?"> 水豚:我如何測試一張桌子有3排使用水豚? </a> </li> <li> 7. <a href="http://hk.voidcc.com/question/p-arkqcwot-kk.html" target="_blank" title="Rails 3.2使用launchy調試rspec,水豚,save_and_open_page不起作用"> Rails 3.2使用launchy調試rspec,水豚,save_and_open_page不起作用 </a> </li> <li> 8. <a href="http://hk.voidcc.com/question/p-esyakcpz-oe.html" target="_blank" title="你如何使用Minitest,水豚,硒進行javascript測試?"> 你如何使用Minitest,水豚,硒進行javascript測試? </a> </li> <li> 9. <a href="http://hk.voidcc.com/question/p-qbkhklsj-wa.html" target="_blank" title="Rails 3.1測試AJAX水豚和規格"> Rails 3.1測試AJAX水豚和規格 </a> </li> <li> 10. <a href="http://hk.voidcc.com/question/p-wmljezco-nv.html" target="_blank" title="have_selector測試頁面標題不工作"> have_selector測試頁面標題不工作 </a> </li> <li> 11. <a href="http://hk.voidcc.com/question/p-wungjjhf-ob.html" target="_blank" title="如何使用水豚測試"> 如何使用水豚測試 </a> </li> <li> 12. <a href="http://hk.voidcc.com/question/p-oopmbjos-vu.html" target="_blank" title="使用黃瓜/水豚測試ActiveMerchant"> 使用黃瓜/水豚測試ActiveMerchant </a> </li> <li> 13. <a href="http://hk.voidcc.com/question/p-uqwayems-nq.html" target="_blank" title="使用水豚/ Rspec測試登錄"> 使用水豚/ Rspec測試登錄 </a> </li> <li> 14. <a href="http://hk.voidcc.com/question/p-wrflzwtp-to.html" target="_blank" title="測試順序使用水豚"> 測試順序使用水豚 </a> </li> <li> 15. <a href="http://hk.voidcc.com/question/p-hjtqyvbo-rh.html" target="_blank" title="使用cookies.signed [:USER_ID]在水豚測試"> 使用cookies.signed [:USER_ID]在水豚測試 </a> </li> <li> 16. <a href="http://hk.voidcc.com/question/p-ybiccbth-ge.html" target="_blank" title="水豚和Rspec:在()和have_selector()中一起使用的正確方法?"> 水豚和Rspec:在()和have_selector()中一起使用的正確方法? </a> </li> <li> 17. <a href="http://hk.voidcc.com/question/p-efmtcgqz-vw.html" target="_blank" title="不使用rspec,但使用水豚的Rails驗收測試"> 不使用rspec,但使用水豚的Rails驗收測試 </a> </li> <li> 18. <a href="http://hk.voidcc.com/question/p-suydrwfr-vz.html" target="_blank" title="水豚查詢不起作用"> 水豚查詢不起作用 </a> </li> <li> 19. <a href="http://hk.voidcc.com/question/p-mpdyykup-vx.html" target="_blank" title="水豚click_link有時不起作用"> 水豚click_link有時不起作用 </a> </li> <li> 20. <a href="http://hk.voidcc.com/question/p-rlayjnwi-qa.html" target="_blank" title="黃瓜/水豚測試不再在Rails 3項目中運行"> 黃瓜/水豚測試不再在Rails 3項目中運行 </a> </li> <li> 21. <a href="http://hk.voidcc.com/question/p-fxgftlma-cr.html" target="_blank" title="使用Rspec和水豚在Rails 3中測試會話"> 使用Rspec和水豚在Rails 3中測試會話 </a> </li> <li> 22. <a href="http://hk.voidcc.com/question/p-ttmffzow-gt.html" target="_blank" title="ng-bind <title>不起作用"> ng-bind <title>不起作用 </a> </li> <li> 23. <a href="http://hk.voidcc.com/question/p-okcskglo-mq.html" target="_blank" title="RailsTutorial第6章,耙中止"> RailsTutorial第6章,耙中止 </a> </li> <li> 24. <a href="http://hk.voidcc.com/question/p-auxlynkf-dc.html" target="_blank" title="用黃瓜和水豚進行測試排序"> 用黃瓜和水豚進行測試排序 </a> </li> <li> 25. <a href="http://hk.voidcc.com/question/p-ayrmqzho-eq.html" target="_blank" title="RailsTutorial 3.2第9章 - 「before {valid_signin(user)}」導致RSpec測試失敗"> RailsTutorial 3.2第9章 - 「before {valid_signin(user)}」導致RSpec測試失敗 </a> </li> <li> 26. <a href="http://hk.voidcc.com/question/p-uzpdgped-kx.html" target="_blank" title="水豚rspec matcher相當於response.should have_selector「form」,:action => some_path"> 水豚rspec matcher相當於response.should have_selector「form」,:action => some_path </a> </li> <li> 27. <a href="http://hk.voidcc.com/question/p-mpdsocak-nc.html" target="_blank" title="不一致Rspec的/水豚測試"> 不一致Rspec的/水豚測試 </a> </li> <li> 28. <a href="http://hk.voidcc.com/question/p-tesegjnq-mh.html" target="_blank" title="水豚登錄測試"> 水豚登錄測試 </a> </li> <li> 29. <a href="http://hk.voidcc.com/question/p-vldlqbmi-dt.html" target="_blank" title="水豚產生測試/測試代替/規格"> 水豚產生測試/測試代替/規格 </a> </li> <li> 30. <a href="http://hk.voidcc.com/question/p-alsahcgw-vt.html" target="_blank" title="並行運行Selenium測試與水豚"> 並行運行Selenium測試與水豚 </a> </li> </ul> </div> <div> <script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script> <ins class="adsbygoogle" style="display:block" data-ad-format="autorelaxed" data-ad-client="ca-pub-6208739752673518" data-ad-slot="3534119089"></ins> <script> (adsbygoogle = window.adsbygoogle || []).push({}); </script> </div> <div class="padding-top-10"></div> </div> </div> <script type="text/javascript" src="http://img2.voidcc.com/voidso/script/side.js?t=1652515421930"></script> <script type="text/javascript" src="http://img2.voidcc.com/voidso/plugin/highlight/highlight.pack.js"></script> <link href="http://img2.voidcc.com/voidso/plugin/highlight/styles/docco.css" media="screen" rel="stylesheet" type="text/css" /> <script type="text/javascript"> $('pre').each(function(i, e) { hljs.highlightBlock(e, "<span class='indent'> </span>", false) }); </script> <div class="col-lg-3 col-md-4 col-sm-5"> <div id="rightTop"> <div class="row"> <script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script> <!-- VOIDCC问答侧边栏广告 --> <ins class="adsbygoogle" style="display:block" data-ad-client="ca-pub-6208739752673518" data-ad-slot="3862022848" data-ad-format="auto" data-full-width-responsive="true"></ins> <script> (adsbygoogle = window.adsbygoogle || []).push({}); </script> </div> <div class="row sidebar panel panel-default"> <div class="panel-heading font-bold"> 最新問題 </div> <div class="m-b-sm m-t-sm clearfix"> <ul class="side_article_list"> <li class="side_article_list_item"> 1. <a href="http://hk.voidcc.com/question/p-ptiivofl-dh.html" target="_blank" title="如何從字符串化對象"> 如何從字符串化對象 </a> </li> <li class="side_article_list_item"> 2. <a href="http://hk.voidcc.com/question/p-njauodth-kr.html" target="_blank" title="的MySQL +獅身人面像只有一個索引工作,而有的則沒有"> 的MySQL +獅身人面像只有一個索引工作,而有的則沒有 </a> </li> <li class="side_article_list_item"> 3. <a href="http://hk.voidcc.com/question/p-hzhpqkgp-eb.html" target="_blank" title="git克隆後直接修改的文件"> git克隆後直接修改的文件 </a> </li> <li class="side_article_list_item"> 4. <a href="http://hk.voidcc.com/question/p-fpzgddhd-to.html" target="_blank" title="Spyder 3.1.4 - 操作系統升級後無法配置Spyder"> Spyder 3.1.4 - 操作系統升級後無法配置Spyder </a> </li> <li class="side_article_list_item"> 5. <a href="http://hk.voidcc.com/question/p-rvewjkbj-tq.html" target="_blank" title="能從應用程序的BeginRequest在第一次請求使用RewritePath"> 能從應用程序的BeginRequest在第一次請求使用RewritePath </a> </li> <li class="side_article_list_item"> 6. <a href="http://hk.voidcc.com/question/p-dpxxcwlk-tp.html" target="_blank" title="如何使用帶空格的HTML Git Diff?"> 如何使用帶空格的HTML Git Diff? </a> </li> <li class="side_article_list_item"> 7. <a href="http://hk.voidcc.com/question/p-oqnvjxka-tm.html" target="_blank" title="如何使用setActiveItem進行卡片佈局以基於radiobuttton選擇顯示面板?"> 如何使用setActiveItem進行卡片佈局以基於radiobuttton選擇顯示面板? </a> </li> <li class="side_article_list_item"> 8. <a href="http://hk.voidcc.com/question/p-riangmfl-tk.html" target="_blank" title="爲什麼如果(a!= 65)沒有執行?"> 爲什麼如果(a!= 65)沒有執行? </a> </li> <li class="side_article_list_item"> 9. <a href="http://hk.voidcc.com/question/p-epclbgwt-hb.html" target="_blank" title="什麼時候應根據其尺寸繪製自定義佈局"> 什麼時候應根據其尺寸繪製自定義佈局 </a> </li> <li class="side_article_list_item"> 10. <a href="http://hk.voidcc.com/question/p-sudmsoxj-hw.html" target="_blank" title="組合框減慢彈性"> 組合框減慢彈性 </a> </li> </ul> </div> </div> </div> <p class="article-nav-bar"></p> <div class="row sidebar article-nav"> <div class="row box_white visible-sm visible-md visible-lg margin-zero"> <div class="top"> <h3 class="title"><i class="glyphicon glyphicon-th-list"></i> 相關問題</h3> </div> <div class="article-relative-content"> <ul class="side_article_list"> <li class="side_article_list_item"> 1. <a href="http://hk.voidcc.com/question/p-ablmzkyi-cp.html" target="_blank" title="錯誤,而使用水豚當我嘗試使用水豚測試頁面來測試頁面"> 錯誤,而使用水豚當我嘗試使用水豚測試頁面來測試頁面 </a> </li> <li class="side_article_list_item"> 2. <a href="http://hk.voidcc.com/question/p-dxvdxnxf-bt.html" target="_blank" title="水豚FILL_IN不起作用"> 水豚FILL_IN不起作用 </a> </li> <li class="side_article_list_item"> 3. <a href="http://hk.voidcc.com/question/p-ydvoyxbz-ua.html" target="_blank" title="水豚規範使用attach_file蜻蜓"> 水豚規範使用attach_file蜻蜓 </a> </li> <li class="side_article_list_item"> 4. <a href="http://hk.voidcc.com/question/p-dpufpupe-nz.html" target="_blank" title="RailsTutorial第3章 - 我只是不能讓我的測試,以通過"> RailsTutorial第3章 - 我只是不能讓我的測試,以通過 </a> </li> <li class="side_article_list_item"> 5. <a href="http://hk.voidcc.com/question/p-tzunikcu-ed.html" target="_blank" title="水豚2.0.2訪問不起作用"> 水豚2.0.2訪問不起作用 </a> </li> <li class="side_article_list_item"> 6. <a href="http://hk.voidcc.com/question/p-qloqexxw-ga.html" target="_blank" title="水豚:我如何測試一張桌子有3排使用水豚?"> 水豚:我如何測試一張桌子有3排使用水豚? </a> </li> <li class="side_article_list_item"> 7. <a href="http://hk.voidcc.com/question/p-arkqcwot-kk.html" target="_blank" title="Rails 3.2使用launchy調試rspec,水豚,save_and_open_page不起作用"> Rails 3.2使用launchy調試rspec,水豚,save_and_open_page不起作用 </a> </li> <li class="side_article_list_item"> 8. <a href="http://hk.voidcc.com/question/p-esyakcpz-oe.html" target="_blank" title="你如何使用Minitest,水豚,硒進行javascript測試?"> 你如何使用Minitest,水豚,硒進行javascript測試? </a> </li> <li class="side_article_list_item"> 9. <a href="http://hk.voidcc.com/question/p-qbkhklsj-wa.html" target="_blank" title="Rails 3.1測試AJAX水豚和規格"> Rails 3.1測試AJAX水豚和規格 </a> </li> <li class="side_article_list_item"> 10. <a href="http://hk.voidcc.com/question/p-wmljezco-nv.html" target="_blank" title="have_selector測試頁面標題不工作"> have_selector測試頁面標題不工作 </a> </li> </ul> </div> </div> </div> </div> </div> </div> </div><!-- wrap end--> <!-- footer --> <footer id="footer"> <div class="bg-simple lt"> <div class="container"> <div class="row padder-v m-t"> <div class="col-xs-8"> <ul class="list-inline"> <li><a href="http://hk.voidcc.com/contact">聯系我們</a></li> <li>© 2020 HK.VOIDCC.COM</li> <li><a rel="nofollow" href="https://beian.miit.gov.cn/" target="_blank">沪ICP备13005482号-13</a></li> <li><script type="text/javascript" src="https://s9.cnzz.com/z_stat.php?id=1280098168&web_id=1280098168"></script></li> <li><a href="http://cn.voidcc.com/" target="_blank" title="程序问答园区">简体中文</a></li> <li><a href="http://hk.voidcc.com/" target="_blank" title="程序問答園區">繁體中文</a></li> <li><a href="http://ru.voidcc.com/" target="_blank" title="поле вопросов и ответов">Русский</a></li> <li><a href="http://de.voidcc.com/" target="_blank" title="Frage - und - antwort - Park">Deutsch</a></li> <li><a href="http://es.voidcc.com/" target="_blank" title="Preguntas y respuestas">Español</a></li> <li><a href="http://hi.voidcc.com/" target="_blank" title="कार्यक्रम प्रश्न और उत्तर पार्क">हिन्दी</a></li> <li><a href="http://it.voidcc.com/" target="_blank" title="IL Programma di chiedere Park">Italiano</a></li> <li><a href="http://ja.voidcc.com/" target="_blank" title="プログラム問答園区">日本語</a></li> <li><a href="http://ko.voidcc.com/" target="_blank" title="프로그램 문답 단지">한국어</a></li> <li><a href="http://pl.voidcc.com/" target="_blank" title="program o park">Polski</a></li> <li><a href="http://tr.voidcc.com/" target="_blank" title="Program soru ve cevap parkı">Türkçe</a></li> <li><a href="http://vi.voidcc.com/" target="_blank" title="Đáp ứng viên">Tiếng Việt</a></li> <li><a href="http://fr.voidcc.com/" target="_blank" title="Programme interrogation Park">Française</a></li> </ul> </div> </div> </div> </div> </div> </footer> <!-- / footer --> <script async src="https://www.googletagmanager.com/gtag/js?id=UA-77509369-5"></script> <script> window.dataLayer = window.dataLayer || []; function gtag() { dataLayer.push(arguments); } gtag('js', new Date()); gtag('config', 'UA-77509369-5'); </script> <script> var _hmt = _hmt || []; (function () { var hm = document.createElement("script"); hm.src = "https://hm.baidu.com/hm.js?67d4731349f0b00136755b80364ce381"; var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(hm, s); })(); </script> </body> </html>