Application testing with Capybara : confidently implement automated tests for web applications using Capybara /
Annotation
Clasificación: | Libro Electrónico |
---|---|
Autor principal: | |
Formato: | Electrónico eBook |
Idioma: | Inglés |
Publicado: |
Birmingham :
Packt Publishing,
2013.
|
Colección: | Community experience distilled.
|
Temas: | |
Acceso en línea: | Texto completo |
Tabla de Contenidos:
- Cover; Copyright; Credits; About the Author; About the Reviewers; www.PacktPub.com; Table of Contents; Preface; Chapter 1:Your First Scenario with Capybara; Installing Capybara; Preparing your system; Installing gems with RubyGems; Installing gems with Bundler; Installing system libraries; Installing Capybara; Using RubyGems; Using Bundler; Installing Cucumber and Selenium; Cucumber-Rails; Your first scenario
- a YouTube search; Summary; Chapter 2:Mastering the API; Locating elements with XPath and CSS; Default selector in Capybara; A helping hand with selectors; Navigation
- Clicking on links or buttonsSubmitting forms; Checkboxes and radio buttons; Finders, scoping, and multiple matches; Multiple matches; Matching strategies; Element visibility; Scoping; Asserting and querying; Matchers and RSpec; Refining finders and matchers; Checking attribute values; Summary; Chapter 3:Testing Rails and Sinatra Applications; Understanding the Rack interface; Capybara and Rack::Test; Testing a Sinatra application; Sinatra application file
- app.rb; Form template
- form.erb; Results template
- result.erb; Testing with Rack::Test; Which driver to use and when?
- A note on Rails/RSpec and CapybaraSummary; Chapter 4:Dealing with Ajax, JavaScript, and Flash; Ajax and asynchronous JavaScript; Capybara and asynchronous JavaScript; Methods that handle asynchronous JavaScript; Finders; Matchers; Gotchas; Flash and HTML5
- black box elements; Flash; Exposing a testable API; Test pages
- behold the power!; Testing components in situ
- Summary; Chapter 5:Ninja Topics; Using Capybara outside of Cucumber; Including the modules; Using the session directly; Capybara and popular test frameworks; Cucumber; RSpec; Test::Unit; MiniTest::Spec
- Advanced interactions and accessing the driver directlyUsing the native method; Accessing driver methods using browser.manage; Advanced driver configuration; The driver ecosystem; Capybara-WebKit; Poltergeist; Capybara-Mechanize; Capybara-Celerity; Summary; Index