Scripting Web Tests: With Watir and Ruby
Scripting Web Tests: With Watir and Ruby
The process involves opening a browser, navigating to a site, entering text into a search field, clicking a search button, and then verifying if specific text, such as 'Programming Ruby', appears on the page as a way to confirm the test result .
The tutorial uses an approach involving the provision of tools that learners can keep, using open-source materials, and offering practical, hands-on experience to facilitate learning .
The document suggests referring to available documentation, asking questions, and experimenting when encountering difficulties in the labs .
The tutorial expects learners to face struggles because it does not cover all necessary information within each lab, implying a reliance on self-directed learning, problem solving, and the need to leverage available resources, highlighting that overcoming challenges is an integral part of the learning process .
Users reported that Watir significantly simplified the process of writing automated tests, converting some from skepticism to advocacy due to its ease of use and effectiveness, transforming their approach to and perception of automated testing .
The main objectives of the tutorial are to teach test automation concepts, dispel common myths, and provide hands-on experience .
Watir is used as a practical tool in the tutorial to help learners apply test automation concepts regardless of whether they use Watir or another tool, by providing a hands-on approach where learners can use their own computers .
The user feedback depicted in the source shows Watir gaining popularity due to users sharing their positive experiences and outcomes, such as quick test creation and ease of use. This feedback likely led to increased trust, further development, and enhancements based on real-world user requirements, contributing to its evolution as a preferred automated testing tool .
Ward Cunningham's testimonial highlights Watir as a compelling choice due to its efficacy in fulfilling the automated acceptance testing needs while being easy to use, as it allows users to perform tasks efficiently without previous extensive experience in Ruby or automated testing tools .
The document states that all class materials are open-source and can be shared with others, and that the Watir tool itself developed from the class is open-source . This preference is also evident in the effort to find and improve open-source tools for learners' use .