Ce diaporama a bien été signalé.
Nous utilisons votre profil LinkedIn et vos données d’activité pour vous proposer des publicités personnalisées et pertinentes. Vous pouvez changer vos préférences de publicités à tout moment.
Selenium 2 Jason HugginsCo-creator, The Selenium ProjectCo-founder, CTO, Sauce Labs Inc         twitter: @hugs  email: hug...
Follow me on Twitter:@hugs
Get Library from PyPI$ pip install -U selenium
Agenda•   Overview of Selenium    •   Selenium IDE, Builder (new!), RC, Grid•   Why: Selenium 2•   What: Selenium 2•   Dem...
What is Selenium?  =       +
The Problem
Selenium IDE for Firefox
Builder (new!)
!"#$%"&$(%)$*                                         9                 +%%,-..///01*234)03$#.,+$%$5.23"6$(".789:;8<=:
Selenium Remote Control                            Selenium RC Server Python, Ruby,                                       ...
Example Selenium RC Test - Java
Example Selenium RC Test - C#
!"#$Selenium Grid                %&&())***+,-#./"+.01)%0&02)$345)678
Servers          Time          Unit of Work
Servers          Time          Unit of Work
Selenium 2: Why and What
Mobile
Types of Mobile Testing•   Emulator•   Real device (tethered to workstation)•   Real device in a real location on a real  ...
Native vs Web
Life before the WebTotal Application Market
Yesterday              JS+HTMLTotal Application Market
Today              JS+HTML5Total Application Market
Data?
Sencha
SproutCore
PhoneGap
Today                            Selenium                           lives here!              JS+HTML5Total Application Mar...
Today                            Selenium                           lives here!              JS+HTML5Total Application Mar...
Tomorrow                            Selenium                           lives here!      JS+HTML5Total Application Market
The Pareto Principle
AKA (“The Pacman Problem”)          Selenium 1                       Selenium 2
Solving the last 20%• Native keyboard & mouse events• Same Origin Policy / XSS / HTTP(S)• Pop-ups, dialogs  – Basic Authen...
Cleaner API• WebDriver Object• WebElement Objects
Other Bene ts• Improved architecture• Removing road-blocks, hacks, and workarounds• Scales down (more developer friendly) ...
Selenium Remote Control                            Selenium RC Server Python, Ruby,                                       ...
Selenium 2                           Selenium RC Server Python, Ruby,                                                     ...
Python, Ruby,                                  Your AwesomeJava, C#, or Perl   HTTP   HTTP                                ...
Python, Ruby,                                   Your AwesomeJava, C#, or Perl   C/C++   HTTP                              ...
Running a server is now optional!                           Selenium Grid Python, Ruby,                                   ...
Mobile - How?
Checkout Selenium
Android
Download Android SDK
Unpack~/android_sdk
Update$ cd ~/android_sdk/tools$ ./android update sdk
Create AVD$ ./android create avd             -n my_android             -t 8             -c 100M
Start Emulator$ ./emulator -avd my_android              -no-audio              -no-boot-anim              -scale .8 &
Install Selenium APK$ cd ~/android_sdk/platform-tools/$ ./adb -e install         -r ~/selenium/android/prebuilt/android-se...
Port Forwarding$ ./adb forward tcp:8080 tcp:8080
(One More Step) Launch WebDriver App
iPhone
Open in XCode$ open ~/selenium/iphone/iWebDriver.xcodeproj/
Build & Run
Demo!
The Code:# Import the Selenium 2 namespace (aka "webdriver")from selenium import webdriver# Run one of the four following ...
The Code:# The actual test scenario: Test the codepad.org code execution service.# Go to codepad.orgdriver.get(http://code...
Selenium 2 - The Movie
LinksFor More Information:✓http://seleniumhq.org✓http://code.google.com/p/selenium✓http://code.google.com/p/se-builder/✓ht...
Thanks! Jason HugginsCo-creator, The Selenium ProjectCo-founder, CTO, Sauce Labs Inc         twitter: @hugs  email: hugs@s...
!"#$%"&$(%)$* 9 +%%,-..///01*234)03$#.,+$%$5.23"6$(".789:;8<=:
!"#$%"&$(%)$* 9 +%%,-..///01*234)03$#.,+$%$5.23"6$(".789:;8<=:
!"#$%"&$(%)$* 9 +%%,-..///01*234)03$#.,+$%$5.23"6$(".789:;8<=:
Prochain SlideShare
Chargement dans…5
×

!"#$%"&$(%)$* 9 +%%,-..///01*234)03$#.,+$%$5.23"6$(".789:;8<=: Selenium 2 - PyCon 2011

13 141 vues

Publié le

!"#$%"&$(%)$* 9 +%%,-..///01*234)03$#.,+$%$5.23"6$(".789:;8<=:

Publié dans : Technologie
  • Identifiez-vous pour voir les commentaires

×