SlideShare a Scribd company logo
Cross Browser testing JavaScript
Alan Parkinson
CEO, Hindsight Software Ltd
@alan_parkinson
Cross browser Testing JavaScript
You don’t need to run your Selenium Test
suite with every browser*
The Truth
• No visual testing
• Low JavaScript code coverage
• Costly to improve coverage
Rendering Compatibility
JavaScript/DOM Compatibility
What do we achieve?
• JavaScript and DOM compatibility
• Good code coverage
• Reusing a development artifact
Run all JavaScript unit tests cross browser
Simple Answer
• Average Test: 8 Seconds
• Test Suite: 5 minutes
• Average Test: 0.1 seconds
• Test suite: 11 seconds
Functional Tests
JavaScript Unit Tests
Looking at the numbers
Do we meet our compatibility objective?
Code Coverage has a use
• Too many JavaScript files
• Order of loading files
Not everything will be picked up by Unit
Tests
*The qualifier
Only run critical functional tests cross-
browser
JAVASCRIPT TEST RUNNERS
Reusing your Selenium infrastructure
• Testing Framework Agnostic
• Continuous Integration
• Code coverage with Instanbul
• Launch Browsers
• Manually connect browsers
Spectacular Test Runner for JavaScript
Real Browsers
Karma
• Connects Remote WebDriver Instances
• Selenium Grid 2
• Supports Desired Capabilities
Reusing your Selenium Infrastructure
Karma WebDriver Launcher
Karma in action
$ npm install -g karma
$ npm install -g karma-webdriver-launcher
Continuous Integration
Override karma.conf.js from the command line
singleRun: true
reporters: [‘junit’]
• Code Coverage
• Feedback time
• Meeting our objective - Compatibility
• Karma Runner
• Use your existing WebDriver infrastructure
• Use code coverage to validate the majority of your code
is compatibility tested.
Functional tests have poor performance:
Cross-browser unit test JavaScript
Summary
http://karma-runner.github.io/
https://github.com/hindsightsoftware/karma-
webdriver-example
Thank you
Alan Parkinson
@alan_parkinson

More Related Content

PPTX
Decapitating Selenium with JavaScript
PPTX
Cross browser testing
PPTX
Guide To Effective Cross Browser Testing
PPTX
How To Automate Cross Browser Testing
PPTX
Cross browser testing
PDF
Selenium and Sauce Labs
PPTX
Continuous Testing in the Cloud
PPT
Selenium
Decapitating Selenium with JavaScript
Cross browser testing
Guide To Effective Cross Browser Testing
How To Automate Cross Browser Testing
Cross browser testing
Selenium and Sauce Labs
Continuous Testing in the Cloud
Selenium

What's hot (20)

PPTX
Selenium
PPTX
Get Started With Selenium 3 and Selenium 3 Grid
PPTX
Async webdriverjs
PPT
Selenium 2: The Future of Selenium is now!
PDF
Using Selenium 3 0
PDF
Automated Web Testing With Selenium
PPT
Selenium By Pravin Mishra
PDF
Cypress - Best Practices
PDF
Automated testing with Cypress
PDF
Jenkins & Selenium
PDF
Automatic Functional Testing with Selenium and SauceLabs
PDF
Automated-Testing-inside-containers
KEY
Testing with Jenkins, Selenium and Continuous Deployment
PPT
Selenium
PPT
Selenium
PDF
Web automation using selenium.ppt
PPTX
Selenium Web Driver Tutorial for Cross Browser Testing
PPTX
Run Selenium Tests With Jenkins and BrowseEmAll
PPTX
Progressive Web App Testing With Cypress.io
PPT
Selenium (1)
Selenium
Get Started With Selenium 3 and Selenium 3 Grid
Async webdriverjs
Selenium 2: The Future of Selenium is now!
Using Selenium 3 0
Automated Web Testing With Selenium
Selenium By Pravin Mishra
Cypress - Best Practices
Automated testing with Cypress
Jenkins & Selenium
Automatic Functional Testing with Selenium and SauceLabs
Automated-Testing-inside-containers
Testing with Jenkins, Selenium and Continuous Deployment
Selenium
Selenium
Web automation using selenium.ppt
Selenium Web Driver Tutorial for Cross Browser Testing
Run Selenium Tests With Jenkins and BrowseEmAll
Progressive Web App Testing With Cypress.io
Selenium (1)
Ad

Viewers also liked (6)

PDF
A Introduction to the World of Node, Javascript & Selenium
PPTX
Blood transfusion
PPTX
Compatibility testing
PPTX
Blood grouping and crosss matching
PPTX
Compatibility testing
PPTX
Blood transfusion skills
A Introduction to the World of Node, Javascript & Selenium
Blood transfusion
Compatibility testing
Blood grouping and crosss matching
Compatibility testing
Blood transfusion skills
Ad

Similar to Cross browser Testing JavaScript (20)

PPTX
Cross-browser unit testing JavaScript
PPTX
SenchaCon 2016: The Changing Landscape of JavaScript Testing - Joel Watson an...
PPTX
Test automation proposal
PDF
selenium meetup sf talk march 2014 Selenium at Scale
PPTX
PPTX
Automated ui-testing
PDF
Salesforce selenium-saucelabs-webinar-april-2014
PDF
Selenium at Salesforce Scale
PPTX
Selenium practical
PDF
Automated Testing in DevOps
PPTX
test-automation-selenium-160216124839.pptx
PDF
Lesson_06_Software_and_Automation_Testing_Frameworks.pdf
PPSX
Selenium - Introduction
PPTX
Selenium - Introduction
PPTX
Selenium
PPTX
PPTX
Test Automation and Selenium
PDF
Sencha Roadshow 2017: What's New in Sencha Test
PPTX
MyHeritage - QA Automations in a Continuous Deployment environment
PPTX
Tools for Software Testing
Cross-browser unit testing JavaScript
SenchaCon 2016: The Changing Landscape of JavaScript Testing - Joel Watson an...
Test automation proposal
selenium meetup sf talk march 2014 Selenium at Scale
Automated ui-testing
Salesforce selenium-saucelabs-webinar-april-2014
Selenium at Salesforce Scale
Selenium practical
Automated Testing in DevOps
test-automation-selenium-160216124839.pptx
Lesson_06_Software_and_Automation_Testing_Frameworks.pdf
Selenium - Introduction
Selenium - Introduction
Selenium
Test Automation and Selenium
Sencha Roadshow 2017: What's New in Sencha Test
MyHeritage - QA Automations in a Continuous Deployment environment
Tools for Software Testing

More from Alan Parkinson (12)

PPTX
Test Data Builder Pattern
PPTX
Testing requirements with BDD
PPTX
Baking in the cloud with packer and puppet
PPTX
Pull requests and testers can be friends
PPTX
What is Continuous Delivery?
PPTX
Why we used Feature Branching
PPTX
Test automation with Cucumber-JVM
PPTX
A Quick overview of Behaviour Driven Development (BDD)
PPTX
Creating data with the test data builder pattern
PPTX
Acceptance test styles - Imperative vs Declarative
PPTX
Continuous Deployment Pipeline with maven
PPTX
Feature branching a release day painkiller
Test Data Builder Pattern
Testing requirements with BDD
Baking in the cloud with packer and puppet
Pull requests and testers can be friends
What is Continuous Delivery?
Why we used Feature Branching
Test automation with Cucumber-JVM
A Quick overview of Behaviour Driven Development (BDD)
Creating data with the test data builder pattern
Acceptance test styles - Imperative vs Declarative
Continuous Deployment Pipeline with maven
Feature branching a release day painkiller

Recently uploaded (20)

PPTX
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
PPTX
MYSQL Presentation for SQL database connectivity
PDF
Reach Out and Touch Someone: Haptics and Empathic Computing
PPTX
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
PPTX
Big Data Technologies - Introduction.pptx
PDF
Diabetes mellitus diagnosis method based random forest with bat algorithm
PPT
Teaching material agriculture food technology
PDF
NewMind AI Monthly Chronicles - July 2025
PPTX
20250228 LYD VKU AI Blended-Learning.pptx
PDF
Empathic Computing: Creating Shared Understanding
PDF
Machine learning based COVID-19 study performance prediction
PDF
Per capita expenditure prediction using model stacking based on satellite ima...
PDF
Bridging biosciences and deep learning for revolutionary discoveries: a compr...
PPT
“AI and Expert System Decision Support & Business Intelligence Systems”
PPTX
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
DOCX
The AUB Centre for AI in Media Proposal.docx
PDF
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
PDF
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
PPTX
Understanding_Digital_Forensics_Presentation.pptx
PDF
Dropbox Q2 2025 Financial Results & Investor Presentation
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
MYSQL Presentation for SQL database connectivity
Reach Out and Touch Someone: Haptics and Empathic Computing
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
Big Data Technologies - Introduction.pptx
Diabetes mellitus diagnosis method based random forest with bat algorithm
Teaching material agriculture food technology
NewMind AI Monthly Chronicles - July 2025
20250228 LYD VKU AI Blended-Learning.pptx
Empathic Computing: Creating Shared Understanding
Machine learning based COVID-19 study performance prediction
Per capita expenditure prediction using model stacking based on satellite ima...
Bridging biosciences and deep learning for revolutionary discoveries: a compr...
“AI and Expert System Decision Support & Business Intelligence Systems”
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
The AUB Centre for AI in Media Proposal.docx
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
Understanding_Digital_Forensics_Presentation.pptx
Dropbox Q2 2025 Financial Results & Investor Presentation

Cross browser Testing JavaScript

Editor's Notes

  • #3: Start-upFollow Learn Start-upBuilt a MVP on top of JIRA – Consequence is customers install on there own hardwareWe pratitice CD during product development and always looking to get feature into customers handsMobile app developers may face similar issues to us as there are many parallels