• Share
  • Email
  • Embed
  • Like
  • Save
  • Private Content
Selenium Basics Tutorial
 

Selenium Basics Tutorial

on

  • 30,214 views

Selenium is a software testing framework for automating tests of Web applications. Join Frank Cohen for a Workshop to learn the basics of Selenium. A screencast for this presentation is on the ...

Selenium is a software testing framework for automating tests of Web applications. Join Frank Cohen for a Workshop to learn the basics of Selenium. A screencast for this presentation is on the PushToTest.com Web site.

Statistics

Views

Total Views
30,214
Views on SlideShare
30,082
Embed Views
132

Actions

Likes
5
Downloads
544
Comments
0

3 Embeds 132

http://50.112.202.140 127
http://www.scoop.it 3
http://www.slashdocs.com 2

Accessibility

Categories

Upload Details

Uploaded via as Adobe PDF

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

    Selenium Basics Tutorial Selenium Basics Tutorial Presentation Transcript

    • Selenium Basics WorkshopFrank Cohen, +01 (408) 871-0122, fcohen@pushtotest.com April 20, 2011
    • Open Source Test AutomationAbout PushToTest‣ Our Mission: Test, To Make A More Reliable World‣ Make It Easier To Move From Manual To Automated Testing‣ Support Advanced Testing, including Agile, Load, Integration‣ Open Source Testing (OST) For Everyone2
    • Open Source Test AutomationToday‣ How To Use Selenium in Rich Internet Application (RIA, using Ajax) Environments‣ How To Data Enable Selenium Tests Using TestMaker‣ Testing in Flash/Flex Environments Using AMF Protocols‣ Integrating TestMaker Tests Into Your Continuous Integration Environment‣ How To Analyze Test Results Into Actionable Knowledge3
    • Open Source Test AutomationManual Testing Process Results 4 1 Recommend Changes Explore Manual Testing Tes 3 t 2 Plan4 Run The Test Steps Create Test Plans
    • Open Source Test AutomationSide Effects‣ Exhaustion‣ Fatigue‣ Blurry Vision‣ Night Sweats‣ Insanity‣ Hair Loss‣ Acne‣ Divorce5
    • Open Source Test AutomationOST Architecture Application Under Test PTTMonitor Web, RIA, BPM, SOA CPU, Net, MemoryFunctional Test Injector Test Authoring Test Bundles ScriptRunners Data Production Libraries SoapUI (Pro) MySQL, HtmlUnit Sahi, Selenium, SoapUI, Java csv files, rdbms queries Sahi (Pro) JUnit Class FrameworkLoad Test Eclipse Java IDE Fitness Test Operation Console Languages: Java, Python Wiki CollaborationProduction Designer Grid and Cloud Repository Results Analysis Record/Playback Test Deployment MySQL RDBMS Business Intelligence Tool Monitor Continuous Test Repository Bug Tracker Monitoring Integration Management6
    • Open Source Test AutomationSelenium Browser Automation‣ Selenium Core‣ Selenium RC‣ Selenium Grid‣ Selenium IDE‣ Selenium Domain Specific Language (DSL)7
    • Open Source Test AutomationSelenium Architecture Selenium 1 Selenium 2 (WebDriver) Browser Browser iFrame Browser API Selenium Client Selenium RC Selenium Client Selenium Server Browserbot Application Under Test Application (AUT) Under Test (AUT) DOM DOM Javascript Javascript8
    • Open Source Test AutomationSelenium Language Basics‣ Page Commands‣ Element Commands‣ Validation Commands‣ Assertion Commands‣ Storage Commands9
    • Open Source Test AutomationSelenium Locators‣ Identifiers ‣ loginForm ‣ id=loginForm ‣ name=loginForm‣ XPath (1.0 from W3C, no support of 2.0 and XQuery)‣ Link Locator ‣ link=Continue <a href=”myurl”>Continue</a>‣ DOM APIs ‣ dom=document.getElementById(loginForm)‣ CSS Selectors10 ‣ css=input.required[type="text"]
    • Open Source Test AutomationEvent Handling and Ajax‣ Selenium Tests Are Event Oriented ‣ Not Timing Oriented‣ Ajax Web Objects ‣ Complicated Structures ‣ Dynamic Values ‣ Asynchronous Events ‣ No Standards‣ Ajax Example11
    • Open Source Test AutomationWe Recommend Do Don’t Components Pause Record -> Script Use Static Values Dynamic Locators Storage Values Work With Devs Test and Trash Events Expect The Same12
    • Open Source Test AutomationFlex, Flash Testing‣ Extend the Selenium RC clients for adding Flash communication ‣ http://code.google.com/p/flex-ui-selenium/ ‣ http://code.google.com/p/flash-selenium/ public void sumForValidNumbers() { flexUITester.type("2").at("arg1"); flexUITester.type("3").at("arg2"); flexUITester.click("submit"); assertEquals("5", flexUITester.readFrom("result")); }‣ Flex Automation API - Flexmonkium13
    • Open Source Test AutomationTestMaker and Selenium Application Under Test TestNode Selenium RC SeleniumHtmlUnit Selenese Test TestMaker Console14
    • Open Source Test AutomationTestMaker Object Designer‣ Point-and-Click Functional Test Record/Playback‣ Record Tests In IE, Chrome, Firefox, Safari, Opera‣ Automatic Ajax Synchronization‣ Drag-and-Drop Data Driven Testing‣ Creates Selenium, Sahi, and Flex Tests15
    • Open Source Test AutomationResources‣ http://www.pushtotest.com/‣ http://seleniumhq.org‣ http://selenium.pushtotest.com‣ http://refcardz.dzone.com/refcardz/getting-started-selenium‣ http://refcardz.dzone.com/refcardz/getting-started-selenium-20‣ http://www.pushtotest.com/products-comparison‣ http://www.pushtotest.com/selenium-conference-2011-analysis‣ http://www.slideshare.net/frankcohen/selenium-xpath-performance- problems-in-ie16
    • Open Source Test AutomationWhere To Go From Here‣ Watch A Screencast and Tutorial ‣ http://www.pushtotest.com/screencastcentral‣ The Selenium Tutorial for Beginners ‣ http://www.pushtotest.com/selenium-webinar-series‣ Attend An Open Source Test Workshop ‣ http://workshop.pushtotest.com‣ Ask For A Proposal on Licenses, Training, Support, Consulting ‣ Call +01 408 871 0122, sales@pushtotest.com17