SlideShare a Scribd company logo
1 of 32
Download to read offline
Use Jenkins For Continuous Load Testing And Mobile Test Automation 
Frank Cohen’s presentation at STARWest 2014, Anaheim, California, USA 
October 1, 2014 
www.appvance.com 
Building mobile apps and Ajax apps effectively requires a blended approach to test automation. 
Frank Cohen, CTO/Founder at Appvance, shows how to leverage the best application performance test 
methodology with test tools to deliver excellent Ajax, iOS and Android apps. 
Learn how to: 
* Effectively choose a mobile testing method for Agile shops 
* Reduce costs by choosing the best tools (Appium, Jenkins, Appvance PerformanceCloud) 
* Scale-up your mobile testing to thousands of test suites automatically 
* The mix-and-match mobile testing methodology for just-in-time performance testing 
! fcohen@appvance.com
STARWest: Use Jenkins For Continuous 
Load Testing And Mobile Test Automation 
STARWest 2014 
October 15, 2014 
Frank Cohen, fcohen@appvance.com, (408) 364-5508
What We Will Talk About 
•Agile Methodology Expects Build, Deploy, Test Automation 
•A Continuous Integration Strategy 
•Ajax and Mobile Testing Methodology 
•Repurposing for Functional and Performance Testing 
•Becoming A CI Architect
Agile Methodology in a Process 
7-day Sprint 
Highest Priority 
Backlog of Changes, 
Improvements 
• App does not run on iOS 
• Rendering problems 
• UX fails at 45 users 
• Overnight reports needed 
Funding and 
Feedback 
Sprint Review 
Acceptance 
✓ Unit Tests Pass 
✓ Functional Tests Pass 
✓ Usability Tests Pass 
✓ Perf Under Load Pass 
✓ Stress Tests Completed 
✓ Production Monitor In Place 
Daily Work 
Release
Agile Without CI?
Why Do Continuous Integration? 
•It’s free and easy 
•Your Test Suites Take Longer Than “Overnight” To Run 
•High Risk App Launch 
•Software build/deploy/test plan of record (How do I?) 
•Easy to go from functional to performance testing 
•Keeps you productive, while long projects build/deploy/test
Why Avoid Continuous Integration 
•You Work In A Small Shop 
•Stakeholders Unable To Participate 
•No One To Manage Projects on Jenkins 
•One-shot project (build, launch, forget) 
•Deploy/Test Requires Human Intervention 
•Low Risk App Launches
Continuous DevOps 
•Continuous Integration 
• Dashboard To Testing 
•Continuous Deploy 
• Automatic app deployment 
•Continuous Testing 
• Regression on Commit 
• Repurpose for Load Tests 
Test CI Runtime 
Repository Tickets Monitor
How Do I Get Jenkins? 
•Run on Cloudbees (Fully Managed) 
•Run on AWS, IBM Softlayer (Self Managed) 
•Download and Run Internally (Self Managed) 
•Then, Plug-in Test As A Service Platform
CloudBees Jenkins Configuration
What Is The Measurement of Success 
•Functional Testing Defines End User Experience Success 
• Browser Compatibility, UX Latency, Configuration/Integration Problems 
•Performance Testing Identifies Business Risk To Launch 
• How Many People Are We Ready To Serve At Any Given Time 
•Stress Testing Identifies The Experience As The App Fails 
• International Bank App Showing Other User Details 
Testing Measures Business Risk 
Sprint Review 
Acceptance 
✓ Unit Tests Pass 
✓ Functional Tests Pass 
✓ Usability Tests Pass 
✓ Perf Under Load Pass 
✓ Stress Tests Completed 
✓ Production Monitor In Place
A Testing Strategy for You 
•Working With Today’s Apps, Pages, Tools 
• Serverless Architecture means pages that have state, workflow, communication 
• Real time analytics and immediate fix - at the same time 
• Extending tools to support new technology 
•Beginning To End Testing 
•Scaling Up Your Team’s Efforts 
• Higher Productivity 
• Test Management 
•Cost Effectiveness and Immediate Support
How Do I Get App Testing? 
•Ajax App Testing 
• Sahi, Selenium, WebDriver 
• Unit Testing more difficult, easier to maintain 
• JMeter does not work in Ajax 
•Mobile App Testing 
• Appium for iOS, Android 
• Unit Testing of REST and SOAP services using soapUI, HAR, JMeter 
• Others, very limited support and no repurposing to performance tests
Continuous DevOps In Practice 
Data Center Switches Testing 
svn, GIT 
TestNode 
4 
TestNode 
5 
APC Controller Oracle 
1 
Test 
Scenario 
1 
DPL, 
Logging
Scale Up To Multiple Teams 
Data Center Switches Testing 
svn, GIT 
TestNode 
4 
TestNode 
5 
APC Controller Oracle 
1 
Test 
Scenario 
1 
DPL, 
Logging 
TestNode 
2 
TestNode 
3 
APC Controller 
2 
Test 
Scenario 
2 
TestNode 
1 
Router Team Testing
Connect To Continuous Integration, Deployment 
Data Center Switches Testing 
svn, GIT 
TestNode 
4 
TestNode 
5 
APC Controller Oracle 
1 
Test 
Scenario 
1 
DPL, 
Logging 
TestNode 
2 
TestNode 
3 
APC Controller 
2 
Test 
Scenario 
2 
TestNode 
1
Executing Appium Tests from Jenkins 
#Start appium server 
appium_log=appium.log 
appium_cmd="node <REPLACE_WITH_APPIUM_PATH>/appium/lib/server/main.js" 
echo "[INFO] Appium command: $appium_cmd" 
$appium_cmd &> $appium_log& 
appium_pid=$! 
#check if appium was successfully started 
sleep 1 
appium_pid_start=`ps -p $appium_pid | grep node | awk '{ print $1 }'` 
if [ -z $appium_pid_start ] ; then 
echo "[ERROR] Appium failed to start! Port $appiumport may be already in use. " 
exit 1 
fi 
echo "[INFO] Appium started with pid: $appium_pid . Logging to: ${appium_log}" 
# be sure to kill appium on script stop 
trap "kill $appium_pid" SIGINT SIGTERM EXIT 
A 
B 
C
Why Treat Functional/Performance Tests Differently? 
•Repurposing Benefits 
• Single Test Scripts for All Testing 
• Pivot Back and Forth Rapidly 
• Natural for Continuous Integration and Automation 
•Performance Test 
• Run at Low, Medium, High Virtual User Levels 
• Scalability Index Report Answers Risk Questions
TestScenario Repurposing
Correlation To Back End Load
Backend Correlation
Strategy for Mobile Test Runtime 
•Run Test in Emulators (Mac and Android) 85% 
•Run Test in Real Devices 10% 
•Run Test with Real People 5% 
We’re going to run the test between 1-2 pm, 
get as many real people on it then
Become A CI Architect 
•Draw A Line From Business Risk To Your Integration Plan
How To Get Started 
•Attend Scrum Meetings, Ask A Few Questions 
•Ask The Business Manager for an App About Risks 
•Ask the Developers Where The Test Coverage Is Thin 
•Choose An Appropriate Test Script Authoring Tool 
•Write or Record A Test 
•Commit The Test to svn, CVS, other repository 
•Plug-in To CI and Maintain
Contents of a CI Plan 
•Identify the Parts 
• Beginning-To-End of User Experience, including Data 
• Units of App Function 
•Success/Fail Criteria 
• 50,000 User Transactions per 10 Minutes with less than 1% Errors 
• Functional Test on IE 8, Firefox 16, iOS 5 
•User Archetypes and Workflow 
•Performance Under Load and Stress
Need A CI Test Plan 
Template? 
Ask sales@appvance.com, it’s free
What We Covered Today 
•Agile Methodology Expects Build, Deploy, Test Automation 
•A Continuous Integration Strategy 
•Ajax and Mobile Testing Methodology 
•Repurposing for Functional and Performance Testing 
•Becoming A CI Architect
Are You Ready? 
•When You Build Modern Apps And Wonder 
“How Risky Is That App Launch Going To Be?” 
•Call Us At (855) 254-1164 
Or Email Us Sales@Appvance.Com 
And We Will Show You

More Related Content

What's hot

Learn Key Insights from The State of Web Application Testing Research Report
Learn Key Insights from The State of Web Application Testing Research ReportLearn Key Insights from The State of Web Application Testing Research Report
Learn Key Insights from The State of Web Application Testing Research ReportSencha
 
SOASTA CloudTest Lite
SOASTA CloudTest LiteSOASTA CloudTest Lite
SOASTA CloudTest LiteFred Beringer
 
Continuous Integration as a Way of Life
Continuous Integration as a Way of LifeContinuous Integration as a Way of Life
Continuous Integration as a Way of LifeMelissa Benua
 
Quality at Speed: More API Testing, Less UI Testing
Quality at Speed: More API Testing, Less UI TestingQuality at Speed: More API Testing, Less UI Testing
Quality at Speed: More API Testing, Less UI TestingSauce Labs
 
Managing Continuous Delivery of Mobile Apps - for the Enterprise
Managing Continuous Delivery of Mobile Apps - for the EnterpriseManaging Continuous Delivery of Mobile Apps - for the Enterprise
Managing Continuous Delivery of Mobile Apps - for the EnterpriseSauce Labs
 
Jenkins as the Test Reporting Framework
Jenkins as the Test Reporting FrameworkJenkins as the Test Reporting Framework
Jenkins as the Test Reporting FrameworkNitin Sharma
 
SauceCon 2017: Making Your Mobile App Automatable
SauceCon 2017: Making Your Mobile App AutomatableSauceCon 2017: Making Your Mobile App Automatable
SauceCon 2017: Making Your Mobile App AutomatableSauce Labs
 
[Webinar] Test First, Fail Fast - Simplifying the Tester's Transition to DevOps
[Webinar] Test First, Fail Fast - Simplifying the Tester's Transition to DevOps[Webinar] Test First, Fail Fast - Simplifying the Tester's Transition to DevOps
[Webinar] Test First, Fail Fast - Simplifying the Tester's Transition to DevOpsKMS Technology
 
How to Cover All Your Backend Testing Needs with API and UI Tests
How to Cover All Your Backend Testing Needs with API and UI TestsHow to Cover All Your Backend Testing Needs with API and UI Tests
How to Cover All Your Backend Testing Needs with API and UI TestsBlazeMeter
 
Sencha Roadshow 2017: Best Practices for Implementing Continuous Web App Testing
Sencha Roadshow 2017: Best Practices for Implementing Continuous Web App TestingSencha Roadshow 2017: Best Practices for Implementing Continuous Web App Testing
Sencha Roadshow 2017: Best Practices for Implementing Continuous Web App TestingSencha
 
Build your QA Pipeline using Serenity , Selenium WebDriver , Rest Assured and...
Build your QA Pipeline using Serenity , Selenium WebDriver , Rest Assured and...Build your QA Pipeline using Serenity , Selenium WebDriver , Rest Assured and...
Build your QA Pipeline using Serenity , Selenium WebDriver , Rest Assured and...Moataz Nabil
 
Visual Studio LightSwitch (Beta 1) Overview
Visual Studio LightSwitch (Beta 1) OverviewVisual Studio LightSwitch (Beta 1) Overview
Visual Studio LightSwitch (Beta 1) OverviewSteve Lange
 
The Key to DevOps? Testing Early in the Pipeline
The Key to DevOps? Testing Early in the PipelineThe Key to DevOps? Testing Early in the Pipeline
The Key to DevOps? Testing Early in the PipelineDevOps.com
 
Tests for Every Branch Using CircleCI and Sauce Labs to Continuously Test CS ...
Tests for Every Branch Using CircleCI and Sauce Labs to Continuously Test CS ...Tests for Every Branch Using CircleCI and Sauce Labs to Continuously Test CS ...
Tests for Every Branch Using CircleCI and Sauce Labs to Continuously Test CS ...Sauce Labs
 
Our DevOps Journey: 6 Month Waterfalls to 1 Hour Code Deploys
Our DevOps Journey: 6 Month Waterfalls to 1 Hour Code DeploysOur DevOps Journey: 6 Month Waterfalls to 1 Hour Code Deploys
Our DevOps Journey: 6 Month Waterfalls to 1 Hour Code DeploysDynatrace
 
CI/CD for mobile at HERE
CI/CD for mobile at HERECI/CD for mobile at HERE
CI/CD for mobile at HEREStefan Verhoeff
 
From 0 to DevOps in 80 Days [Webinar Replay]
From 0 to DevOps in 80 Days [Webinar Replay]From 0 to DevOps in 80 Days [Webinar Replay]
From 0 to DevOps in 80 Days [Webinar Replay]Dynatrace
 
Continuous Deployment of your Application @SpringOne
Continuous Deployment of your Application @SpringOneContinuous Deployment of your Application @SpringOne
Continuous Deployment of your Application @SpringOneciberkleid
 

What's hot (20)

Learn Key Insights from The State of Web Application Testing Research Report
Learn Key Insights from The State of Web Application Testing Research ReportLearn Key Insights from The State of Web Application Testing Research Report
Learn Key Insights from The State of Web Application Testing Research Report
 
SOASTA CloudTest Lite
SOASTA CloudTest LiteSOASTA CloudTest Lite
SOASTA CloudTest Lite
 
Continuous Integration as a Way of Life
Continuous Integration as a Way of LifeContinuous Integration as a Way of Life
Continuous Integration as a Way of Life
 
Quality at Speed: More API Testing, Less UI Testing
Quality at Speed: More API Testing, Less UI TestingQuality at Speed: More API Testing, Less UI Testing
Quality at Speed: More API Testing, Less UI Testing
 
Managing Continuous Delivery of Mobile Apps - for the Enterprise
Managing Continuous Delivery of Mobile Apps - for the EnterpriseManaging Continuous Delivery of Mobile Apps - for the Enterprise
Managing Continuous Delivery of Mobile Apps - for the Enterprise
 
Jenkins as the Test Reporting Framework
Jenkins as the Test Reporting FrameworkJenkins as the Test Reporting Framework
Jenkins as the Test Reporting Framework
 
CD
CDCD
CD
 
SauceCon 2017: Making Your Mobile App Automatable
SauceCon 2017: Making Your Mobile App AutomatableSauceCon 2017: Making Your Mobile App Automatable
SauceCon 2017: Making Your Mobile App Automatable
 
[Webinar] Test First, Fail Fast - Simplifying the Tester's Transition to DevOps
[Webinar] Test First, Fail Fast - Simplifying the Tester's Transition to DevOps[Webinar] Test First, Fail Fast - Simplifying the Tester's Transition to DevOps
[Webinar] Test First, Fail Fast - Simplifying the Tester's Transition to DevOps
 
How to Cover All Your Backend Testing Needs with API and UI Tests
How to Cover All Your Backend Testing Needs with API and UI TestsHow to Cover All Your Backend Testing Needs with API and UI Tests
How to Cover All Your Backend Testing Needs with API and UI Tests
 
Sencha Roadshow 2017: Best Practices for Implementing Continuous Web App Testing
Sencha Roadshow 2017: Best Practices for Implementing Continuous Web App TestingSencha Roadshow 2017: Best Practices for Implementing Continuous Web App Testing
Sencha Roadshow 2017: Best Practices for Implementing Continuous Web App Testing
 
Test automation process
Test automation processTest automation process
Test automation process
 
Build your QA Pipeline using Serenity , Selenium WebDriver , Rest Assured and...
Build your QA Pipeline using Serenity , Selenium WebDriver , Rest Assured and...Build your QA Pipeline using Serenity , Selenium WebDriver , Rest Assured and...
Build your QA Pipeline using Serenity , Selenium WebDriver , Rest Assured and...
 
Visual Studio LightSwitch (Beta 1) Overview
Visual Studio LightSwitch (Beta 1) OverviewVisual Studio LightSwitch (Beta 1) Overview
Visual Studio LightSwitch (Beta 1) Overview
 
The Key to DevOps? Testing Early in the Pipeline
The Key to DevOps? Testing Early in the PipelineThe Key to DevOps? Testing Early in the Pipeline
The Key to DevOps? Testing Early in the Pipeline
 
Tests for Every Branch Using CircleCI and Sauce Labs to Continuously Test CS ...
Tests for Every Branch Using CircleCI and Sauce Labs to Continuously Test CS ...Tests for Every Branch Using CircleCI and Sauce Labs to Continuously Test CS ...
Tests for Every Branch Using CircleCI and Sauce Labs to Continuously Test CS ...
 
Our DevOps Journey: 6 Month Waterfalls to 1 Hour Code Deploys
Our DevOps Journey: 6 Month Waterfalls to 1 Hour Code DeploysOur DevOps Journey: 6 Month Waterfalls to 1 Hour Code Deploys
Our DevOps Journey: 6 Month Waterfalls to 1 Hour Code Deploys
 
CI/CD for mobile at HERE
CI/CD for mobile at HERECI/CD for mobile at HERE
CI/CD for mobile at HERE
 
From 0 to DevOps in 80 Days [Webinar Replay]
From 0 to DevOps in 80 Days [Webinar Replay]From 0 to DevOps in 80 Days [Webinar Replay]
From 0 to DevOps in 80 Days [Webinar Replay]
 
Continuous Deployment of your Application @SpringOne
Continuous Deployment of your Application @SpringOneContinuous Deployment of your Application @SpringOne
Continuous Deployment of your Application @SpringOne
 

Viewers also liked

Continuous validation of load test suites
Continuous validation of load test suitesContinuous validation of load test suites
Continuous validation of load test suitesSAIL_QU
 
Continuous performance: Load testing for developers with gatling @ JavaOne 2016
Continuous performance: Load testing for developers with gatling @ JavaOne 2016Continuous performance: Load testing for developers with gatling @ JavaOne 2016
Continuous performance: Load testing for developers with gatling @ JavaOne 2016Tim van Eijndhoven
 
Performance Test Automation With Gatling
Performance Test Automation  With GatlingPerformance Test Automation  With Gatling
Performance Test Automation With GatlingKnoldus Inc.
 
Gatling @ Scala.Io 2013
Gatling @ Scala.Io 2013Gatling @ Scala.Io 2013
Gatling @ Scala.Io 2013slandelle
 
Choosing the Best Open Source Test Automation Tool for You
Choosing the Best Open Source Test Automation Tool for YouChoosing the Best Open Source Test Automation Tool for You
Choosing the Best Open Source Test Automation Tool for YouPerfecto by Perforce
 

Viewers also liked (6)

Continuous validation of load test suites
Continuous validation of load test suitesContinuous validation of load test suites
Continuous validation of load test suites
 
Continuous performance: Load testing for developers with gatling @ JavaOne 2016
Continuous performance: Load testing for developers with gatling @ JavaOne 2016Continuous performance: Load testing for developers with gatling @ JavaOne 2016
Continuous performance: Load testing for developers with gatling @ JavaOne 2016
 
Performance Test Automation With Gatling
Performance Test Automation  With GatlingPerformance Test Automation  With Gatling
Performance Test Automation With Gatling
 
Load test REST APIs using gatling
Load test REST APIs using gatlingLoad test REST APIs using gatling
Load test REST APIs using gatling
 
Gatling @ Scala.Io 2013
Gatling @ Scala.Io 2013Gatling @ Scala.Io 2013
Gatling @ Scala.Io 2013
 
Choosing the Best Open Source Test Automation Tool for You
Choosing the Best Open Source Test Automation Tool for YouChoosing the Best Open Source Test Automation Tool for You
Choosing the Best Open Source Test Automation Tool for You
 

Similar to STARWest: Use Jenkins For Continuous 
Load Testing And Mobile Test Automation

5 Steps to Jump Start Your Test Automation
5 Steps to Jump Start Your Test Automation5 Steps to Jump Start Your Test Automation
5 Steps to Jump Start Your Test AutomationSauce Labs
 
Mobile Automation with Appium
Mobile Automation with AppiumMobile Automation with Appium
Mobile Automation with AppiumManoj Kumar Kumar
 
Automated Testing Using Selenium
Automated Testing Using SeleniumAutomated Testing Using Selenium
Automated Testing Using SeleniumTechWell
 
4&5.pptx SOFTWARE TESTING UNIT-4 AND UNIT-5
4&5.pptx SOFTWARE TESTING UNIT-4 AND UNIT-54&5.pptx SOFTWARE TESTING UNIT-4 AND UNIT-5
4&5.pptx SOFTWARE TESTING UNIT-4 AND UNIT-5hemasubbu08
 
Neev Independent Testing Services
Neev Independent Testing ServicesNeev Independent Testing Services
Neev Independent Testing ServicesNeev Technologies
 
Top 5 automation testing tools to gear up website development
Top 5 automation testing tools to gear up website developmentTop 5 automation testing tools to gear up website development
Top 5 automation testing tools to gear up website developmentBJIT Ltd
 
Test automation lesson
Test automation lessonTest automation lesson
Test automation lessonSadaaki Emura
 
Appmotives - Software Testing As Service
Appmotives - Software Testing As ServiceAppmotives - Software Testing As Service
Appmotives - Software Testing As ServiceKalyan Paluri
 
Best Practices for DevOps in Mobile App Testing
Best Practices for DevOps in Mobile App TestingBest Practices for DevOps in Mobile App Testing
Best Practices for DevOps in Mobile App TestingBitbar
 
How to fit Performance Testing in Devops environment.pptx.pdf
How to fit Performance Testing in Devops environment.pptx.pdfHow to fit Performance Testing in Devops environment.pptx.pdf
How to fit Performance Testing in Devops environment.pptx.pdfKnoldus Inc.
 
AUTOMATION FRAMEWORK USING SELENIUM & TESTNG ALONG WITH MAVEN
AUTOMATION FRAMEWORK USING SELENIUM & TESTNG ALONG WITH MAVENAUTOMATION FRAMEWORK USING SELENIUM & TESTNG ALONG WITH MAVEN
AUTOMATION FRAMEWORK USING SELENIUM & TESTNG ALONG WITH MAVENSHASHI JAISWAL
 
Top Best Practices for Successful Mobile Test Automation
Top Best Practices for Successful Mobile Test AutomationTop Best Practices for Successful Mobile Test Automation
Top Best Practices for Successful Mobile Test AutomationFred Beringer
 
Aravind Java Selenium Automation- US
Aravind Java Selenium Automation- US Aravind Java Selenium Automation- US
Aravind Java Selenium Automation- US gbaravindkumar
 
Software Test Engineer with 3.6 years of experience
Software Test Engineer with 3.6 years of experienceSoftware Test Engineer with 3.6 years of experience
Software Test Engineer with 3.6 years of experiencevijaya lakshmi
 
Continuous Integration Testing for SAP
Continuous Integration Testing for SAPContinuous Integration Testing for SAP
Continuous Integration Testing for SAPWorksoft
 

Similar to STARWest: Use Jenkins For Continuous 
Load Testing And Mobile Test Automation (20)

5 Steps to Jump Start Your Test Automation
5 Steps to Jump Start Your Test Automation5 Steps to Jump Start Your Test Automation
5 Steps to Jump Start Your Test Automation
 
Mobile Automation with Appium
Mobile Automation with AppiumMobile Automation with Appium
Mobile Automation with Appium
 
Automated Testing Using Selenium
Automated Testing Using SeleniumAutomated Testing Using Selenium
Automated Testing Using Selenium
 
4&5.pptx SOFTWARE TESTING UNIT-4 AND UNIT-5
4&5.pptx SOFTWARE TESTING UNIT-4 AND UNIT-54&5.pptx SOFTWARE TESTING UNIT-4 AND UNIT-5
4&5.pptx SOFTWARE TESTING UNIT-4 AND UNIT-5
 
Neev Independent Testing Services
Neev Independent Testing ServicesNeev Independent Testing Services
Neev Independent Testing Services
 
Ashish Baraiya
Ashish BaraiyaAshish Baraiya
Ashish Baraiya
 
Top 5 automation testing tools to gear up website development
Top 5 automation testing tools to gear up website developmentTop 5 automation testing tools to gear up website development
Top 5 automation testing tools to gear up website development
 
Test automation lesson
Test automation lessonTest automation lesson
Test automation lesson
 
Code in the Cloud - December 8th 2014
Code in the Cloud - December 8th 2014Code in the Cloud - December 8th 2014
Code in the Cloud - December 8th 2014
 
Neev QA Offering
Neev QA OfferingNeev QA Offering
Neev QA Offering
 
GUI, Performance, Load and API testing with Test Studio
GUI, Performance, Load and API testing with Test StudioGUI, Performance, Load and API testing with Test Studio
GUI, Performance, Load and API testing with Test Studio
 
Appmotives - Software Testing As Service
Appmotives - Software Testing As ServiceAppmotives - Software Testing As Service
Appmotives - Software Testing As Service
 
Best Practices for DevOps in Mobile App Testing
Best Practices for DevOps in Mobile App TestingBest Practices for DevOps in Mobile App Testing
Best Practices for DevOps in Mobile App Testing
 
How to fit Performance Testing in Devops environment.pptx.pdf
How to fit Performance Testing in Devops environment.pptx.pdfHow to fit Performance Testing in Devops environment.pptx.pdf
How to fit Performance Testing in Devops environment.pptx.pdf
 
AUTOMATION FRAMEWORK USING SELENIUM & TESTNG ALONG WITH MAVEN
AUTOMATION FRAMEWORK USING SELENIUM & TESTNG ALONG WITH MAVENAUTOMATION FRAMEWORK USING SELENIUM & TESTNG ALONG WITH MAVEN
AUTOMATION FRAMEWORK USING SELENIUM & TESTNG ALONG WITH MAVEN
 
Top Best Practices for Successful Mobile Test Automation
Top Best Practices for Successful Mobile Test AutomationTop Best Practices for Successful Mobile Test Automation
Top Best Practices for Successful Mobile Test Automation
 
Aravind Java Selenium Automation- US
Aravind Java Selenium Automation- US Aravind Java Selenium Automation- US
Aravind Java Selenium Automation- US
 
Software Test Engineer with 3.6 years of experience
Software Test Engineer with 3.6 years of experienceSoftware Test Engineer with 3.6 years of experience
Software Test Engineer with 3.6 years of experience
 
Cloud for Agile Testing - Burak Koyuncu
Cloud for Agile Testing - Burak KoyuncuCloud for Agile Testing - Burak Koyuncu
Cloud for Agile Testing - Burak Koyuncu
 
Continuous Integration Testing for SAP
Continuous Integration Testing for SAPContinuous Integration Testing for SAP
Continuous Integration Testing for SAP
 

More from Clever Moe

6 solutions to ad costs going up while results are flat.
6 solutions to ad costs going up while results are flat.6 solutions to ad costs going up while results are flat.
6 solutions to ad costs going up while results are flat.Clever Moe
 
1.6 billion people are on Facebook, how will you get to the 1 that buys your ...
1.6 billion people are on Facebook, how will you get to the 1 that buys your ...1.6 billion people are on Facebook, how will you get to the 1 that buys your ...
1.6 billion people are on Facebook, how will you get to the 1 that buys your ...Clever Moe
 
How do I get good at Twitter Ads?
How do I get good at Twitter Ads?How do I get good at Twitter Ads?
How do I get good at Twitter Ads?Clever Moe
 
Marketing faster than your competitors in 5 easy steps
Marketing faster than your competitors in 5 easy stepsMarketing faster than your competitors in 5 easy steps
Marketing faster than your competitors in 5 easy stepsClever Moe
 
Local customers are out there, just where
Local customers are out there, just whereLocal customers are out there, just where
Local customers are out there, just whereClever Moe
 
Do i need an ad agency to be good at facebook ads
Do i need an ad agency to be good at facebook adsDo i need an ad agency to be good at facebook ads
Do i need an ad agency to be good at facebook adsClever Moe
 
I know facebook ads, how do i expand to twitter, linked in, youtube
I know facebook ads, how do i expand to twitter, linked in, youtubeI know facebook ads, how do i expand to twitter, linked in, youtube
I know facebook ads, how do i expand to twitter, linked in, youtubeClever Moe
 
5 solutions to the digital ad networks unsolvable puzzle
5 solutions to the digital ad networks unsolvable puzzle5 solutions to the digital ad networks unsolvable puzzle
5 solutions to the digital ad networks unsolvable puzzleClever Moe
 
Instagram ads look super complicated, what can i do in 15 minutes?
Instagram ads look super complicated, what can i do in 15 minutes?Instagram ads look super complicated, what can i do in 15 minutes?
Instagram ads look super complicated, what can i do in 15 minutes?Clever Moe
 
How to get 1,000 people to look at your product for $1,000
How to get 1,000 people to look at your product for $1,000How to get 1,000 people to look at your product for $1,000
How to get 1,000 people to look at your product for $1,000Clever Moe
 
Defending your ad budget from Facebook and LinkedIn AIs
Defending your ad budget from Facebook and LinkedIn AIsDefending your ad budget from Facebook and LinkedIn AIs
Defending your ad budget from Facebook and LinkedIn AIsClever Moe
 
Do i need an ad agency to be good at Facebook ads?
Do i need an ad agency to be good at Facebook ads?Do i need an ad agency to be good at Facebook ads?
Do i need an ad agency to be good at Facebook ads?Clever Moe
 
Marketing faster than your competitors in 5 easy steps
Marketing faster than your competitors in 5 easy stepsMarketing faster than your competitors in 5 easy steps
Marketing faster than your competitors in 5 easy stepsClever Moe
 
Making With A Disney Imagineer and Muppeteer
Making With A Disney Imagineer and MuppeteerMaking With A Disney Imagineer and Muppeteer
Making With A Disney Imagineer and MuppeteerClever Moe
 
Things I Heard At The TestKit 2014 Conference
Things I Heard At The TestKit 2014 ConferenceThings I Heard At The TestKit 2014 Conference
Things I Heard At The TestKit 2014 ConferenceClever Moe
 
TestMaker Object Designer Training - Basics
TestMaker Object Designer Training - BasicsTestMaker Object Designer Training - Basics
TestMaker Object Designer Training - BasicsClever Moe
 
What Is New In TestMaker 6.5
What Is New In TestMaker 6.5What Is New In TestMaker 6.5
What Is New In TestMaker 6.5Clever Moe
 
San Jose Selenium Meet-up PushToTest TestMaker Presentation
San Jose Selenium Meet-up PushToTest TestMaker PresentationSan Jose Selenium Meet-up PushToTest TestMaker Presentation
San Jose Selenium Meet-up PushToTest TestMaker PresentationClever Moe
 
Continuous Integration with TestMaker, Hudson, Jenkins, Bamboo
Continuous Integration with TestMaker, Hudson, Jenkins, BambooContinuous Integration with TestMaker, Hudson, Jenkins, Bamboo
Continuous Integration with TestMaker, Hudson, Jenkins, BambooClever Moe
 
OnDemand Cloud Testing
OnDemand Cloud TestingOnDemand Cloud Testing
OnDemand Cloud TestingClever Moe
 

More from Clever Moe (20)

6 solutions to ad costs going up while results are flat.
6 solutions to ad costs going up while results are flat.6 solutions to ad costs going up while results are flat.
6 solutions to ad costs going up while results are flat.
 
1.6 billion people are on Facebook, how will you get to the 1 that buys your ...
1.6 billion people are on Facebook, how will you get to the 1 that buys your ...1.6 billion people are on Facebook, how will you get to the 1 that buys your ...
1.6 billion people are on Facebook, how will you get to the 1 that buys your ...
 
How do I get good at Twitter Ads?
How do I get good at Twitter Ads?How do I get good at Twitter Ads?
How do I get good at Twitter Ads?
 
Marketing faster than your competitors in 5 easy steps
Marketing faster than your competitors in 5 easy stepsMarketing faster than your competitors in 5 easy steps
Marketing faster than your competitors in 5 easy steps
 
Local customers are out there, just where
Local customers are out there, just whereLocal customers are out there, just where
Local customers are out there, just where
 
Do i need an ad agency to be good at facebook ads
Do i need an ad agency to be good at facebook adsDo i need an ad agency to be good at facebook ads
Do i need an ad agency to be good at facebook ads
 
I know facebook ads, how do i expand to twitter, linked in, youtube
I know facebook ads, how do i expand to twitter, linked in, youtubeI know facebook ads, how do i expand to twitter, linked in, youtube
I know facebook ads, how do i expand to twitter, linked in, youtube
 
5 solutions to the digital ad networks unsolvable puzzle
5 solutions to the digital ad networks unsolvable puzzle5 solutions to the digital ad networks unsolvable puzzle
5 solutions to the digital ad networks unsolvable puzzle
 
Instagram ads look super complicated, what can i do in 15 minutes?
Instagram ads look super complicated, what can i do in 15 minutes?Instagram ads look super complicated, what can i do in 15 minutes?
Instagram ads look super complicated, what can i do in 15 minutes?
 
How to get 1,000 people to look at your product for $1,000
How to get 1,000 people to look at your product for $1,000How to get 1,000 people to look at your product for $1,000
How to get 1,000 people to look at your product for $1,000
 
Defending your ad budget from Facebook and LinkedIn AIs
Defending your ad budget from Facebook and LinkedIn AIsDefending your ad budget from Facebook and LinkedIn AIs
Defending your ad budget from Facebook and LinkedIn AIs
 
Do i need an ad agency to be good at Facebook ads?
Do i need an ad agency to be good at Facebook ads?Do i need an ad agency to be good at Facebook ads?
Do i need an ad agency to be good at Facebook ads?
 
Marketing faster than your competitors in 5 easy steps
Marketing faster than your competitors in 5 easy stepsMarketing faster than your competitors in 5 easy steps
Marketing faster than your competitors in 5 easy steps
 
Making With A Disney Imagineer and Muppeteer
Making With A Disney Imagineer and MuppeteerMaking With A Disney Imagineer and Muppeteer
Making With A Disney Imagineer and Muppeteer
 
Things I Heard At The TestKit 2014 Conference
Things I Heard At The TestKit 2014 ConferenceThings I Heard At The TestKit 2014 Conference
Things I Heard At The TestKit 2014 Conference
 
TestMaker Object Designer Training - Basics
TestMaker Object Designer Training - BasicsTestMaker Object Designer Training - Basics
TestMaker Object Designer Training - Basics
 
What Is New In TestMaker 6.5
What Is New In TestMaker 6.5What Is New In TestMaker 6.5
What Is New In TestMaker 6.5
 
San Jose Selenium Meet-up PushToTest TestMaker Presentation
San Jose Selenium Meet-up PushToTest TestMaker PresentationSan Jose Selenium Meet-up PushToTest TestMaker Presentation
San Jose Selenium Meet-up PushToTest TestMaker Presentation
 
Continuous Integration with TestMaker, Hudson, Jenkins, Bamboo
Continuous Integration with TestMaker, Hudson, Jenkins, BambooContinuous Integration with TestMaker, Hudson, Jenkins, Bamboo
Continuous Integration with TestMaker, Hudson, Jenkins, Bamboo
 
OnDemand Cloud Testing
OnDemand Cloud TestingOnDemand Cloud Testing
OnDemand Cloud Testing
 

STARWest: Use Jenkins For Continuous 
Load Testing And Mobile Test Automation

  • 1. Use Jenkins For Continuous Load Testing And Mobile Test Automation Frank Cohen’s presentation at STARWest 2014, Anaheim, California, USA October 1, 2014 www.appvance.com Building mobile apps and Ajax apps effectively requires a blended approach to test automation. Frank Cohen, CTO/Founder at Appvance, shows how to leverage the best application performance test methodology with test tools to deliver excellent Ajax, iOS and Android apps. Learn how to: * Effectively choose a mobile testing method for Agile shops * Reduce costs by choosing the best tools (Appium, Jenkins, Appvance PerformanceCloud) * Scale-up your mobile testing to thousands of test suites automatically * The mix-and-match mobile testing methodology for just-in-time performance testing ! fcohen@appvance.com
  • 2. STARWest: Use Jenkins For Continuous Load Testing And Mobile Test Automation STARWest 2014 October 15, 2014 Frank Cohen, fcohen@appvance.com, (408) 364-5508
  • 3. What We Will Talk About •Agile Methodology Expects Build, Deploy, Test Automation •A Continuous Integration Strategy •Ajax and Mobile Testing Methodology •Repurposing for Functional and Performance Testing •Becoming A CI Architect
  • 4.
  • 5. Agile Methodology in a Process 7-day Sprint Highest Priority Backlog of Changes, Improvements • App does not run on iOS • Rendering problems • UX fails at 45 users • Overnight reports needed Funding and Feedback Sprint Review Acceptance ✓ Unit Tests Pass ✓ Functional Tests Pass ✓ Usability Tests Pass ✓ Perf Under Load Pass ✓ Stress Tests Completed ✓ Production Monitor In Place Daily Work Release
  • 7. Why Do Continuous Integration? •It’s free and easy •Your Test Suites Take Longer Than “Overnight” To Run •High Risk App Launch •Software build/deploy/test plan of record (How do I?) •Easy to go from functional to performance testing •Keeps you productive, while long projects build/deploy/test
  • 8. Why Avoid Continuous Integration •You Work In A Small Shop •Stakeholders Unable To Participate •No One To Manage Projects on Jenkins •One-shot project (build, launch, forget) •Deploy/Test Requires Human Intervention •Low Risk App Launches
  • 9. Continuous DevOps •Continuous Integration • Dashboard To Testing •Continuous Deploy • Automatic app deployment •Continuous Testing • Regression on Commit • Repurpose for Load Tests Test CI Runtime Repository Tickets Monitor
  • 10. How Do I Get Jenkins? •Run on Cloudbees (Fully Managed) •Run on AWS, IBM Softlayer (Self Managed) •Download and Run Internally (Self Managed) •Then, Plug-in Test As A Service Platform
  • 12. What Is The Measurement of Success •Functional Testing Defines End User Experience Success • Browser Compatibility, UX Latency, Configuration/Integration Problems •Performance Testing Identifies Business Risk To Launch • How Many People Are We Ready To Serve At Any Given Time •Stress Testing Identifies The Experience As The App Fails • International Bank App Showing Other User Details Testing Measures Business Risk Sprint Review Acceptance ✓ Unit Tests Pass ✓ Functional Tests Pass ✓ Usability Tests Pass ✓ Perf Under Load Pass ✓ Stress Tests Completed ✓ Production Monitor In Place
  • 13. A Testing Strategy for You •Working With Today’s Apps, Pages, Tools • Serverless Architecture means pages that have state, workflow, communication • Real time analytics and immediate fix - at the same time • Extending tools to support new technology •Beginning To End Testing •Scaling Up Your Team’s Efforts • Higher Productivity • Test Management •Cost Effectiveness and Immediate Support
  • 14. How Do I Get App Testing? •Ajax App Testing • Sahi, Selenium, WebDriver • Unit Testing more difficult, easier to maintain • JMeter does not work in Ajax •Mobile App Testing • Appium for iOS, Android • Unit Testing of REST and SOAP services using soapUI, HAR, JMeter • Others, very limited support and no repurposing to performance tests
  • 15. Continuous DevOps In Practice Data Center Switches Testing svn, GIT TestNode 4 TestNode 5 APC Controller Oracle 1 Test Scenario 1 DPL, Logging
  • 16. Scale Up To Multiple Teams Data Center Switches Testing svn, GIT TestNode 4 TestNode 5 APC Controller Oracle 1 Test Scenario 1 DPL, Logging TestNode 2 TestNode 3 APC Controller 2 Test Scenario 2 TestNode 1 Router Team Testing
  • 17. Connect To Continuous Integration, Deployment Data Center Switches Testing svn, GIT TestNode 4 TestNode 5 APC Controller Oracle 1 Test Scenario 1 DPL, Logging TestNode 2 TestNode 3 APC Controller 2 Test Scenario 2 TestNode 1
  • 18. Executing Appium Tests from Jenkins #Start appium server appium_log=appium.log appium_cmd="node <REPLACE_WITH_APPIUM_PATH>/appium/lib/server/main.js" echo "[INFO] Appium command: $appium_cmd" $appium_cmd &> $appium_log& appium_pid=$! #check if appium was successfully started sleep 1 appium_pid_start=`ps -p $appium_pid | grep node | awk '{ print $1 }'` if [ -z $appium_pid_start ] ; then echo "[ERROR] Appium failed to start! Port $appiumport may be already in use. " exit 1 fi echo "[INFO] Appium started with pid: $appium_pid . Logging to: ${appium_log}" # be sure to kill appium on script stop trap "kill $appium_pid" SIGINT SIGTERM EXIT A B C
  • 19.
  • 20.
  • 21.
  • 22. Why Treat Functional/Performance Tests Differently? •Repurposing Benefits • Single Test Scripts for All Testing • Pivot Back and Forth Rapidly • Natural for Continuous Integration and Automation •Performance Test • Run at Low, Medium, High Virtual User Levels • Scalability Index Report Answers Risk Questions
  • 26. Strategy for Mobile Test Runtime •Run Test in Emulators (Mac and Android) 85% •Run Test in Real Devices 10% •Run Test with Real People 5% We’re going to run the test between 1-2 pm, get as many real people on it then
  • 27. Become A CI Architect •Draw A Line From Business Risk To Your Integration Plan
  • 28. How To Get Started •Attend Scrum Meetings, Ask A Few Questions •Ask The Business Manager for an App About Risks •Ask the Developers Where The Test Coverage Is Thin •Choose An Appropriate Test Script Authoring Tool •Write or Record A Test •Commit The Test to svn, CVS, other repository •Plug-in To CI and Maintain
  • 29. Contents of a CI Plan •Identify the Parts • Beginning-To-End of User Experience, including Data • Units of App Function •Success/Fail Criteria • 50,000 User Transactions per 10 Minutes with less than 1% Errors • Functional Test on IE 8, Firefox 16, iOS 5 •User Archetypes and Workflow •Performance Under Load and Stress
  • 30. Need A CI Test Plan Template? Ask sales@appvance.com, it’s free
  • 31. What We Covered Today •Agile Methodology Expects Build, Deploy, Test Automation •A Continuous Integration Strategy •Ajax and Mobile Testing Methodology •Repurposing for Functional and Performance Testing •Becoming A CI Architect
  • 32. Are You Ready? •When You Build Modern Apps And Wonder “How Risky Is That App Launch Going To Be?” •Call Us At (855) 254-1164 Or Email Us Sales@Appvance.Com And We Will Show You