Why use it?
If you ever developed a web application, or any website actually, you know how tedious it is to test it again and again each time you do a simple modification.
Automated testing is here to help. Along with the unit tests, you can set up functional testing. The goal is to replace your actions on a webpage or form by a script. Faster, better, less boring, you will definitely love it!
Since you’re here, you probably heard about selenium before, and more specifically of
selenium-webdriver. Praliné does not attempt to replace it. Praliné is an attempt to bring the selenium-webdriver API to the human-friendliness of
rspec. And you still have access to the webdriver itself, just in case…
So, using Praliné, you can express test cases in a near-english language. Fill forms, submit them, check the title and contents of pages. Automate your tests now, you’ll love it!
Read the Praliné doc on rubydoc.info.
Start by installing the Praliné gem from rubygems.
Now create an rspec file with your favorite editor. Have a look at the example below for directions. For more examples, have a look at the demo files in the git repository.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29
That’s MIT, meaning you can use this for commercial works. But please be kind and mention me :)