By Matthew Robbins
Confidently enforce computerized assessments for net purposes utilizing Capybara
- Learn every thing to turn into great efficient with this hugely acclaimed try out automation library
- Using a few complicated gains, flip your self right into a Capybara ninja!
- Packed with useful examples and easy-to-follow pattern mark-up and try code
Everybody is familiar with why enforcing computerized assessments is necessary yet while constructing them may be expensive and time eating, and exams could be even be fragile and at risk of fake positives. through the use of Capybara, you could advance powerful exams fast and run them in a number of drivers making sure larger re-use; Capybara’s API additionally extends the human readable kind made favored by way of frameworks resembling Cucumber and RSpec.
This ebook takes you from the fundamentals of putting in Capybara, via its API and onto complicated issues. you'll easy methods to use Capybara’s wide API to engage together with your program, overlaying themes akin to navigation, filling in varieties, and querying your web page for anticipated content material. past this we are going to reflect on why Capybara is so compatible to checking out purposes written in frameworks corresponding to Rails and Sinatra. we are going to examine concepts for validating doubtless “untestable” elements equivalent to HTML5 or Flash by way of construction out a testable API. eventually we'll flip you right into a Capybara ninja by means of protecting complex subject matters comparable to having access to performance within the base driving force, complex motive force configuration, and replacement flavours of drivers outdoors Selenium and Rack-Test.
What you are going to research from this book
- Install and configure Capybara
- Use Capybara and Cucumber to check scenarios
- Exploit Capybara’s API for interacting with net pages
- Employ Capybara to check Rack purposes carried out utilizing Rails or Sinatra
- Apply Capybara to check “black field” elements comparable to Flash or HTML5 Canvas, Audio, and Video
- Practise Capybara outdoor Cucumber in bespoke frameworks
- Use Capybara with well known Ruby try frameworks
- Explore complicated motive force configuration
- Work with replacement drivers resembling Capybara-Webkit and Capybara-Mechanize
Start acting integration trying out with Capybara instantly. This booklet gets you up and working quick and assumes no wisdom or event of the technology.
Who this booklet is written for
This e-book is for builders and testers who've had a few publicity to Ruby yet who need to know find out how to attempt their functions utilizing Capybara and its suitable drivers, reminiscent of Selenium-Webdriver and Rack-Test. The examples are intentionally stored uncomplicated and instance HTML mark-up is usually integrated that you can replica the examples to perform and test by yourself machine.