1 / 13

SWAT: Simple Web Automation Toolkit

SWAT: Simple Web Automation Toolkit. The Simple Web Automation Toolkit (SWAT) is a library written in C# designed to provide an interface to interact with several different web browsers.

klaus
Download Presentation

SWAT: Simple Web Automation Toolkit

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. SWAT: Simple Web Automation Toolkit

  2. The Simple Web Automation Toolkit (SWAT) is a library written in C# designed to provide an interface to interact with several different web browsers. SWAT also includes components to integrate with Fitnesse allowing Q/A engineers to automate web app testing. What is SWAT?

  3. Test Goal Confirm “Manifesto for Agile Software Development” is still present Demonstrate both Firefox and IE functionality Test Plan Go to Google Search for “Agile Alliance” Go to the correct website Click on the Manifesto link Confirm page is the Manifesto by checking <H1> tag Demo 1

  4. Written in C# and takes full advantage of the .Net platform Supports both IE and FireFox Can be easily extended to support additional browsers Fitnesse plug-in allows easy development of tests in a standard wiki language Why SWAT?

  5. Tests page rendering and dynamic events such as JavaScript and Ajax Allows your testers to write page tests before the page is written SWAT Editor allows tests to be written outside of the Fitnesse environment Open source project supported by Ultimate Software Why SWAT? (Continued)

  6. Can be driven by any C# based testing tool Fitnesse NUnit MbUnit Examples for MbUnit and Fitnesse can be found at: http://ulti-swat.wiki.sourceforge.net/QuickStartGuides SWAT and Continuous Integration

  7. Clicking a link (id = lnkMyLink) |StimulateElement|id|lnkMyLink|onclick|A| Asserting a Label Exists (id=lblMyLabel) |AssertElementExists|id|lblMyLabel|LABEL| Setting a textbox (id=txbMyTB, value = “test”) |SetElementAttribute|id|txbMyTB|value|test|INPUT| Simple Interface using Fitnesse

  8. What if you need to find a checkbox with no id, but it is checked and has a class=“myClass” |AssertElementExists|Expression|checked:true;class:myclass|INPUT| Can use regular expressions Can use any attribute of an element including innerhtml Optional final parameter helps refine the search and makes tests go faster The Power of Expressions

  9. Simple test Test Goal Navigate to the conference website from Google Test Plan Go to Google Search for “Agile Alliance” Go to the correct website Confirm page has the top Agile 2007 Conference image Demo 2

  10. Allows you to run tests outside of Fitnesse Passes and fails show up on the bottom SWAT Editor

  11. Main Site http://sourceforge.net/projects/ulti-swat/ Download site http://sourceforge.net/project/showfiles.php?group_id=199701 Mailing List http://sourceforge.net/mail/?group_id=199701 Open Source Site

  12. Available at: http://ulti-swat.wiki.sourceforge.net/ Includes: User Guides Method Signatures Examples Available Documentation

  13. Additional questions can be e-mailed to ulti-swat-annoucements@lists.sourceforge.net New Features can be requested at http://sourceforge.net/tracker/?group_id=199701&atid=970557 Slides and Demos available at http://ulti-swat.wiki.sourceforge.net/Information+about+SWAT Questions???

More Related