Selenium - automated browser-based testing -
Upcoming SlideShare
Loading in...5
×
 

Selenium - automated browser-based testing -

on

  • 1,078 views

A presentation for Hiruben at atWare, Inc.

A presentation for Hiruben at atWare, Inc.

Statistics

Views

Total Views
1,078
Views on SlideShare
1,078
Embed Views
0

Actions

Likes
1
Downloads
12
Comments
0

0 Embeds 0

No embeds

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 - automated browser-based testing - Selenium - automated browser-based testing - Presentation Transcript

    • Selenium- automated browser-based testing - KOMATSU Seiji (comutt) atWare, Inc. September 21, 2012
    • What is Selenium?Automates browserTesting feature(element assertion, etc)Selenium IDEsupported on FirefoxOther browsers aresupported for testing
    • UI TestingLogic testing doesn’t cover UIWeb application’s UI is browsersIt’s not easy to testing with browsers
    • With SeleniumTestable with BrowsersTest cases can be written in:Java, C#, Ruby, Python, etcUsing CI,UI becomes testable continuously
    • ArchitectureSelenium 2.0 WebDriver A driver, which is run by a Client Driver Client Driver Test drivers, implemented in some languages (Java, C#, Python, etc)
    • Architecture Drive a browser directly from a client BrowserClient Driver Selenium IDE ( library ) WebDriver plugin
    • Architecture Drive a browser from Selenium Server Selenium Server( java daemon ) Browser Remote Selenium IDE WebDriver WebDriver pluginClient Driver ( library )
    • Selenium IDEFirefox Plugin Available at Downloads Here
    • Get Selenium IDEAll plugins installed at once
    • Got Selenium IDENow you can run Selenium IDE
    • Recording Mode Selenium IDE has a recording modeRecording mode: Recording mode: ON OFF
    • Be CarefulIf recording mode on: All actions recorded automatically May be an accident, if the mode is on by mistakeOtherwise: No actions recorded automatically
    • Let’s RecordTo record, turn on the recording modeYou only do browsing,same as when you browse normally
    • DemonstrationTwitter login/tweet/logout test 01. recording 02. fail with missing element 03. fix the element 04. captcha error 05. mostly success, except tweeting
    • To JUnit Test CaseIt’s easy to convert to JUnit Test Case,or other formats.Enable the feature,[Options]-[Options]-[Enable experimental features]To convert,[Options]-[Format]-[What a format you want]
    • GotJUnit Test CaseAs a result:
    • Other WaysCopy directly to clipboard: [Options]-[Clipboard Format]- [What a format you want]Export as a file: [File]-[Export Test Case As...]- [What a format you want]
    • Architecture Comparison Browser Selenium IDEClient Driver ( library ) WebDriver plugin It takes about a minute to run test As I investigated, class loading is a little slow
    • Architecture Comparison Selenium Server ( java daemon ) Browser Remote Selenium IDE WebDriver WebDriver plugin Client Driver ( library )Required that the server is readyIt takes rather a half time than withoutthe server
    • ConclusionUI testing is complex,so the maintenance is not easySuggest that test the critical patterns Login/Logout, and any other very important featuresPowerful to prevent the regression