SlideShare una empresa de Scribd logo
1 de 33
29-01-2011 Selenium Learning Ruturaj 1.0 1
2 Selenium Learning Ruturaj 1.0 29-01-2011 Knowledge is free, it’s the experience which make’s it priceless - Ruturaj
3 Selenium Learning Ruturaj 1.0 29-01-2011
4 Selenium Learning Ruturaj 1.0 29-01-2011
Selenium @ Work “Smarter ways of doing  Selenium Automation” Ruturaj http://ruturajd.blogspot.com Make Technology available for masses, to bottom of pyramid, you will see how life will change after this !
Objective Take away Thought’s from talk Functional Test automation views, expectations and preparation.  Understanding Selenium offering. Pointers towards basic  for  Test automation for tester to start automation. Learning what not to do in Test automation.  Selenium RC Automation Framework what’s  generic what’s specific. 6 Selenium Learning Ruturaj 1.0 29-01-2011
Context Driven Learning Disclaimer – These are my views based on my experience, hence think of background(Context) before using them directly. Context Driven Selenium Learning One Size Doesn’t Fit All. 7 Selenium Learning Ruturaj 1.0 29-01-2011
Functional Test Automation Background ,views ,Thought process, Expectation
Automation from different Perspective Product Managers/Test Manager Perspective. Automation must for ‘Early cycle Testing ‘ in Agile/Iterative development. Accuracy of verification in Automated ‘test cases’ is important as They would be fully replaced by “automated test script”.  Can’t afford if tester/automation engineers makes ‘any mistake’. 9 Selenium Learning Ruturaj 1.0 29-01-2011
Tester’s perspective – Bugs in Testers approach for technology Lazy, ‘why should I Change’ Approach. Tester’s are less adaptive to technologies(less agile*). After Realizing mistake, feeling of ‘missed the bus of opportunity’. Black Box Testing  –  a mystery for me. Big time missing = = Technical tester. 10 Selenium Learning Ruturaj 1.0 29-01-2011
Tester’s perspective – what can be done better(Ideally !)  Gel Well with Developers until you learn technology, if not at least learn Technology on your own. Understand What people do when they automate(that’s Montessori). How to automate(as per me) is PH. D  . Learn basics of Web technology – HTML, java script, how browser works, what goes underline when we click something ? 11 Selenium Learning Ruturaj 1.0 29-01-2011
Defining What to automate, what not to, when to automate. Automation Test Strategy / Automation Plan – only if its updated as per execution cycle. Selenium is one of the better tool I come across to automate web application(flow in website’s).  Gradual approach to automation, do it in bits and pieces, do it perfect, gradually build it up. Experienced Tester must do automation or something in Non functional Requirement Testing (E.g. Security testing, Usability, Performance, …) 12 Selenium Learning Ruturaj 1.0 29-01-2011
Selenium for Functional Test Automation(Web Apps)
Selenium Learning Pyramid 14 Selenium Learning Ruturaj 1.0 29-01-2011
What you can automate using Selenium (Learning 0.1.0) Selenium - functional testing tool for web based application. ,[object Object]
 Support to write test cases in many OO languages(java, C#, Perl, Python, Ruby).
Simple API/functions for interaction with HTML Elements.
 Easy to use Selenium IDE(recorder) for those  who want to start automation, just for Start. 15 Selenium Learning Ruturaj 1.0 29-01-2011
Selenium Offering – what do we have to consume ;) Selenium Core ,[object Object]
 Selenium is bundled with  all further offering like IDE, RC, Grid.Selenium IDE (Recorderfor Firefox). Selenium RC  (allow you to run test written in programming language to run from anywhere.) Selenium Grid (Multiple RC server running on same/different machine for parallel test run.) 16 Selenium Learning Ruturaj 1.0 29-01-2011
Simple Selenium Core Action 17 Selenium Learning Ruturaj 1.0 29-01-2011
Selenium Core References What not to do with while starting with Selenium Core. Trying to automate website which is not following Same origin policy. http://wiki.openqa.org/display/SEL/Selenium+Core+FAQ 18 Selenium Learning Ruturaj 1.0 29-01-2011
Selenium IDE- Recorder for Firefox Firefox  plug-in for easy record and playback of tests. Intelligent field selection will use IDs, names, or XPath as needed Helpful for simple HTML script development and execution(provides auto complete for common Selenium commands, debugging test execution , addition of custom extension)  Save tests as HTML scripts, or any other language script. Option to automatically assert the title of every page 19 Selenium Learning Ruturaj 1.0 29-01-2011
20 Selenium Learning Ruturaj 1.0 29-01-2011
Selenium IDE- Limitations Record and playback of IDE tests is possible only on fire fox browser. Selenium IDE can execute script created in Selenese (HTML like) only. It’s difficult to use Selenium IDE for checking complex test cases involving dynamic contents. No direct support for condition statements, iteration, error handling, particularly unexpected errors, test case grouping, Execution report not customizable to more extent. 21 Selenium Learning Ruturaj 1.0 29-01-2011
Where/When to use IDE then ? Selenium IDE is best suited for simple happy path verification with least time to test script development. To make Tester’s life easier - faster sanity check, regression verification provided test script you have recorded have enough valid verification’s.  In Agile team for quick and dirty automation(to start with..). 22 Selenium Learning Ruturaj 1.0 29-01-2011
SeleniumRemoteControl A proxy server written in java, which automatically launches and kills browsers. Allows to write test code in your favorite language Java Python  C# (.NET ) Ruby Perl Multi browser support by providing browser mode as *iehta, *firefox or *chrome in selenium object initialization.  Selenium RC supports HTTP and HTTPS based sites. 23 Selenium Learning Ruturaj 1.0 29-01-2011
Selenium RC Through my eye’s(Architecture) 24 Selenium Learning Ruturaj 1.0 29-01-2011
Selenium RC Setup Download the latest version of Selenium RC jar. Selenium RC gives freedom to run test/suites from your own machine by starting Selenium server on your machine. Start Selenium Server(open command prompt, go to directory where selenium-server.jar exist, type in below command. java -jar selenium-server.jar 25 Selenium Learning Ruturaj 1.0 29-01-2011
Selenium RC setup 2 Download the selenium-client driver, add the jar to your automation project’s library folder. Your automation project should have a base class where selenium object is to be initiated. Eg. There are various ways in which you can get selenium object initialized, but its nice to do in common place. selenium = new DefaultSelenium(“localhost”, “4444″, “*firefox”, “http://www.google.com/”); 26 Selenium Learning Ruturaj 1.0 29-01-2011
Choosing right ingredients 27 Selenium Learning Ruturaj 1.0 29-01-2011
Language for Selenium automation, Owners of Script maintenance Thumb rule – Use same language as that of application development language. Also Keep in mind skill set possessed by team whose going to work on it(QA’s – Test Developers). Define owners for test script maintenance, in shorter teams,  developer’s owns  acceptance test script, QA’s own regression suites. 28 Selenium Learning Ruturaj 1.0 29-01-2011
Problems I faced using Selenium	 When there were Ajax request/responses everywhere on page, writing custom waitFor method was painful. Few API doesn’t work on specific version of IE/FFX. Slowness of IE test execution due to wrong usages of locators. Working on element involving recursive java script calls on ‘onClick’ event. 29 Selenium Learning Ruturaj 1.0 29-01-2011

Más contenido relacionado

La actualidad más candente

Automated Web Testing Using Selenium
Automated Web Testing Using SeleniumAutomated Web Testing Using Selenium
Automated Web Testing Using SeleniumWeifeng Zhang
 
Selenium Ide Tutorial
Selenium Ide TutorialSelenium Ide Tutorial
Selenium Ide Tutorialmetapix
 
Selenium IDE Introduction, Installation and Working
Selenium IDE Introduction, Installation and WorkingSelenium IDE Introduction, Installation and Working
Selenium IDE Introduction, Installation and WorkingDisha Srivastava
 
An Overview of Selenium
An Overview of SeleniumAn Overview of Selenium
An Overview of Seleniumadamcarmi
 
Get Started With Selenium 3 and Selenium 3 Grid
Get Started With Selenium 3 and Selenium 3 GridGet Started With Selenium 3 and Selenium 3 Grid
Get Started With Selenium 3 and Selenium 3 GridDaniel Herken
 
Selenium introduction
Selenium introductionSelenium introduction
Selenium introductionPankaj Dubey
 
Selenium webdriver course content rakesh hansalia
Selenium webdriver course content rakesh hansaliaSelenium webdriver course content rakesh hansalia
Selenium webdriver course content rakesh hansaliaRakesh Hansalia
 
#ATAGTR2021 Presentation - "Selenium 4 Observability – a 90 Min Hands on Lab"
#ATAGTR2021 Presentation - "Selenium 4 Observability – a 90 Min Hands on Lab"#ATAGTR2021 Presentation - "Selenium 4 Observability – a 90 Min Hands on Lab"
#ATAGTR2021 Presentation - "Selenium 4 Observability – a 90 Min Hands on Lab"Agile Testing Alliance
 
Web application testing with Selenium
Web application testing with SeleniumWeb application testing with Selenium
Web application testing with SeleniumKerry Buckley
 
Selenium Presentation at Engineering Colleges
Selenium Presentation at Engineering CollegesSelenium Presentation at Engineering Colleges
Selenium Presentation at Engineering CollegesVijay Rangaiah
 
Selenium test automation
Selenium test automationSelenium test automation
Selenium test automationSrikanth Vuriti
 

La actualidad más candente (20)

Selenium Demo
Selenium DemoSelenium Demo
Selenium Demo
 
Introduction to selenium
Introduction to seleniumIntroduction to selenium
Introduction to selenium
 
Selenium Primer
Selenium PrimerSelenium Primer
Selenium Primer
 
QSpiders - Automation using Selenium
QSpiders - Automation using SeleniumQSpiders - Automation using Selenium
QSpiders - Automation using Selenium
 
Selenium
SeleniumSelenium
Selenium
 
Automated Web Testing Using Selenium
Automated Web Testing Using SeleniumAutomated Web Testing Using Selenium
Automated Web Testing Using Selenium
 
Selenium
SeleniumSelenium
Selenium
 
Selenium Ide Tutorial
Selenium Ide TutorialSelenium Ide Tutorial
Selenium Ide Tutorial
 
Selenium IDE Introduction, Installation and Working
Selenium IDE Introduction, Installation and WorkingSelenium IDE Introduction, Installation and Working
Selenium IDE Introduction, Installation and Working
 
Selenium
SeleniumSelenium
Selenium
 
An Overview of Selenium
An Overview of SeleniumAn Overview of Selenium
An Overview of Selenium
 
Get Started With Selenium 3 and Selenium 3 Grid
Get Started With Selenium 3 and Selenium 3 GridGet Started With Selenium 3 and Selenium 3 Grid
Get Started With Selenium 3 and Selenium 3 Grid
 
Selenium introduction
Selenium introductionSelenium introduction
Selenium introduction
 
Selenium webdriver course content rakesh hansalia
Selenium webdriver course content rakesh hansaliaSelenium webdriver course content rakesh hansalia
Selenium webdriver course content rakesh hansalia
 
#ATAGTR2021 Presentation - "Selenium 4 Observability – a 90 Min Hands on Lab"
#ATAGTR2021 Presentation - "Selenium 4 Observability – a 90 Min Hands on Lab"#ATAGTR2021 Presentation - "Selenium 4 Observability – a 90 Min Hands on Lab"
#ATAGTR2021 Presentation - "Selenium 4 Observability – a 90 Min Hands on Lab"
 
Web application testing with Selenium
Web application testing with SeleniumWeb application testing with Selenium
Web application testing with Selenium
 
Selenium Presentation at Engineering Colleges
Selenium Presentation at Engineering CollegesSelenium Presentation at Engineering Colleges
Selenium Presentation at Engineering Colleges
 
Selenium ppt
Selenium pptSelenium ppt
Selenium ppt
 
Selenium test automation
Selenium test automationSelenium test automation
Selenium test automation
 
Selenium ppt
Selenium pptSelenium ppt
Selenium ppt
 

Destacado

Web Test Automation with Selenium
Web Test Automation with SeleniumWeb Test Automation with Selenium
Web Test Automation with Seleniumvivek_prahlad
 
BDD testing with cucumber
BDD testing with cucumberBDD testing with cucumber
BDD testing with cucumberDaniel Kummer
 
Behavior Driven Development (BDD) and Agile Testing
Behavior Driven Development (BDD) and Agile TestingBehavior Driven Development (BDD) and Agile Testing
Behavior Driven Development (BDD) and Agile Testingdversaci
 
Behavior Driven Development and Automation Testing Using Cucumber
Behavior Driven Development and Automation Testing Using CucumberBehavior Driven Development and Automation Testing Using Cucumber
Behavior Driven Development and Automation Testing Using CucumberKMS Technology
 
Java Basics for selenium
Java Basics for seleniumJava Basics for selenium
Java Basics for seleniumapoorvams
 
Automation Testing using Selenium
Automation Testing using SeleniumAutomation Testing using Selenium
Automation Testing using SeleniumNaresh Chintalcheru
 
Test Automation Framework Designs
Test Automation Framework DesignsTest Automation Framework Designs
Test Automation Framework DesignsSauce Labs
 
Turn VIM into a modern Python IDE
Turn VIM into a modern Python IDETurn VIM into a modern Python IDE
Turn VIM into a modern Python IDEChee-Chan Keng
 
Victor Dyptan.Using Selenium IDE for automated testing.Drupal Camp Kyiv 2011
Victor Dyptan.Using Selenium IDE for automated testing.Drupal Camp Kyiv 2011Victor Dyptan.Using Selenium IDE for automated testing.Drupal Camp Kyiv 2011
Victor Dyptan.Using Selenium IDE for automated testing.Drupal Camp Kyiv 2011camp_drupal_ua
 
Automated Web Testing Using Selenium
Automated Web Testing Using SeleniumAutomated Web Testing Using Selenium
Automated Web Testing Using Selenium昱劭 劉
 
Selenium ui paradigm - DDD North 2
Selenium ui paradigm - DDD North 2Selenium ui paradigm - DDD North 2
Selenium ui paradigm - DDD North 2Nathan Gloyn
 
Automation Testing using Selenium
Automation Testing using SeleniumAutomation Testing using Selenium
Automation Testing using SeleniumFizah Ali
 
Nagios Conference 2012 - Sam Lansing - Automating Windows Application Testing...
Nagios Conference 2012 - Sam Lansing - Automating Windows Application Testing...Nagios Conference 2012 - Sam Lansing - Automating Windows Application Testing...
Nagios Conference 2012 - Sam Lansing - Automating Windows Application Testing...Nagios
 
Automated Testing for Websites With Selenium IDE
Automated Testing for Websites With Selenium IDEAutomated Testing for Websites With Selenium IDE
Automated Testing for Websites With Selenium IDERobert Greiner
 
Test Automation and Selenium
Test Automation and SeleniumTest Automation and Selenium
Test Automation and SeleniumKarapet Sarkisyan
 

Destacado (20)

Automation Testing by Selenium Web Driver
Automation Testing by Selenium Web DriverAutomation Testing by Selenium Web Driver
Automation Testing by Selenium Web Driver
 
Web Test Automation with Selenium
Web Test Automation with SeleniumWeb Test Automation with Selenium
Web Test Automation with Selenium
 
BDD testing with cucumber
BDD testing with cucumberBDD testing with cucumber
BDD testing with cucumber
 
Behavior Driven Development (BDD) and Agile Testing
Behavior Driven Development (BDD) and Agile TestingBehavior Driven Development (BDD) and Agile Testing
Behavior Driven Development (BDD) and Agile Testing
 
Behavior Driven Development and Automation Testing Using Cucumber
Behavior Driven Development and Automation Testing Using CucumberBehavior Driven Development and Automation Testing Using Cucumber
Behavior Driven Development and Automation Testing Using Cucumber
 
Java Basics for selenium
Java Basics for seleniumJava Basics for selenium
Java Basics for selenium
 
Automation Testing using Selenium
Automation Testing using SeleniumAutomation Testing using Selenium
Automation Testing using Selenium
 
Test Automation Framework Designs
Test Automation Framework DesignsTest Automation Framework Designs
Test Automation Framework Designs
 
Turn VIM into a modern Python IDE
Turn VIM into a modern Python IDETurn VIM into a modern Python IDE
Turn VIM into a modern Python IDE
 
Victor Dyptan.Using Selenium IDE for automated testing.Drupal Camp Kyiv 2011
Victor Dyptan.Using Selenium IDE for automated testing.Drupal Camp Kyiv 2011Victor Dyptan.Using Selenium IDE for automated testing.Drupal Camp Kyiv 2011
Victor Dyptan.Using Selenium IDE for automated testing.Drupal Camp Kyiv 2011
 
Selenium IDE
Selenium IDESelenium IDE
Selenium IDE
 
Automated Web Testing Using Selenium
Automated Web Testing Using SeleniumAutomated Web Testing Using Selenium
Automated Web Testing Using Selenium
 
Automation Testing
Automation TestingAutomation Testing
Automation Testing
 
Selenium ui paradigm - DDD North 2
Selenium ui paradigm - DDD North 2Selenium ui paradigm - DDD North 2
Selenium ui paradigm - DDD North 2
 
Automation Testing using Selenium
Automation Testing using SeleniumAutomation Testing using Selenium
Automation Testing using Selenium
 
Nagios Conference 2012 - Sam Lansing - Automating Windows Application Testing...
Nagios Conference 2012 - Sam Lansing - Automating Windows Application Testing...Nagios Conference 2012 - Sam Lansing - Automating Windows Application Testing...
Nagios Conference 2012 - Sam Lansing - Automating Windows Application Testing...
 
Selenium
SeleniumSelenium
Selenium
 
Lets Auto It
Lets Auto ItLets Auto It
Lets Auto It
 
Automated Testing for Websites With Selenium IDE
Automated Testing for Websites With Selenium IDEAutomated Testing for Websites With Selenium IDE
Automated Testing for Websites With Selenium IDE
 
Test Automation and Selenium
Test Automation and SeleniumTest Automation and Selenium
Test Automation and Selenium
 

Similar a Smarter ways to do selenium automation @ work, Selenium, automation

Learn Selenium - Online Guide
Learn Selenium - Online GuideLearn Selenium - Online Guide
Learn Selenium - Online Guidebigspire
 
Test Automation Using Selenium
Test Automation Using SeleniumTest Automation Using Selenium
Test Automation Using SeleniumNikhil Kapoor
 
Top 21 Selenium FAQs.pdf
Top 21 Selenium FAQs.pdfTop 21 Selenium FAQs.pdf
Top 21 Selenium FAQs.pdfAnanthReddy38
 
Top 30 Selenium Interview Questions.pptx
Top 30 Selenium Interview Questions.pptxTop 30 Selenium Interview Questions.pptx
Top 30 Selenium Interview Questions.pptxSyntax Technologies
 
Test automation using selenium
Test automation using seleniumTest automation using selenium
Test automation using seleniumTờ Rang
 
What is Selenium Introduction to Selenium Testing.pptx
What is Selenium Introduction to Selenium Testing.pptxWhat is Selenium Introduction to Selenium Testing.pptx
What is Selenium Introduction to Selenium Testing.pptxSyntax Technologies
 
What is Selenium Automation Testing.pdf
What is Selenium Automation Testing.pdfWhat is Selenium Automation Testing.pdf
What is Selenium Automation Testing.pdfAnanthReddy38
 
Top 3 selenium IDE alternatives for Chrome and Firefox
Top 3 selenium IDE alternatives for Chrome and FirefoxTop 3 selenium IDE alternatives for Chrome and Firefox
Top 3 selenium IDE alternatives for Chrome and FirefoxKatalon Studio
 
Python selenium
Python seleniumPython selenium
Python seleniumDucat
 
What Is Selenium? | Selenium Basics For Beginners | Introduction To Selenium ...
What Is Selenium? | Selenium Basics For Beginners | Introduction To Selenium ...What Is Selenium? | Selenium Basics For Beginners | Introduction To Selenium ...
What Is Selenium? | Selenium Basics For Beginners | Introduction To Selenium ...Simplilearn
 
test-automation-selenium-160216124839.pptx
test-automation-selenium-160216124839.pptxtest-automation-selenium-160216124839.pptx
test-automation-selenium-160216124839.pptxSyedZaeem9
 
Why does Selenium Succeed?
Why does Selenium Succeed?Why does Selenium Succeed?
Why does Selenium Succeed?Venessa Serrao
 
Selenium Latest Version Update | QR Solutions Pvt Ltd
Selenium Latest Version Update | QR Solutions Pvt LtdSelenium Latest Version Update | QR Solutions Pvt Ltd
Selenium Latest Version Update | QR Solutions Pvt Ltdqrsolutionsindia
 

Similar a Smarter ways to do selenium automation @ work, Selenium, automation (20)

Selenium Testing
Selenium TestingSelenium Testing
Selenium Testing
 
Selenium
SeleniumSelenium
Selenium
 
Selenium
SeleniumSelenium
Selenium
 
Learn Selenium - Online Guide
Learn Selenium - Online GuideLearn Selenium - Online Guide
Learn Selenium - Online Guide
 
Test Automation Using Selenium
Test Automation Using SeleniumTest Automation Using Selenium
Test Automation Using Selenium
 
What is selenium
What is seleniumWhat is selenium
What is selenium
 
Top 21 Selenium FAQs.pdf
Top 21 Selenium FAQs.pdfTop 21 Selenium FAQs.pdf
Top 21 Selenium FAQs.pdf
 
Top 30 Selenium Interview Questions.pptx
Top 30 Selenium Interview Questions.pptxTop 30 Selenium Interview Questions.pptx
Top 30 Selenium Interview Questions.pptx
 
Test automation using selenium
Test automation using seleniumTest automation using selenium
Test automation using selenium
 
What is Selenium Introduction to Selenium Testing.pptx
What is Selenium Introduction to Selenium Testing.pptxWhat is Selenium Introduction to Selenium Testing.pptx
What is Selenium Introduction to Selenium Testing.pptx
 
What is Selenium Automation Testing.pdf
What is Selenium Automation Testing.pdfWhat is Selenium Automation Testing.pdf
What is Selenium Automation Testing.pdf
 
Top 3 selenium IDE alternatives for Chrome and Firefox
Top 3 selenium IDE alternatives for Chrome and FirefoxTop 3 selenium IDE alternatives for Chrome and Firefox
Top 3 selenium IDE alternatives for Chrome and Firefox
 
Python selenium
Python seleniumPython selenium
Python selenium
 
What Is Selenium? | Selenium Basics For Beginners | Introduction To Selenium ...
What Is Selenium? | Selenium Basics For Beginners | Introduction To Selenium ...What Is Selenium? | Selenium Basics For Beginners | Introduction To Selenium ...
What Is Selenium? | Selenium Basics For Beginners | Introduction To Selenium ...
 
BCS Selenium Workshop
BCS Selenium WorkshopBCS Selenium Workshop
BCS Selenium Workshop
 
test-automation-selenium-160216124839.pptx
test-automation-selenium-160216124839.pptxtest-automation-selenium-160216124839.pptx
test-automation-selenium-160216124839.pptx
 
Selenium
SeleniumSelenium
Selenium
 
Why does Selenium Succeed?
Why does Selenium Succeed?Why does Selenium Succeed?
Why does Selenium Succeed?
 
Test automation using selenium
Test automation using seleniumTest automation using selenium
Test automation using selenium
 
Selenium Latest Version Update | QR Solutions Pvt Ltd
Selenium Latest Version Update | QR Solutions Pvt LtdSelenium Latest Version Update | QR Solutions Pvt Ltd
Selenium Latest Version Update | QR Solutions Pvt Ltd
 

Más de RIA RUI Society

User experience - Why the mobile space is important
User experience - Why the mobile space is importantUser experience - Why the mobile space is important
User experience - Why the mobile space is importantRIA RUI Society
 
Introduction to google cloud messaging in android
Introduction to google cloud messaging in androidIntroduction to google cloud messaging in android
Introduction to google cloud messaging in androidRIA RUI Society
 
Entering the world of Samsung developer ecosystem
Entering the world of Samsung developer ecosystemEntering the world of Samsung developer ecosystem
Entering the world of Samsung developer ecosystemRIA RUI Society
 
App monetization - 5 secrets of success
App monetization - 5 secrets of successApp monetization - 5 secrets of success
App monetization - 5 secrets of successRIA RUI Society
 
Socialize and Gaming on the move
Socialize and Gaming on the moveSocialize and Gaming on the move
Socialize and Gaming on the moveRIA RUI Society
 
Indian design and the art of story telling
Indian design and the art of story tellingIndian design and the art of story telling
Indian design and the art of story tellingRIA RUI Society
 
Design of the indian rupee symbol
Design of the indian rupee symbolDesign of the indian rupee symbol
Design of the indian rupee symbolRIA RUI Society
 
Creating delightful experiences
Creating delightful experiencesCreating delightful experiences
Creating delightful experiencesRIA RUI Society
 
Typographic history, systems and perception
Typographic history, systems and perceptionTypographic history, systems and perception
Typographic history, systems and perceptionRIA RUI Society
 
Understanding Design and Brand Communication Workshop Content - Design Camp I...
Understanding Design and Brand Communication Workshop Content - Design Camp I...Understanding Design and Brand Communication Workshop Content - Design Camp I...
Understanding Design and Brand Communication Workshop Content - Design Camp I...RIA RUI Society
 
Bug deBug Chennai 2012 Talk - Driving innovation using pattern based thinking...
Bug deBug Chennai 2012 Talk - Driving innovation using pattern based thinking...Bug deBug Chennai 2012 Talk - Driving innovation using pattern based thinking...
Bug deBug Chennai 2012 Talk - Driving innovation using pattern based thinking...RIA RUI Society
 
Bug deBug Chennai 2012 Talk - Trimming those flabs designing lightweight test...
Bug deBug Chennai 2012 Talk - Trimming those flabs designing lightweight test...Bug deBug Chennai 2012 Talk - Trimming those flabs designing lightweight test...
Bug deBug Chennai 2012 Talk - Trimming those flabs designing lightweight test...RIA RUI Society
 
Bug deBug Chennai 2012 Talk - Web application usability by Parimala Hariprasad
Bug deBug Chennai 2012 Talk - Web application usability by Parimala HariprasadBug deBug Chennai 2012 Talk - Web application usability by Parimala Hariprasad
Bug deBug Chennai 2012 Talk - Web application usability by Parimala HariprasadRIA RUI Society
 
Bug deBug Chennai 2012 Talk - V3 analysis an approach for estimating software...
Bug deBug Chennai 2012 Talk - V3 analysis an approach for estimating software...Bug deBug Chennai 2012 Talk - V3 analysis an approach for estimating software...
Bug deBug Chennai 2012 Talk - V3 analysis an approach for estimating software...RIA RUI Society
 
Bug deBug Chennai 2012 Talk - Future of testing impact of mobile devices by S...
Bug deBug Chennai 2012 Talk - Future of testing impact of mobile devices by S...Bug deBug Chennai 2012 Talk - Future of testing impact of mobile devices by S...
Bug deBug Chennai 2012 Talk - Future of testing impact of mobile devices by S...RIA RUI Society
 
Bug deBug Chennai 2012 Talk - Effective test management with triple t tools,...
Bug deBug Chennai 2012 Talk - Effective test management with triple t  tools,...Bug deBug Chennai 2012 Talk - Effective test management with triple t  tools,...
Bug deBug Chennai 2012 Talk - Effective test management with triple t tools,...RIA RUI Society
 
Bug deBug Chennai 2012 Talk - Business value articulation in software project...
Bug deBug Chennai 2012 Talk - Business value articulation in software project...Bug deBug Chennai 2012 Talk - Business value articulation in software project...
Bug deBug Chennai 2012 Talk - Business value articulation in software project...RIA RUI Society
 
Bug deBug Chennai 2012 Talk - Test automation support systems layered archite...
Bug deBug Chennai 2012 Talk - Test automation support systems layered archite...Bug deBug Chennai 2012 Talk - Test automation support systems layered archite...
Bug deBug Chennai 2012 Talk - Test automation support systems layered archite...RIA RUI Society
 
Usability testing for mobile apps - Touch Tour Chennai
Usability testing for mobile apps - Touch Tour ChennaiUsability testing for mobile apps - Touch Tour Chennai
Usability testing for mobile apps - Touch Tour ChennaiRIA RUI Society
 
Introduction to Android OS - Touch Tour Chennai
Introduction to Android OS - Touch Tour ChennaiIntroduction to Android OS - Touch Tour Chennai
Introduction to Android OS - Touch Tour ChennaiRIA RUI Society
 

Más de RIA RUI Society (20)

User experience - Why the mobile space is important
User experience - Why the mobile space is importantUser experience - Why the mobile space is important
User experience - Why the mobile space is important
 
Introduction to google cloud messaging in android
Introduction to google cloud messaging in androidIntroduction to google cloud messaging in android
Introduction to google cloud messaging in android
 
Entering the world of Samsung developer ecosystem
Entering the world of Samsung developer ecosystemEntering the world of Samsung developer ecosystem
Entering the world of Samsung developer ecosystem
 
App monetization - 5 secrets of success
App monetization - 5 secrets of successApp monetization - 5 secrets of success
App monetization - 5 secrets of success
 
Socialize and Gaming on the move
Socialize and Gaming on the moveSocialize and Gaming on the move
Socialize and Gaming on the move
 
Indian design and the art of story telling
Indian design and the art of story tellingIndian design and the art of story telling
Indian design and the art of story telling
 
Design of the indian rupee symbol
Design of the indian rupee symbolDesign of the indian rupee symbol
Design of the indian rupee symbol
 
Creating delightful experiences
Creating delightful experiencesCreating delightful experiences
Creating delightful experiences
 
Typographic history, systems and perception
Typographic history, systems and perceptionTypographic history, systems and perception
Typographic history, systems and perception
 
Understanding Design and Brand Communication Workshop Content - Design Camp I...
Understanding Design and Brand Communication Workshop Content - Design Camp I...Understanding Design and Brand Communication Workshop Content - Design Camp I...
Understanding Design and Brand Communication Workshop Content - Design Camp I...
 
Bug deBug Chennai 2012 Talk - Driving innovation using pattern based thinking...
Bug deBug Chennai 2012 Talk - Driving innovation using pattern based thinking...Bug deBug Chennai 2012 Talk - Driving innovation using pattern based thinking...
Bug deBug Chennai 2012 Talk - Driving innovation using pattern based thinking...
 
Bug deBug Chennai 2012 Talk - Trimming those flabs designing lightweight test...
Bug deBug Chennai 2012 Talk - Trimming those flabs designing lightweight test...Bug deBug Chennai 2012 Talk - Trimming those flabs designing lightweight test...
Bug deBug Chennai 2012 Talk - Trimming those flabs designing lightweight test...
 
Bug deBug Chennai 2012 Talk - Web application usability by Parimala Hariprasad
Bug deBug Chennai 2012 Talk - Web application usability by Parimala HariprasadBug deBug Chennai 2012 Talk - Web application usability by Parimala Hariprasad
Bug deBug Chennai 2012 Talk - Web application usability by Parimala Hariprasad
 
Bug deBug Chennai 2012 Talk - V3 analysis an approach for estimating software...
Bug deBug Chennai 2012 Talk - V3 analysis an approach for estimating software...Bug deBug Chennai 2012 Talk - V3 analysis an approach for estimating software...
Bug deBug Chennai 2012 Talk - V3 analysis an approach for estimating software...
 
Bug deBug Chennai 2012 Talk - Future of testing impact of mobile devices by S...
Bug deBug Chennai 2012 Talk - Future of testing impact of mobile devices by S...Bug deBug Chennai 2012 Talk - Future of testing impact of mobile devices by S...
Bug deBug Chennai 2012 Talk - Future of testing impact of mobile devices by S...
 
Bug deBug Chennai 2012 Talk - Effective test management with triple t tools,...
Bug deBug Chennai 2012 Talk - Effective test management with triple t  tools,...Bug deBug Chennai 2012 Talk - Effective test management with triple t  tools,...
Bug deBug Chennai 2012 Talk - Effective test management with triple t tools,...
 
Bug deBug Chennai 2012 Talk - Business value articulation in software project...
Bug deBug Chennai 2012 Talk - Business value articulation in software project...Bug deBug Chennai 2012 Talk - Business value articulation in software project...
Bug deBug Chennai 2012 Talk - Business value articulation in software project...
 
Bug deBug Chennai 2012 Talk - Test automation support systems layered archite...
Bug deBug Chennai 2012 Talk - Test automation support systems layered archite...Bug deBug Chennai 2012 Talk - Test automation support systems layered archite...
Bug deBug Chennai 2012 Talk - Test automation support systems layered archite...
 
Usability testing for mobile apps - Touch Tour Chennai
Usability testing for mobile apps - Touch Tour ChennaiUsability testing for mobile apps - Touch Tour Chennai
Usability testing for mobile apps - Touch Tour Chennai
 
Introduction to Android OS - Touch Tour Chennai
Introduction to Android OS - Touch Tour ChennaiIntroduction to Android OS - Touch Tour Chennai
Introduction to Android OS - Touch Tour Chennai
 

Smarter ways to do selenium automation @ work, Selenium, automation

  • 2. 2 Selenium Learning Ruturaj 1.0 29-01-2011 Knowledge is free, it’s the experience which make’s it priceless - Ruturaj
  • 3. 3 Selenium Learning Ruturaj 1.0 29-01-2011
  • 4. 4 Selenium Learning Ruturaj 1.0 29-01-2011
  • 5. Selenium @ Work “Smarter ways of doing Selenium Automation” Ruturaj http://ruturajd.blogspot.com Make Technology available for masses, to bottom of pyramid, you will see how life will change after this !
  • 6. Objective Take away Thought’s from talk Functional Test automation views, expectations and preparation. Understanding Selenium offering. Pointers towards basic for Test automation for tester to start automation. Learning what not to do in Test automation. Selenium RC Automation Framework what’s generic what’s specific. 6 Selenium Learning Ruturaj 1.0 29-01-2011
  • 7. Context Driven Learning Disclaimer – These are my views based on my experience, hence think of background(Context) before using them directly. Context Driven Selenium Learning One Size Doesn’t Fit All. 7 Selenium Learning Ruturaj 1.0 29-01-2011
  • 8. Functional Test Automation Background ,views ,Thought process, Expectation
  • 9. Automation from different Perspective Product Managers/Test Manager Perspective. Automation must for ‘Early cycle Testing ‘ in Agile/Iterative development. Accuracy of verification in Automated ‘test cases’ is important as They would be fully replaced by “automated test script”. Can’t afford if tester/automation engineers makes ‘any mistake’. 9 Selenium Learning Ruturaj 1.0 29-01-2011
  • 10. Tester’s perspective – Bugs in Testers approach for technology Lazy, ‘why should I Change’ Approach. Tester’s are less adaptive to technologies(less agile*). After Realizing mistake, feeling of ‘missed the bus of opportunity’. Black Box Testing – a mystery for me. Big time missing = = Technical tester. 10 Selenium Learning Ruturaj 1.0 29-01-2011
  • 11. Tester’s perspective – what can be done better(Ideally !) Gel Well with Developers until you learn technology, if not at least learn Technology on your own. Understand What people do when they automate(that’s Montessori). How to automate(as per me) is PH. D . Learn basics of Web technology – HTML, java script, how browser works, what goes underline when we click something ? 11 Selenium Learning Ruturaj 1.0 29-01-2011
  • 12. Defining What to automate, what not to, when to automate. Automation Test Strategy / Automation Plan – only if its updated as per execution cycle. Selenium is one of the better tool I come across to automate web application(flow in website’s). Gradual approach to automation, do it in bits and pieces, do it perfect, gradually build it up. Experienced Tester must do automation or something in Non functional Requirement Testing (E.g. Security testing, Usability, Performance, …) 12 Selenium Learning Ruturaj 1.0 29-01-2011
  • 13. Selenium for Functional Test Automation(Web Apps)
  • 14. Selenium Learning Pyramid 14 Selenium Learning Ruturaj 1.0 29-01-2011
  • 15.
  • 16. Support to write test cases in many OO languages(java, C#, Perl, Python, Ruby).
  • 17. Simple API/functions for interaction with HTML Elements.
  • 18. Easy to use Selenium IDE(recorder) for those who want to start automation, just for Start. 15 Selenium Learning Ruturaj 1.0 29-01-2011
  • 19.
  • 20. Selenium is bundled with all further offering like IDE, RC, Grid.Selenium IDE (Recorderfor Firefox). Selenium RC (allow you to run test written in programming language to run from anywhere.) Selenium Grid (Multiple RC server running on same/different machine for parallel test run.) 16 Selenium Learning Ruturaj 1.0 29-01-2011
  • 21. Simple Selenium Core Action 17 Selenium Learning Ruturaj 1.0 29-01-2011
  • 22. Selenium Core References What not to do with while starting with Selenium Core. Trying to automate website which is not following Same origin policy. http://wiki.openqa.org/display/SEL/Selenium+Core+FAQ 18 Selenium Learning Ruturaj 1.0 29-01-2011
  • 23. Selenium IDE- Recorder for Firefox Firefox plug-in for easy record and playback of tests. Intelligent field selection will use IDs, names, or XPath as needed Helpful for simple HTML script development and execution(provides auto complete for common Selenium commands, debugging test execution , addition of custom extension) Save tests as HTML scripts, or any other language script. Option to automatically assert the title of every page 19 Selenium Learning Ruturaj 1.0 29-01-2011
  • 24. 20 Selenium Learning Ruturaj 1.0 29-01-2011
  • 25. Selenium IDE- Limitations Record and playback of IDE tests is possible only on fire fox browser. Selenium IDE can execute script created in Selenese (HTML like) only. It’s difficult to use Selenium IDE for checking complex test cases involving dynamic contents. No direct support for condition statements, iteration, error handling, particularly unexpected errors, test case grouping, Execution report not customizable to more extent. 21 Selenium Learning Ruturaj 1.0 29-01-2011
  • 26. Where/When to use IDE then ? Selenium IDE is best suited for simple happy path verification with least time to test script development. To make Tester’s life easier - faster sanity check, regression verification provided test script you have recorded have enough valid verification’s. In Agile team for quick and dirty automation(to start with..). 22 Selenium Learning Ruturaj 1.0 29-01-2011
  • 27. SeleniumRemoteControl A proxy server written in java, which automatically launches and kills browsers. Allows to write test code in your favorite language Java Python C# (.NET ) Ruby Perl Multi browser support by providing browser mode as *iehta, *firefox or *chrome in selenium object initialization. Selenium RC supports HTTP and HTTPS based sites. 23 Selenium Learning Ruturaj 1.0 29-01-2011
  • 28. Selenium RC Through my eye’s(Architecture) 24 Selenium Learning Ruturaj 1.0 29-01-2011
  • 29. Selenium RC Setup Download the latest version of Selenium RC jar. Selenium RC gives freedom to run test/suites from your own machine by starting Selenium server on your machine. Start Selenium Server(open command prompt, go to directory where selenium-server.jar exist, type in below command. java -jar selenium-server.jar 25 Selenium Learning Ruturaj 1.0 29-01-2011
  • 30. Selenium RC setup 2 Download the selenium-client driver, add the jar to your automation project’s library folder. Your automation project should have a base class where selenium object is to be initiated. Eg. There are various ways in which you can get selenium object initialized, but its nice to do in common place. selenium = new DefaultSelenium(“localhost”, “4444″, “*firefox”, “http://www.google.com/”); 26 Selenium Learning Ruturaj 1.0 29-01-2011
  • 31. Choosing right ingredients 27 Selenium Learning Ruturaj 1.0 29-01-2011
  • 32. Language for Selenium automation, Owners of Script maintenance Thumb rule – Use same language as that of application development language. Also Keep in mind skill set possessed by team whose going to work on it(QA’s – Test Developers). Define owners for test script maintenance, in shorter teams, developer’s owns acceptance test script, QA’s own regression suites. 28 Selenium Learning Ruturaj 1.0 29-01-2011
  • 33. Problems I faced using Selenium When there were Ajax request/responses everywhere on page, writing custom waitFor method was painful. Few API doesn’t work on specific version of IE/FFX. Slowness of IE test execution due to wrong usages of locators. Working on element involving recursive java script calls on ‘onClick’ event. 29 Selenium Learning Ruturaj 1.0 29-01-2011
  • 34. What is tough to automate using Selenium If your website has lots of Flash/Flex component, Selenium automation is tricky. Similarly if test needs to interact with any non native object in html like calendar, Rich Text FCK Editor, it is tougher to do so. Automation of web page involving multiple frames. Testing functionality provided by third party tools – outside scope of test automation tool. 30 Selenium Learning Ruturaj 1.0 29-01-2011
  • 35. Generic subsets of Automation Frameworks 31 Selenium Learning Ruturaj 1.0 29-01-2011
  • 36. 32 Selenium Learning Ruturaj 1.0 29-01-2011
  • 37. Selenium Learning Ruturaj 1.0 The Pareto Principle 33 29-01-2011

Notas del editor

  1. Knowledge is free, it’s the experience which is priceless !I am here to share with you facts/experience of mine discovering Selenium Test Automation.
  2. My inspiration, reason why I am here.
  3. Introduction about myselfRuturaj – explored 6 yrs of Technical testing , worked on Agile models using XP/Scrum.Worked on Product testing like embedded, E-commerce, SAAS based ERP applications. Picture represent different stages of my life, current one being top left.
  4. I wish to reduce pain of every one who wish to learn functional test automation, hence Selenium automation in better way.
  5. Here to share facts – answer to question – ‘What’ is automation, ‘How’ to automate.FTA = Views , expectation from different roles in project.Selenium offering = Core, IDE, RC.Basics of Test automation.Learning from classic mistakes of test automation.Blue print of Selenium RC Test Automation framework.
  6. Selenium automation is self exploration activity,There are no exact standards,Hence thoughts expressed here are just one of the better ways of doing things.
  7. FTA in our context - In Short Automating functionality provided by Web application.I am trying to define ‘What’ it means when we do functional Test automation, so defining ‘What’.B – Agile/iterative/faster software development, hence tester role is far more critical in verifying software works.Multitasking – communication bridge, software police, Test coder, domain expert in team.Why Automation – quick, accurate, precise feedback for software development.
  8. A - Fastest feedback for Agile development.B – If test verifications are not dynamic, they are of lesser use for feedback for development.C – Wrong Philosophy = ‘Test code written should have minimal bugs(practically zero)’
  9. L Change is persistent nothing else !Its never too late for anything good, positive, changeable.Soul Tester is negative which is fine(Its in genes !), but They are not agile*. They are aware of technology, but they are not ‘on’ to it !BBT - Applying cream from outside to cure internal disease.BTM –Logical tester with in depth Technical skills.
  10. Automation Test Strategy / Automation Plan – only if its updated as per execution cycle.
  11. Selenium for functional or system testing of web applications. These tests are also sometimes called acceptance, customer, or integration tests.Selenium is not meant for unit testing
  12. Issues with Selenium Core
  13. Selenium IDEWalk through testsDebug and set breakpointsSave test in .java, .py filesSupport for Selenium user-extensions.js file
  14. Selenium IDEWalk through testsDebug and set breakpointsSave test in .java, .py filesSupport for Selenium user-extensions.js file
  15. Selenium IDEWalk through testsDebug and set breakpointsSave test in .java, .py filesSupport for Selenium user-extensions.js file