droidcon NYC 2017 - Advanced HTTP Mocking with WireMock
Sam Edwards, Capital One Create HTTP mocks for your Android app with WireMock for deterministic testing and development. Don’t have mocks yet? No worries. You can record live traffic with WireMock that can be saved and played back. Testing apps that rely on APIs can be painful, flaky and complicated because more than likely, the APIs you rely on are out of your control. It’s time to take control back. WireMock can run as an embedded HTTP server on an Android device, but also can be run on your desktop to help with common development and testing tasks. During this talk, you'll learn how to record and playback network traffic, programmatically setup mocks, simulate error scenarios & latency, verify HTTP calls with mockito-like syntax, and simulate stateful behavior using "scenario" mappings (same endpoint, different responses). You'll also learn best practices and lessons learned from our use of WireMock with the Capital One Wallet app. Our testing and development teams have used it for the last 2 years, and I like to call it the "Swiss Army Knife" of HTTP. It has played a key part of creating reliable instrumentation tests and a "mock" (offline) flavor of our app. https://goo.gl/SyGmVB droidcon NYC - http://droidcon.nyc ********************************************* droidcon NYC has become an event where the American and International Android development and design community come together to share what’s new and what they’ve been working on. Our goal is to serve the community and move the Android platform forward. Organized by droidcon - https://www.droidcon.com/ ********************************************* droidcon is the largest global network of developer conferences which bring together the industry's foremost experts dedicated to advancing the Android platform. droidcon engages a global network of over 25,000 developers attending our events in 26 countries. Content by touchlab - http://touchlab.co ********************************************* droidcon NYC content organized by Kevin Galligan, President of touchlab Android and iOS Mobile App Development / Doppl Open Source Code Sharing Platform / Mobile Innovation Advisory / UIUX Design. Our goal is to keep growing our company by serving the community. Stop by our next meetup: https://www.meetup.com/nyandroiddevelopers/ Big thanks to our video sponsors: American Express - https://jobs.americanexpress.com/tech mParticle - https://www.mparticle.com/