Created
October 10, 2011 05:03
-
-
Save liwh/1274665 to your computer and use it in GitHub Desktop.
intergration test
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1) Blogs GET /admin/blogs works! | |
Failure/Error: page.should_not have_content('新品上市') | |
Selenium::WebDriver::Error::InvalidSelectorError: | |
The given selector "./descendant-or-self::*[contains(normalize-space(.), '新品上市')] is either invalid or does not resultin a Webelement. The following error occurred: | |
[InvalidSelectorError] Unable to locate elements with the xpath expression ./descendant-or-self::*[contains(normalize-space(.), '新品上市')] because of the following error: | |
[Exception... "Component returned failure code: 0x80070057 (NS_ERROR_ILLEGAL_VALUE) [nsIDOMXPathEvaluator.createNSResolver]" nsresult: "0x80070057 (NS_ERROR_ILLEGAL_VALUE)" location: "JS frame :: resource://fxdriver/modules/atoms.js :: <TOP_LEVEL> :: line 2360" data: no] | |
# [remote server] file:///var/folders/l9/qg4tlk6130nb1dg_z9dpzygh0000gn/T/webdriver-profile20111010-2713-1ks2732/extensions/[email protected]/components/driver-component.js -> file:///var/folders/l9/qg4tlk6130nb1dg_z9dpzygh0000gn/T/webdriver-profile20111010-2713-1ks2732/extensions/[email protected]/components/firefoxDriver.js:466:in `unknown' | |
# [remote server] file:///var/folders/l9/qg4tlk6130nb1dg_z9dpzygh0000gn/T/webdriver-profile20111010-2713-1ks2732/extensions/[email protected]/components/driver-component.js -> file:///var/folders/l9/qg4tlk6130nb1dg_z9dpzygh0000gn/T/webdriver-profile20111010-2713-1ks2732/extensions/[email protected]/components/firefoxDriver.js:507:in `unknown' | |
# [remote server] file:///var/folders/l9/qg4tlk6130nb1dg_z9dpzygh0000gn/T/webdriver-profile20111010-2713-1ks2732/extensions/[email protected]/components/nsCommandProcessor.js:306:in `unknown' | |
# [remote server] file:///var/folders/l9/qg4tlk6130nb1dg_z9dpzygh0000gn/T/webdriver-profile20111010-2713-1ks2732/extensions/[email protected]/components/nsCommandProcessor.js:320:in `unknown' | |
# [remote server] file:///var/folders/l9/qg4tlk6130nb1dg_z9dpzygh0000gn/T/webdriver-profile20111010-2713-1ks2732/extensions/[email protected]/components/nsCommandProcessor.js:197:in `unknown' | |
# (eval):2:in `has_no_content?' | |
# ./spec/requests/blogs_spec.rb:43:in `block (3 levels) in <top (required)>' | |
2) Orders GET /orders/id#pending should list address | |
Failure/Error: has_content?('13928452888').should be_true | |
expected false to be true | |
# ./spec/requests/orders_spec.rb:157:in `block (5 levels) in <top (required)>' | |
# ./spec/requests/orders_spec.rb:156:in `block (4 levels) in <top (required)>' | |
3) Shop::Shops GET /search should list blog article | |
Failure/Error: page.should have_content(article.title) | |
expected there to be content "如何选购iphone" in "查询\n关于我们\n首页\n商品列表\n关于我们\nYour Cart\n0\nSearch for something\nYour search for \"选购\" didn't seem to get any results. Sorry about that.\nFeatured Products\nCopyright © 测试商店 2011 | ShopQi电子商务平台提供安全保护\n首页 商品列表 关于我们" | |
# ./spec/requests/shop/shops_spec.rb:96:in `block (3 levels) in <top (required)>' | |
4) Themes GET /admin/themes upload should be upload | |
Failure/Error: page.should have_xpath('./li[1]') | |
expected xpath "./li[1]" to return something | |
# ./spec/requests/themes_spec.rb:121:in `block (6 levels) in <top (required)>' | |
# ./spec/requests/themes_spec.rb:120:in `block (5 levels) in <top (required)>' | |
# ./spec/requests/themes_spec.rb:114:in `block (4 levels) in <top (required)>' | |
Finished in 758.79 seconds | |
173 examples, 4 failures | |
Failed examples: | |
rspec ./spec/requests/blogs_spec.rb:11 # Blogs GET /admin/blogs works! | |
rspec ./spec/requests/orders_spec.rb:145 # Orders GET /orders/id#pending should list address | |
rspec ./spec/requests/shop/shops_spec.rb:90 # Shop::Shops GET /search should list blog article | |
rspec ./spec/requests/themes_spec.rb:113 # Themes GET /admin/themes upload should be upload |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment