SlideShare a Scribd company logo
Use Jenkins For Continuous Load Testing And Mobile Test Automation 
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
Use Jenkins For Continuous Load Testing 
And Mobile Test Automation 
October 1, 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
Use Jenkins For Continuous Load Testing And Mobile Test Automation
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
Ajax Record and Playback
Appium Record/Playback in Mobile
SOAP, REST TestSuites
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) 90% 
•Run Test in Real Devices 10% 
•Run Test with Real People 5% 
•Balance The Results 
•Business Risk Analysis = Ready To Launch 
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

PDF
Continuous Integration, Deploy, Test From Beginning To End 2014
PDF
Deeper Root Cause Analysis to App Performance Bottlenecks with Appvance APM I...
PDF
STARWest: Use Jenkins For Continuous 
Load Testing And Mobile Test Automation
PDF
Testing Ajax, Mobile Apps the Agile Way
PDF
Running JMeter Tests In Appvance PerformanceCloud
PDF
CloudBees Continuous Integration and Test with Appvance PerformanceCloud
PDF
Continuous Testing Odyssey: Learn Best Practices for End-to-End Web App Testing
PDF
Simplify Salesforce Testing with AI-Driven Codeless Tools
Continuous Integration, Deploy, Test From Beginning To End 2014
Deeper Root Cause Analysis to App Performance Bottlenecks with Appvance APM I...
STARWest: Use Jenkins For Continuous 
Load Testing And Mobile Test Automation
Testing Ajax, Mobile Apps the Agile Way
Running JMeter Tests In Appvance PerformanceCloud
CloudBees Continuous Integration and Test with Appvance PerformanceCloud
Continuous Testing Odyssey: Learn Best Practices for End-to-End Web App Testing
Simplify Salesforce Testing with AI-Driven Codeless Tools

What's hot (18)

PDF
SauceCon 2017: Making Your Mobile App Automatable
PDF
SOASTA CloudTest Lite
PDF
Quality at Speed: More API Testing, Less UI Testing
PDF
Learn Key Insights from The State of Web Application Testing Research Report
PPTX
Managing Continuous Delivery of Mobile Apps - for the Enterprise
PDF
[Webinar] Test First, Fail Fast - Simplifying the Tester's Transition to DevOps
PPTX
Continuous Integration as a Way of Life
PDF
SauceCon 2017: Testing @ the Speed of Concurrency
PDF
SauceCon 2017: test.allTheThings(): Digital Edition
PPTX
How to Cover All Your Backend Testing Needs with API and UI Tests
PPTX
Jenkins as the Test Reporting Framework
PDF
SauceCon 2017: Building a Continuous Delivery Pipeline with Testing in Mind
PPTX
Appium vs Espresso and XCUI Test
PDF
Tests for Every Branch Using CircleCI and Sauce Labs to Continuously Test CS ...
PPTX
Visual Studio LightSwitch (Beta 1) Overview
PPTX
Whitebox Testing for Blackbox Testers: Simplifying API Testing
PPTX
Continuous delivery mobile application development
SauceCon 2017: Making Your Mobile App Automatable
SOASTA CloudTest Lite
Quality at Speed: More API Testing, Less UI Testing
Learn Key Insights from The State of Web Application Testing Research Report
Managing Continuous Delivery of Mobile Apps - for the Enterprise
[Webinar] Test First, Fail Fast - Simplifying the Tester's Transition to DevOps
Continuous Integration as a Way of Life
SauceCon 2017: Testing @ the Speed of Concurrency
SauceCon 2017: test.allTheThings(): Digital Edition
How to Cover All Your Backend Testing Needs with API and UI Tests
Jenkins as the Test Reporting Framework
SauceCon 2017: Building a Continuous Delivery Pipeline with Testing in Mind
Appium vs Espresso and XCUI Test
Tests for Every Branch Using CircleCI and Sauce Labs to Continuously Test CS ...
Visual Studio LightSwitch (Beta 1) Overview
Whitebox Testing for Blackbox Testers: Simplifying API Testing
Continuous delivery mobile application development
Ad

Viewers also liked (15)

DOCX
Jenkins/Jmeter Configuration - Colombo Performance Test Meetup - 2016 April
PDF
StresStimulus Load Testing Tool User Guide
PDF
Things I Heard At The TestKit 2014 Conference
PPTX
Using JMeter in CloudTest for Continuous Testing
PPT
Performance testing and reporting with JMeter
PPTX
Introduction - #ATAGTR2016
PPTX
Continuous Performance Testing with Taurus and Jmeter
PPT
Continuous Integration (Jenkins/Hudson)
PDF
Masters of SlideShare
PDF
What Makes Great Infographics
PDF
STOP! VIEW THIS! 10-Step Checklist When Uploading to Slideshare
PDF
10 Ways to Win at SlideShare SEO & Presentation Optimization
PDF
How To Get More From SlideShare - Super-Simple Tips For Content Marketing
PDF
You Suck At PowerPoint!
PDF
How to Make Awesome SlideShares: Tips & Tricks
Jenkins/Jmeter Configuration - Colombo Performance Test Meetup - 2016 April
StresStimulus Load Testing Tool User Guide
Things I Heard At The TestKit 2014 Conference
Using JMeter in CloudTest for Continuous Testing
Performance testing and reporting with JMeter
Introduction - #ATAGTR2016
Continuous Performance Testing with Taurus and Jmeter
Continuous Integration (Jenkins/Hudson)
Masters of SlideShare
What Makes Great Infographics
STOP! VIEW THIS! 10-Step Checklist When Uploading to Slideshare
10 Ways to Win at SlideShare SEO & Presentation Optimization
How To Get More From SlideShare - Super-Simple Tips For Content Marketing
You Suck At PowerPoint!
How to Make Awesome SlideShares: Tips & Tricks
Ad

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

PPTX
Mobile Automation with Appium
PDF
5 Steps to Jump Start Your Test Automation
PPTX
4&5.pptx SOFTWARE TESTING UNIT-4 AND UNIT-5
PDF
Automated Testing Using Selenium
PPTX
Test automation lesson
PDF
Top 5 automation testing tools to gear up website development
DOC
Ashish Baraiya
PPTX
PPTX
intership ppt.pptxgggggggggggggggggggggggggggggggg
PDF
Cloud for Agile Testing - Burak Koyuncu
PDF
GUI, Performance, Load and API testing with Test Studio
PPTX
AUTOMATION FRAMEWORK USING SELENIUM & TESTNG ALONG WITH MAVEN
PPTX
Neev Independent Testing Services
PDF
Top Best Practices for Successful Mobile Test Automation
PPTX
Build your QA Pipeline using Serenity , Selenium WebDriver , Rest Assured and...
PDF
Building And Executing Test Cases with Appium and Various Test Frameworks.pdf
DOC
Aravind Java Selenium Automation- US
PPTX
Continuous Integration Testing for SAP
PPTX
Automation Testing with Test Complete
PPTX
When & How to Successfully use Test Automation for Mobile Applications
Mobile Automation with Appium
5 Steps to Jump Start Your Test Automation
4&5.pptx SOFTWARE TESTING UNIT-4 AND UNIT-5
Automated Testing Using Selenium
Test automation lesson
Top 5 automation testing tools to gear up website development
Ashish Baraiya
intership ppt.pptxgggggggggggggggggggggggggggggggg
Cloud for Agile Testing - Burak Koyuncu
GUI, Performance, Load and API testing with Test Studio
AUTOMATION FRAMEWORK USING SELENIUM & TESTNG ALONG WITH MAVEN
Neev Independent Testing Services
Top Best Practices for Successful Mobile Test Automation
Build your QA Pipeline using Serenity , Selenium WebDriver , Rest Assured and...
Building And Executing Test Cases with Appium and Various Test Frameworks.pdf
Aravind Java Selenium Automation- US
Continuous Integration Testing for SAP
Automation Testing with Test Complete
When & How to Successfully use Test Automation for Mobile Applications

More from Clever Moe (20)

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

Recently uploaded (20)

PDF
A comparative analysis of optical character recognition models for extracting...
PDF
MIND Revenue Release Quarter 2 2025 Press Release
PPTX
cloud_computing_Infrastucture_as_cloud_p
PDF
Spectral efficient network and resource selection model in 5G networks
PDF
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
PDF
Heart disease approach using modified random forest and particle swarm optimi...
PPT
Teaching material agriculture food technology
PPTX
Tartificialntelligence_presentation.pptx
PDF
Mushroom cultivation and it's methods.pdf
PDF
Empathic Computing: Creating Shared Understanding
PPTX
SOPHOS-XG Firewall Administrator PPT.pptx
PDF
Diabetes mellitus diagnosis method based random forest with bat algorithm
PDF
Unlocking AI with Model Context Protocol (MCP)
PPTX
Machine Learning_overview_presentation.pptx
PDF
Reach Out and Touch Someone: Haptics and Empathic Computing
PDF
A comparative study of natural language inference in Swahili using monolingua...
PDF
Mobile App Security Testing_ A Comprehensive Guide.pdf
PPTX
Programs and apps: productivity, graphics, security and other tools
PDF
Video forgery: An extensive analysis of inter-and intra-frame manipulation al...
PDF
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
A comparative analysis of optical character recognition models for extracting...
MIND Revenue Release Quarter 2 2025 Press Release
cloud_computing_Infrastucture_as_cloud_p
Spectral efficient network and resource selection model in 5G networks
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
Heart disease approach using modified random forest and particle swarm optimi...
Teaching material agriculture food technology
Tartificialntelligence_presentation.pptx
Mushroom cultivation and it's methods.pdf
Empathic Computing: Creating Shared Understanding
SOPHOS-XG Firewall Administrator PPT.pptx
Diabetes mellitus diagnosis method based random forest with bat algorithm
Unlocking AI with Model Context Protocol (MCP)
Machine Learning_overview_presentation.pptx
Reach Out and Touch Someone: Haptics and Empathic Computing
A comparative study of natural language inference in Swahili using monolingua...
Mobile App Security Testing_ A Comprehensive Guide.pdf
Programs and apps: productivity, graphics, security and other tools
Video forgery: An extensive analysis of inter-and intra-frame manipulation al...
Profit Center Accounting in SAP S/4HANA, S4F28 Col11

Use Jenkins For Continuous Load Testing And Mobile Test Automation

  • 1. Use Jenkins For Continuous Load Testing And Mobile Test Automation 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 ! [email protected]
  • 2. Use Jenkins For Continuous Load Testing And Mobile Test Automation October 1, 2014 Frank Cohen, [email protected], (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
  • 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. Ajax Record and Playback
  • 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) 90% •Run Test in Real Devices 10% •Run Test with Real People 5% •Balance The Results •Business Risk Analysis = Ready To Launch 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 [email protected], 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 [email protected] And We Will Show You