Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Selenium IDE

Avatar for Sang Bui Sang Bui
April 24, 2016

Selenium IDE

Avatar for Sang Bui

Sang Bui

April 24, 2016
Tweet

More Decks by Sang Bui

Other Decks in Technology

Transcript

  1. Manual: 14s to enter a form with 8 field. Automation:

    02s to enter the same form. How about if I want to fill up the form 50 times? Manual: 14s x 50 times = 700s Automation: 02s x 50 times = 100s 1:7 MY PERSONAL!
  2. WHY DO WE CARE ABOUT SELENIUM? - Selenium is a

    free (open source). - Automated testing for web applications. - Across browsers and platforms. - Support multiple languages: Java, PHP, Python, Ruby, C#...
  3. • Selenium IDE: Firefox add-on that you can only use

    in creating simple test cases and test suites. • Selenium Remote Control (Selenium 1): The first Selenium tool that allowed users to use programming languages in creating complex tests. • WebDriver: Allows your test scripts to communicate directly to the browser, controlling it from the OS level. • Selenium Grid: Running multiple tests across different browsers, operating systems, and machines in parallel.
  4. OVERVIEW • IDE stands for “Integrated Development Environment”. • It

    is a Firefox extension. • Allows you to record, edit, and debug tests. • Selenium IDE should only be used for a simple test cases.
  5. 1. Menu bar 2. Test Case List 3. Test Case

    Panel (Steps & Commands) 4. Log/Reference
  6. ADVANTAGES • Easy to install and use. • No programming

    required! (but some HTML is needed). • Can export and reuse in Selenium WebDriver. • Support test results and reports. • Support for more extensions. • Can debug and set breakpoints. • Good way to learning Selenium script syntax.
  7. DISADVANTAGES • Available only in Firefox. • Just use for

    a simple test case. • It does not directly support loops and conditions. • Slower than Selenium RC and WebDriver.
  8. HANDS-ON LAP - Install Selenium IDE, Firebug, Firepath. - Creating

    the First Selenium IDE script. - Use Locators in Selenium IDE. - Data-Driven with SelBlocks. - Customize, save and export a script. - Hands-on: Create multi-user accounts by using XML data.
  9. DATA.XML <testdata> <vars User="user-01" Email="[email protected]" Firstname="User" Lastname="01" Website="ab.com" Label="Editor"/> <vars

    User="user-02" Email="[email protected]" Firstname="User" Lastname="02" Website="ab.com" Label="Editor"/> <vars User="user-03" Email="[email protected]" Firstname="User" Lastname="03" Website="ab.com" Label="Administrator"/> </testdata>