how to combine back-end & front-end testing with blazemeter & sauce labs

18
BlazeMeter.com | SauceLabs.com Back-End & Front-End Testing How To Combine Back-End & Front-End Testing With BlazeMeter & Sauce Labs Ophir Prusak VP Customer Success BlazeMeter Michael Sage Principal Technology Evangelist Sauce Labs

Upload: sauce-labs

Post on 21-May-2015

758 views

Category:

Technology


3 download

DESCRIPTION

Sauce Labs and BlazeMeter teamed up for an awesome webinar, giving step-by-step instructions on how to get real-world results from your front end while applying load to the backend.

TRANSCRIPT

Page 1: How To Combine Back-End  & Front-End Testing with BlazeMeter & Sauce Labs

BlazeMeter.com | SauceLabs.com

Back-End & Front-End Testing

How To Combine Back-End & Front-End Testing

With BlazeMeter & Sauce Labs Ophir Prusak VP Customer Success BlazeMeter

Michael Sage Principal Technology Evangelist Sauce Labs

Page 2: How To Combine Back-End  & Front-End Testing with BlazeMeter & Sauce Labs

BlazeMeter.com | SauceLabs.com

Back-End & Front-End Testing

Agenda !

Back End vs. Front End Testing Front End Test Live Demo (Sauce Labs & Selenium) Understanding How JMeter Works Back End Test Live Demo (BlazeMeter & JMeter) Using Continuous Integration & APM Plugins The 3 Things you Need to Know about Performance Testing Q&A

Page 3: How To Combine Back-End  & Front-End Testing with BlazeMeter & Sauce Labs

BlazeMeter.com | SauceLabs.com

Back-End & Front-End Testing

What is Back-End vs Front-End? !

Back-End Components - Network, Load Balancer, Web Server, Database, API, “Servers” !

Front-End Examples - Web Browser, Mobile App, Network Enabled Software or Devices

Page 4: How To Combine Back-End  & Front-End Testing with BlazeMeter & Sauce Labs

BlazeMeter.com | SauceLabs.com

Back-End & Front-End Testing

!

Front-End vs Back-End Testing - Browser Example !

User “Server”InternetBrowserUser Interaction

Enter URLClick on LinkEnter Form DataSubmit FormButtonsForm FieldsJavaScript

HTTP Get / PostResponse Codes CookiesRequest HeadersUser Agents URL Encoding Form Data

Page 5: How To Combine Back-End  & Front-End Testing with BlazeMeter & Sauce Labs

BlazeMeter.com | SauceLabs.com

Back-End & Front-End Testing

!

Front-End vs Back-End Testing: Browser Example !

User “Server”InternetBrowserUser Interaction

Selenium JMeter

Page 6: How To Combine Back-End  & Front-End Testing with BlazeMeter & Sauce Labs

BlazeMeter.com | SauceLabs.com

Back-End & Front-End Testing

Why do we test? To make sure everyone always has a good user experience !

Front-End - Did it work? What did it look like? And on every Device/OS/Browser? !

Back-End - Did it work? What were the Response Times? And with 10,000 users?

Page 7: How To Combine Back-End  & Front-End Testing with BlazeMeter & Sauce Labs

BlazeMeter.com | SauceLabs.com

Back-End & Front-End Testing

Front End Test Example Sauce Labs & Selenium

Page 8: How To Combine Back-End  & Front-End Testing with BlazeMeter & Sauce Labs

BlazeMeter.com | SauceLabs.com

Back-End & Front-End Testing

What is Performance Testing? !

Business Need Ensure a good user experience (fast & error free) under any user load !

How - Create the load (virtual users on your site) - Measure the user experience (response times, error rates, etc)

Page 9: How To Combine Back-End  & Front-End Testing with BlazeMeter & Sauce Labs

BlazeMeter.com | SauceLabs.com

Back-End & Front-End Testing

Selenium vs JMeter !

How does a browser work? - Go to URL - Server Responds (here is your HTML, images, etc) - Browser Parses response and Executes JS - Enter Data in Forms and/or Click on Buttons Repeat

Page 10: How To Combine Back-End  & Front-End Testing with BlazeMeter & Sauce Labs

BlazeMeter.com | SauceLabs.com

Back-End & Front-End Testing

Selenium vs JMeter !

How does JMeter work? - JMeter sends a request (HTTP Request) - Server responds (here is your HTML, images, etc) - JMeter parses response (optional) and executes JS Repeat

Page 11: How To Combine Back-End  & Front-End Testing with BlazeMeter & Sauce Labs

BlazeMeter.com | SauceLabs.com

Back-End & Front-End Testing

Example Results !Can my site handle 1,000 concurrent users?

Page 12: How To Combine Back-End  & Front-End Testing with BlazeMeter & Sauce Labs

BlazeMeter.com | SauceLabs.com

Back-End & Front-End Testing

JMeter Example !

RecordPlayback (Create Load) Reporting

Page 13: How To Combine Back-End  & Front-End Testing with BlazeMeter & Sauce Labs

BlazeMeter.com | SauceLabs.com

Back-End & Front-End Testing

Using Jenkins for Continuous Integration !

Page 14: How To Combine Back-End  & Front-End Testing with BlazeMeter & Sauce Labs

BlazeMeter.com | SauceLabs.com

Back-End & Front-End Testing

Using New Relic for Application Performance Monitoring !

!

!

Server KPIs !

Page 15: How To Combine Back-End  & Front-End Testing with BlazeMeter & Sauce Labs

BlazeMeter.com | SauceLabs.com

Back-End & Front-End Testing

Using New Relic for Application Performance Monitoring !

!

!

JMeter KPIs !

Page 16: How To Combine Back-End  & Front-End Testing with BlazeMeter & Sauce Labs

BlazeMeter.com | SauceLabs.com

Back-End & Front-End Testing

!

Three Things You Need To Know About Performance Testing

!

1. Find Your Bending and Breaking Points 2. Test in Production 3. Test Frontend AND Backend

Page 17: How To Combine Back-End  & Front-End Testing with BlazeMeter & Sauce Labs

BlazeMeter.com | SauceLabs.com

Back-End & Front-End Testing

Come visit us atFutureStack 2014 Oct 8 & 9 in San Francisco

Page 18: How To Combine Back-End  & Front-End Testing with BlazeMeter & Sauce Labs

BlazeMeter.com | SauceLabs.com

Back-End & Front-End Testing

Q&A !

Coupon Codes BMSL14 10% Off any BlazeMeter Subscription !

try_sauce2 Months free of Sauce Labs Individual plan ($138 value)