SlideShare a Scribd company logo
Introduction to 
- Sajnikanth Suriyanarayanan 
Presented at AlbumPrinter QA Guild on 20th Nov 2014
Contents 
● Why Saucelabs? 
● Demo script 
● Using Sauce to run demo script 
● Introduction to holmium 
● Running script with holmium on sauce 
● Questions
Why Sauce?
... 
● Cross browser 
● Cross platform 
● Parallel testing 
● yada yada… 
There’s also Browserstack, Browsershots, 
Browserling etc.
Let’s get our hands dirty
Demo Setup & Intro 
sudo pip install nose selenium holmium.core 
git clone https://github.com/sajnikanth/sauce-demo 
● Setup 
○ Use local Firefox 
● Test Steps 
○ Go to Vistaprint Corp Page 
○ Click on “sign in” button 
○ On Login Page, enter username, password and login 
○ Check if “Welcome message is displayed” 
● Tear Down 
○ Quit Browser
Running Demo Script locally 
python tests/selenium_vistaprint_test.py 
or 
nosetests tests/selenium_vistaprint_test.py
Saucelabs Setup 
● Register at https://saucelabs.com 
○ Have username handy 
● Go to https://saucelabs.com/account 
● Get Access Key 
sudo pip install sauceclient
Demo Script on Sauce 
● Setup 
○ Check if sauce credentials are available during runtime 
■ Env - Windows & Chrome 
○ If credentials are not available 
■ Use local Firefox 
● Test Steps 
○ Go to Vistaprint Corp Page 
○ Click on “sign in” button 
○ On Login Page, enter username, password and login 
○ Check if “Welcome message is displayed” 
● Tear Down 
○ Check if sauce credentials are available during runtime 
■ Update results on Sauce 
○ Quit Browser
Running on Sauce 
nosetests tests/selenium_vistaprint_test.py  
-cred=<ENTER SAUCE USERNAME>:<ENTER SAUCE ACCESS KEY>
Demo Script with Holmium 
Holmium is a plugin for nosetests; can easily create page objects 
● Test Steps 
○ Go to <URL> 
○ Click on “sign in” button 
○ Login with <username> and <password> 
○ Check if “Welcome message is displayed” 
○ Update results on Saucelabs, if possible
...
Demo Script with Holmium on Sauce 
nosetests tests/holmium_vistaprint_test.py 
--with-holmium --holmium-browser=firefox 
--holmium-environment=http://vistaprint.com 
--holmium-remote=http://<ENTER SAUCE USERNAME>:<ENTER 
SAUCE ACCESS KEY>@ondemand.saucelabs.com:80/wd/hub 
--holmium-capabilities='{"platform":"OS X 10.10", 
"name":"vistaprint_login"}'
...
Recap 
● Demo script run locally on Firefox (hard-coded) 
● Demo script run on Sauce on Windows / 
Chrome (hard-coded) 
● Demo script with holmium on Sauce on OSX 
/ Firefox (command line parameter)
Questions? 
Resources 
● Presentation Link - http://j.mp/introduction-to-sauce 
● Demo Script 
● Holmium 
● Introduction to SauceLabs by Ryan Lane 
● BrowserStack vs Sauce Labs 
Contact 
● mail@sajnikanth.com

More Related Content

What's hot

Introduction to composer
Introduction to composerIntroduction to composer
Introduction to composer
Jino Hoàng
 
Jakarta WordPress Meetup #9: Introducing VVV 2
Jakarta WordPress Meetup #9: Introducing VVV 2Jakarta WordPress Meetup #9: Introducing VVV 2
Jakarta WordPress Meetup #9: Introducing VVV 2
WordPress
 
Frontend asset management with Bower and Gulp.js
Frontend asset management with Bower and Gulp.jsFrontend asset management with Bower and Gulp.js
Frontend asset management with Bower and Gulp.js
Renan Gonçalves
 
Autotests introduction - Codeception + PHP Basics
Autotests introduction - Codeception + PHP BasicsAutotests introduction - Codeception + PHP Basics
Autotests introduction - Codeception + PHP Basics
Artur Babyuk
 
GlotPress aka translate.wordpress.org
GlotPress aka translate.wordpress.orgGlotPress aka translate.wordpress.org
GlotPress aka translate.wordpress.org
Marko Heijnen
 
Lightning talk teaching php to kids with atk
Lightning talk teaching php to kids with atkLightning talk teaching php to kids with atk
Lightning talk teaching php to kids with atk
Romans Malinovskis
 
Q6 what have you learnt about technologies
Q6   what have you learnt about technologiesQ6   what have you learnt about technologies
Q6 what have you learnt about technologies
Alex Drury
 
Alt Dot Net Usergroup: Does the world end if you stop using Visual Studio?
Alt Dot Net Usergroup: Does the world end if you stop using Visual Studio?Alt Dot Net Usergroup: Does the world end if you stop using Visual Studio?
Alt Dot Net Usergroup: Does the world end if you stop using Visual Studio?
Garry Stewart
 
Designing a Conversational Intelligent Bot which can cook
Designing a Conversational Intelligent Bot which can cookDesigning a Conversational Intelligent Bot which can cook
Designing a Conversational Intelligent Bot which can cook
Kaushik Das
 
Automate your WordPress Workflow with Grunt.js
Automate your WordPress Workflow with Grunt.jsAutomate your WordPress Workflow with Grunt.js
Automate your WordPress Workflow with Grunt.js
Josh Lee
 
Modern Web Applications Utilizing HTML5 (Dev Con TLV 06-2013)
Modern Web Applications Utilizing HTML5 (Dev Con TLV 06-2013)Modern Web Applications Utilizing HTML5 (Dev Con TLV 06-2013)
Modern Web Applications Utilizing HTML5 (Dev Con TLV 06-2013)
Ido Green
 
Grunt understanding
Grunt understandingGrunt understanding
Grunt understanding
Khalid Khan
 
Time's Important - Let Task Management Save Yours
Time's Important - Let Task Management Save YoursTime's Important - Let Task Management Save Yours
Time's Important - Let Task Management Save Yours
James Bundey
 
Building plugins like a pro
Building plugins like a proBuilding plugins like a pro
Building plugins like a pro
Marko Heijnen
 
The bugfix confirmation loop - PyConFI 2013
The bugfix confirmation loop - PyConFI 2013The bugfix confirmation loop - PyConFI 2013
The bugfix confirmation loop - PyConFI 2013
Niklas Närhinen
 
Typescript - a JS superset
Typescript - a JS supersetTypescript - a JS superset
Typescript - a JS superset
Tyrone Allen
 
Cordova iOS Native Plugin Development
Cordova iOS Native Plugin DevelopmentCordova iOS Native Plugin Development
Cordova iOS Native Plugin Development
Josue Bustos
 
Coffee script part 2
Coffee script part 2Coffee script part 2
Coffee script part 2
max peng
 
Having your cake, and eating it too!
Having your cake, and eating it too!Having your cake, and eating it too!
Having your cake, and eating it too!
Gary Park
 
NativeScript: mobile app. no webview.
NativeScript: mobile app. no webview.NativeScript: mobile app. no webview.
NativeScript: mobile app. no webview.
Tomek Sułkowski
 

What's hot (20)

Introduction to composer
Introduction to composerIntroduction to composer
Introduction to composer
 
Jakarta WordPress Meetup #9: Introducing VVV 2
Jakarta WordPress Meetup #9: Introducing VVV 2Jakarta WordPress Meetup #9: Introducing VVV 2
Jakarta WordPress Meetup #9: Introducing VVV 2
 
Frontend asset management with Bower and Gulp.js
Frontend asset management with Bower and Gulp.jsFrontend asset management with Bower and Gulp.js
Frontend asset management with Bower and Gulp.js
 
Autotests introduction - Codeception + PHP Basics
Autotests introduction - Codeception + PHP BasicsAutotests introduction - Codeception + PHP Basics
Autotests introduction - Codeception + PHP Basics
 
GlotPress aka translate.wordpress.org
GlotPress aka translate.wordpress.orgGlotPress aka translate.wordpress.org
GlotPress aka translate.wordpress.org
 
Lightning talk teaching php to kids with atk
Lightning talk teaching php to kids with atkLightning talk teaching php to kids with atk
Lightning talk teaching php to kids with atk
 
Q6 what have you learnt about technologies
Q6   what have you learnt about technologiesQ6   what have you learnt about technologies
Q6 what have you learnt about technologies
 
Alt Dot Net Usergroup: Does the world end if you stop using Visual Studio?
Alt Dot Net Usergroup: Does the world end if you stop using Visual Studio?Alt Dot Net Usergroup: Does the world end if you stop using Visual Studio?
Alt Dot Net Usergroup: Does the world end if you stop using Visual Studio?
 
Designing a Conversational Intelligent Bot which can cook
Designing a Conversational Intelligent Bot which can cookDesigning a Conversational Intelligent Bot which can cook
Designing a Conversational Intelligent Bot which can cook
 
Automate your WordPress Workflow with Grunt.js
Automate your WordPress Workflow with Grunt.jsAutomate your WordPress Workflow with Grunt.js
Automate your WordPress Workflow with Grunt.js
 
Modern Web Applications Utilizing HTML5 (Dev Con TLV 06-2013)
Modern Web Applications Utilizing HTML5 (Dev Con TLV 06-2013)Modern Web Applications Utilizing HTML5 (Dev Con TLV 06-2013)
Modern Web Applications Utilizing HTML5 (Dev Con TLV 06-2013)
 
Grunt understanding
Grunt understandingGrunt understanding
Grunt understanding
 
Time's Important - Let Task Management Save Yours
Time's Important - Let Task Management Save YoursTime's Important - Let Task Management Save Yours
Time's Important - Let Task Management Save Yours
 
Building plugins like a pro
Building plugins like a proBuilding plugins like a pro
Building plugins like a pro
 
The bugfix confirmation loop - PyConFI 2013
The bugfix confirmation loop - PyConFI 2013The bugfix confirmation loop - PyConFI 2013
The bugfix confirmation loop - PyConFI 2013
 
Typescript - a JS superset
Typescript - a JS supersetTypescript - a JS superset
Typescript - a JS superset
 
Cordova iOS Native Plugin Development
Cordova iOS Native Plugin DevelopmentCordova iOS Native Plugin Development
Cordova iOS Native Plugin Development
 
Coffee script part 2
Coffee script part 2Coffee script part 2
Coffee script part 2
 
Having your cake, and eating it too!
Having your cake, and eating it too!Having your cake, and eating it too!
Having your cake, and eating it too!
 
NativeScript: mobile app. no webview.
NativeScript: mobile app. no webview.NativeScript: mobile app. no webview.
NativeScript: mobile app. no webview.
 

Similar to Introduction to saucelabs

Mobile Meow at Mobilism
Mobile Meow at MobilismMobile Meow at Mobilism
Mobile Meow at Mobilism
Greg Schechter
 
How to Personalize Product Demos
How to Personalize Product DemosHow to Personalize Product Demos
How to Personalize Product Demos
Consensus
 
Web testing with Selenium
Web testing with SeleniumWeb testing with Selenium
Web testing with Selenium
XBOSoft
 
JS Days Mobile Meow
JS Days Mobile MeowJS Days Mobile Meow
JS Days Mobile Meow
Greg Schechter
 
QA Fest 2018. Michał Buczko. Automated Security Scanning in Payment Industry
QA Fest 2018. Michał Buczko. Automated Security Scanning in Payment IndustryQA Fest 2018. Michał Buczko. Automated Security Scanning in Payment Industry
QA Fest 2018. Michał Buczko. Automated Security Scanning in Payment Industry
QAFest
 
Ways to Guarantee Nobody Misses Your Next Webinar
Ways to Guarantee Nobody Misses Your Next WebinarWays to Guarantee Nobody Misses Your Next Webinar
Ways to Guarantee Nobody Misses Your Next Webinar
William Marco Locañas
 
2014 09-10-12 Building Customer Profiles - Move from clicks to faces
2014 09-10-12 Building Customer Profiles - Move from clicks to faces2014 09-10-12 Building Customer Profiles - Move from clicks to faces
2014 09-10-12 Building Customer Profiles - Move from clicks to faces
Vinoaj Vijeyakumaar
 
Web DU Mobile Meow
Web DU Mobile MeowWeb DU Mobile Meow
Web DU Mobile Meow
Greg Schechter
 
WordPress ecommerce talk
WordPress ecommerce talkWordPress ecommerce talk
WordPress ecommerce talk
Josh Levinson
 
Web scraping 101 with goutte
Web scraping 101 with goutteWeb scraping 101 with goutte
Web scraping 101 with goutte
Joshua Copeland
 
Install WordPress plugin with ease
Install WordPress plugin with easeInstall WordPress plugin with ease
Install WordPress plugin with ease
WordPrax Ltd.
 
Slideshare Signingup
Slideshare SigningupSlideshare Signingup
Slideshare Signingup
AUT
 
Internet Broadcasting
Internet BroadcastingInternet Broadcasting
Internet Broadcasting
Edward Carr
 
The Importance of Maintenance
The Importance of MaintenanceThe Importance of Maintenance
The Importance of Maintenance
Michele Butcher-Jones
 
HOW TO USE JING
HOW TO USE JINGHOW TO USE JING
HOW TO USE JING
Ma. Sheryl Tapon
 
AgreeDo ..{ All about meeting }..
AgreeDo ..{ All about meeting }..AgreeDo ..{ All about meeting }..
AgreeDo ..{ All about meeting }..
u2916198
 
Developing word press professionally
Developing word press professionallyDeveloping word press professionally
Developing word press professionally
Austin Gil
 
Basic Plugin Recommendations to get your WordPress Website Started
Basic Plugin Recommendations to get your WordPress Website StartedBasic Plugin Recommendations to get your WordPress Website Started
Basic Plugin Recommendations to get your WordPress Website Started
Nile Flores
 
The power of accessibility (November, 2018)
The power of accessibility (November, 2018)The power of accessibility (November, 2018)
The power of accessibility (November, 2018)
Rachel M. Carmena
 
OSDC 2014: Schlomo Schapiro - Test Driven Infrastructure
OSDC 2014: Schlomo Schapiro -  Test Driven InfrastructureOSDC 2014: Schlomo Schapiro -  Test Driven Infrastructure
OSDC 2014: Schlomo Schapiro - Test Driven Infrastructure
NETWAYS
 

Similar to Introduction to saucelabs (20)

Mobile Meow at Mobilism
Mobile Meow at MobilismMobile Meow at Mobilism
Mobile Meow at Mobilism
 
How to Personalize Product Demos
How to Personalize Product DemosHow to Personalize Product Demos
How to Personalize Product Demos
 
Web testing with Selenium
Web testing with SeleniumWeb testing with Selenium
Web testing with Selenium
 
JS Days Mobile Meow
JS Days Mobile MeowJS Days Mobile Meow
JS Days Mobile Meow
 
QA Fest 2018. Michał Buczko. Automated Security Scanning in Payment Industry
QA Fest 2018. Michał Buczko. Automated Security Scanning in Payment IndustryQA Fest 2018. Michał Buczko. Automated Security Scanning in Payment Industry
QA Fest 2018. Michał Buczko. Automated Security Scanning in Payment Industry
 
Ways to Guarantee Nobody Misses Your Next Webinar
Ways to Guarantee Nobody Misses Your Next WebinarWays to Guarantee Nobody Misses Your Next Webinar
Ways to Guarantee Nobody Misses Your Next Webinar
 
2014 09-10-12 Building Customer Profiles - Move from clicks to faces
2014 09-10-12 Building Customer Profiles - Move from clicks to faces2014 09-10-12 Building Customer Profiles - Move from clicks to faces
2014 09-10-12 Building Customer Profiles - Move from clicks to faces
 
Web DU Mobile Meow
Web DU Mobile MeowWeb DU Mobile Meow
Web DU Mobile Meow
 
WordPress ecommerce talk
WordPress ecommerce talkWordPress ecommerce talk
WordPress ecommerce talk
 
Web scraping 101 with goutte
Web scraping 101 with goutteWeb scraping 101 with goutte
Web scraping 101 with goutte
 
Install WordPress plugin with ease
Install WordPress plugin with easeInstall WordPress plugin with ease
Install WordPress plugin with ease
 
Slideshare Signingup
Slideshare SigningupSlideshare Signingup
Slideshare Signingup
 
Internet Broadcasting
Internet BroadcastingInternet Broadcasting
Internet Broadcasting
 
The Importance of Maintenance
The Importance of MaintenanceThe Importance of Maintenance
The Importance of Maintenance
 
HOW TO USE JING
HOW TO USE JINGHOW TO USE JING
HOW TO USE JING
 
AgreeDo ..{ All about meeting }..
AgreeDo ..{ All about meeting }..AgreeDo ..{ All about meeting }..
AgreeDo ..{ All about meeting }..
 
Developing word press professionally
Developing word press professionallyDeveloping word press professionally
Developing word press professionally
 
Basic Plugin Recommendations to get your WordPress Website Started
Basic Plugin Recommendations to get your WordPress Website StartedBasic Plugin Recommendations to get your WordPress Website Started
Basic Plugin Recommendations to get your WordPress Website Started
 
The power of accessibility (November, 2018)
The power of accessibility (November, 2018)The power of accessibility (November, 2018)
The power of accessibility (November, 2018)
 
OSDC 2014: Schlomo Schapiro - Test Driven Infrastructure
OSDC 2014: Schlomo Schapiro -  Test Driven InfrastructureOSDC 2014: Schlomo Schapiro -  Test Driven Infrastructure
OSDC 2014: Schlomo Schapiro - Test Driven Infrastructure
 

Recently uploaded

Neo4j - Product Vision and Knowledge Graphs - GraphSummit Paris
Neo4j - Product Vision and Knowledge Graphs - GraphSummit ParisNeo4j - Product Vision and Knowledge Graphs - GraphSummit Paris
Neo4j - Product Vision and Knowledge Graphs - GraphSummit Paris
Neo4j
 
E-commerce Application Development Company.pdf
E-commerce Application Development Company.pdfE-commerce Application Development Company.pdf
E-commerce Application Development Company.pdf
Hornet Dynamics
 
Enterprise Resource Planning System in Telangana
Enterprise Resource Planning System in TelanganaEnterprise Resource Planning System in Telangana
Enterprise Resource Planning System in Telangana
NYGGS Automation Suite
 
LORRAINE ANDREI_LEQUIGAN_HOW TO USE WHATSAPP.pptx
LORRAINE ANDREI_LEQUIGAN_HOW TO USE WHATSAPP.pptxLORRAINE ANDREI_LEQUIGAN_HOW TO USE WHATSAPP.pptx
LORRAINE ANDREI_LEQUIGAN_HOW TO USE WHATSAPP.pptx
lorraineandreiamcidl
 
Fundamentals of Programming and Language Processors
Fundamentals of Programming and Language ProcessorsFundamentals of Programming and Language Processors
Fundamentals of Programming and Language Processors
Rakesh Kumar R
 
AI Pilot Review: The World’s First Virtual Assistant Marketing Suite
AI Pilot Review: The World’s First Virtual Assistant Marketing SuiteAI Pilot Review: The World’s First Virtual Assistant Marketing Suite
AI Pilot Review: The World’s First Virtual Assistant Marketing Suite
Google
 
ALGIT - Assembly Line for Green IT - Numbers, Data, Facts
ALGIT - Assembly Line for Green IT - Numbers, Data, FactsALGIT - Assembly Line for Green IT - Numbers, Data, Facts
ALGIT - Assembly Line for Green IT - Numbers, Data, Facts
Green Software Development
 
A Sighting of filterA in Typelevel Rite of Passage
A Sighting of filterA in Typelevel Rite of PassageA Sighting of filterA in Typelevel Rite of Passage
A Sighting of filterA in Typelevel Rite of Passage
Philip Schwarz
 
Introducing Crescat - Event Management Software for Venues, Festivals and Eve...
Introducing Crescat - Event Management Software for Venues, Festivals and Eve...Introducing Crescat - Event Management Software for Venues, Festivals and Eve...
Introducing Crescat - Event Management Software for Venues, Festivals and Eve...
Crescat
 
Codeigniter VS Cakephp Which is Better for Web Development.pdf
Codeigniter VS Cakephp Which is Better for Web Development.pdfCodeigniter VS Cakephp Which is Better for Web Development.pdf
Codeigniter VS Cakephp Which is Better for Web Development.pdf
Semiosis Software Private Limited
 
GOING AOT WITH GRAALVM FOR SPRING BOOT (SPRING IO)
GOING AOT WITH GRAALVM FOR  SPRING BOOT (SPRING IO)GOING AOT WITH GRAALVM FOR  SPRING BOOT (SPRING IO)
GOING AOT WITH GRAALVM FOR SPRING BOOT (SPRING IO)
Alina Yurenko
 
OpenMetadata Community Meeting - 5th June 2024
OpenMetadata Community Meeting - 5th June 2024OpenMetadata Community Meeting - 5th June 2024
OpenMetadata Community Meeting - 5th June 2024
OpenMetadata
 
APIs for Browser Automation (MoT Meetup 2024)
APIs for Browser Automation (MoT Meetup 2024)APIs for Browser Automation (MoT Meetup 2024)
APIs for Browser Automation (MoT Meetup 2024)
Boni García
 
Hand Rolled Applicative User Validation Code Kata
Hand Rolled Applicative User ValidationCode KataHand Rolled Applicative User ValidationCode Kata
Hand Rolled Applicative User Validation Code Kata
Philip Schwarz
 
Vitthal Shirke Java Microservices Resume.pdf
Vitthal Shirke Java Microservices Resume.pdfVitthal Shirke Java Microservices Resume.pdf
Vitthal Shirke Java Microservices Resume.pdf
Vitthal Shirke
 
2024 eCommerceDays Toulouse - Sylius 2.0.pdf
2024 eCommerceDays Toulouse - Sylius 2.0.pdf2024 eCommerceDays Toulouse - Sylius 2.0.pdf
2024 eCommerceDays Toulouse - Sylius 2.0.pdf
Łukasz Chruściel
 
SWEBOK and Education at FUSE Okinawa 2024
SWEBOK and Education at FUSE Okinawa 2024SWEBOK and Education at FUSE Okinawa 2024
SWEBOK and Education at FUSE Okinawa 2024
Hironori Washizaki
 
Orion Context Broker introduction 20240604
Orion Context Broker introduction 20240604Orion Context Broker introduction 20240604
Orion Context Broker introduction 20240604
Fermin Galan
 
Cracking the code review at SpringIO 2024
Cracking the code review at SpringIO 2024Cracking the code review at SpringIO 2024
Cracking the code review at SpringIO 2024
Paco van Beckhoven
 
A Study of Variable-Role-based Feature Enrichment in Neural Models of Code
A Study of Variable-Role-based Feature Enrichment in Neural Models of CodeA Study of Variable-Role-based Feature Enrichment in Neural Models of Code
A Study of Variable-Role-based Feature Enrichment in Neural Models of Code
Aftab Hussain
 

Recently uploaded (20)

Neo4j - Product Vision and Knowledge Graphs - GraphSummit Paris
Neo4j - Product Vision and Knowledge Graphs - GraphSummit ParisNeo4j - Product Vision and Knowledge Graphs - GraphSummit Paris
Neo4j - Product Vision and Knowledge Graphs - GraphSummit Paris
 
E-commerce Application Development Company.pdf
E-commerce Application Development Company.pdfE-commerce Application Development Company.pdf
E-commerce Application Development Company.pdf
 
Enterprise Resource Planning System in Telangana
Enterprise Resource Planning System in TelanganaEnterprise Resource Planning System in Telangana
Enterprise Resource Planning System in Telangana
 
LORRAINE ANDREI_LEQUIGAN_HOW TO USE WHATSAPP.pptx
LORRAINE ANDREI_LEQUIGAN_HOW TO USE WHATSAPP.pptxLORRAINE ANDREI_LEQUIGAN_HOW TO USE WHATSAPP.pptx
LORRAINE ANDREI_LEQUIGAN_HOW TO USE WHATSAPP.pptx
 
Fundamentals of Programming and Language Processors
Fundamentals of Programming and Language ProcessorsFundamentals of Programming and Language Processors
Fundamentals of Programming and Language Processors
 
AI Pilot Review: The World’s First Virtual Assistant Marketing Suite
AI Pilot Review: The World’s First Virtual Assistant Marketing SuiteAI Pilot Review: The World’s First Virtual Assistant Marketing Suite
AI Pilot Review: The World’s First Virtual Assistant Marketing Suite
 
ALGIT - Assembly Line for Green IT - Numbers, Data, Facts
ALGIT - Assembly Line for Green IT - Numbers, Data, FactsALGIT - Assembly Line for Green IT - Numbers, Data, Facts
ALGIT - Assembly Line for Green IT - Numbers, Data, Facts
 
A Sighting of filterA in Typelevel Rite of Passage
A Sighting of filterA in Typelevel Rite of PassageA Sighting of filterA in Typelevel Rite of Passage
A Sighting of filterA in Typelevel Rite of Passage
 
Introducing Crescat - Event Management Software for Venues, Festivals and Eve...
Introducing Crescat - Event Management Software for Venues, Festivals and Eve...Introducing Crescat - Event Management Software for Venues, Festivals and Eve...
Introducing Crescat - Event Management Software for Venues, Festivals and Eve...
 
Codeigniter VS Cakephp Which is Better for Web Development.pdf
Codeigniter VS Cakephp Which is Better for Web Development.pdfCodeigniter VS Cakephp Which is Better for Web Development.pdf
Codeigniter VS Cakephp Which is Better for Web Development.pdf
 
GOING AOT WITH GRAALVM FOR SPRING BOOT (SPRING IO)
GOING AOT WITH GRAALVM FOR  SPRING BOOT (SPRING IO)GOING AOT WITH GRAALVM FOR  SPRING BOOT (SPRING IO)
GOING AOT WITH GRAALVM FOR SPRING BOOT (SPRING IO)
 
OpenMetadata Community Meeting - 5th June 2024
OpenMetadata Community Meeting - 5th June 2024OpenMetadata Community Meeting - 5th June 2024
OpenMetadata Community Meeting - 5th June 2024
 
APIs for Browser Automation (MoT Meetup 2024)
APIs for Browser Automation (MoT Meetup 2024)APIs for Browser Automation (MoT Meetup 2024)
APIs for Browser Automation (MoT Meetup 2024)
 
Hand Rolled Applicative User Validation Code Kata
Hand Rolled Applicative User ValidationCode KataHand Rolled Applicative User ValidationCode Kata
Hand Rolled Applicative User Validation Code Kata
 
Vitthal Shirke Java Microservices Resume.pdf
Vitthal Shirke Java Microservices Resume.pdfVitthal Shirke Java Microservices Resume.pdf
Vitthal Shirke Java Microservices Resume.pdf
 
2024 eCommerceDays Toulouse - Sylius 2.0.pdf
2024 eCommerceDays Toulouse - Sylius 2.0.pdf2024 eCommerceDays Toulouse - Sylius 2.0.pdf
2024 eCommerceDays Toulouse - Sylius 2.0.pdf
 
SWEBOK and Education at FUSE Okinawa 2024
SWEBOK and Education at FUSE Okinawa 2024SWEBOK and Education at FUSE Okinawa 2024
SWEBOK and Education at FUSE Okinawa 2024
 
Orion Context Broker introduction 20240604
Orion Context Broker introduction 20240604Orion Context Broker introduction 20240604
Orion Context Broker introduction 20240604
 
Cracking the code review at SpringIO 2024
Cracking the code review at SpringIO 2024Cracking the code review at SpringIO 2024
Cracking the code review at SpringIO 2024
 
A Study of Variable-Role-based Feature Enrichment in Neural Models of Code
A Study of Variable-Role-based Feature Enrichment in Neural Models of CodeA Study of Variable-Role-based Feature Enrichment in Neural Models of Code
A Study of Variable-Role-based Feature Enrichment in Neural Models of Code
 

Introduction to saucelabs

  • 1. Introduction to - Sajnikanth Suriyanarayanan Presented at AlbumPrinter QA Guild on 20th Nov 2014
  • 2. Contents ● Why Saucelabs? ● Demo script ● Using Sauce to run demo script ● Introduction to holmium ● Running script with holmium on sauce ● Questions
  • 4. ... ● Cross browser ● Cross platform ● Parallel testing ● yada yada… There’s also Browserstack, Browsershots, Browserling etc.
  • 5. Let’s get our hands dirty
  • 6. Demo Setup & Intro sudo pip install nose selenium holmium.core git clone https://github.com/sajnikanth/sauce-demo ● Setup ○ Use local Firefox ● Test Steps ○ Go to Vistaprint Corp Page ○ Click on “sign in” button ○ On Login Page, enter username, password and login ○ Check if “Welcome message is displayed” ● Tear Down ○ Quit Browser
  • 7. Running Demo Script locally python tests/selenium_vistaprint_test.py or nosetests tests/selenium_vistaprint_test.py
  • 8. Saucelabs Setup ● Register at https://saucelabs.com ○ Have username handy ● Go to https://saucelabs.com/account ● Get Access Key sudo pip install sauceclient
  • 9. Demo Script on Sauce ● Setup ○ Check if sauce credentials are available during runtime ■ Env - Windows & Chrome ○ If credentials are not available ■ Use local Firefox ● Test Steps ○ Go to Vistaprint Corp Page ○ Click on “sign in” button ○ On Login Page, enter username, password and login ○ Check if “Welcome message is displayed” ● Tear Down ○ Check if sauce credentials are available during runtime ■ Update results on Sauce ○ Quit Browser
  • 10. Running on Sauce nosetests tests/selenium_vistaprint_test.py -cred=<ENTER SAUCE USERNAME>:<ENTER SAUCE ACCESS KEY>
  • 11. Demo Script with Holmium Holmium is a plugin for nosetests; can easily create page objects ● Test Steps ○ Go to <URL> ○ Click on “sign in” button ○ Login with <username> and <password> ○ Check if “Welcome message is displayed” ○ Update results on Saucelabs, if possible
  • 12. ...
  • 13. Demo Script with Holmium on Sauce nosetests tests/holmium_vistaprint_test.py --with-holmium --holmium-browser=firefox --holmium-environment=http://vistaprint.com --holmium-remote=http://<ENTER SAUCE USERNAME>:<ENTER SAUCE ACCESS KEY>@ondemand.saucelabs.com:80/wd/hub --holmium-capabilities='{"platform":"OS X 10.10", "name":"vistaprint_login"}'
  • 14. ...
  • 15. Recap ● Demo script run locally on Firefox (hard-coded) ● Demo script run on Sauce on Windows / Chrome (hard-coded) ● Demo script with holmium on Sauce on OSX / Firefox (command line parameter)
  • 16. Questions? Resources ● Presentation Link - http://j.mp/introduction-to-sauce ● Demo Script ● Holmium ● Introduction to SauceLabs by Ryan Lane ● BrowserStack vs Sauce Labs Contact ● mail@sajnikanth.com