Mobile App T esting with Xamarin T est Cloud Martin imeek - - PowerPoint PPT Presentation

mobile app t esting with xamarin t est cloud
SMART_READER_LITE
LIVE PREVIEW

Mobile App T esting with Xamarin T est Cloud Martin imeek - - PowerPoint PPT Presentation

Mobile App T esting with Xamarin T est Cloud Martin imeek martin.simecek@microsoft.com @deeedx Mobile Quality Challenges Device Fragmentation App Complexity Fast Release Cycles Short Sessions High Mobile User


slide-1
SLIDE 1

Mobile App T esting with Xamarin T est Cloud

Martin Šimeček martin.simecek@microsoft.com @deeedx

slide-2
SLIDE 2

Mobile Quality Challenges

  • Device Fragmentation
  • App Complexity
  • Fast Release Cycles
  • Short Sessions
  • High Mobile User Expectations
slide-3
SLIDE 3

Results! The Differences in Time to Value

19K unique

Android devices available on the market

20 iPhone and

iOS configuration combinations on the market In the United States, a business must test on

134 different devices 80% of devices in use

to cover

slide-4
SLIDE 4

The Manual Approach

  • Limited device reach, based on user availability
  • Slower and less accurate
  • Delayed feedback collection
  • Inconsistent
slide-5
SLIDE 5

The Device Remoting Approach

  • Prone to human error
  • Limited test complexity
  • No simultaneous testing slows

time to identify issues

slide-6
SLIDE 6

The Simulator Approach

  • Limited real world applicability
  • Virtual, not real devices
  • Limited accuracy
slide-7
SLIDE 7

Xamarin T est Cloud Approach

AUTOMATED WITH MANAGED DEVICES

  • Consistent, scalable and accurate

tests

  • Simultaneous testing across

device platforms, operating systems and form factors

  • Real usage scenarios, including

complex gestures

  • Secure with device wipe after

each test run

slide-8
SLIDE 8

Xamarin Test Cloud

slide-9
SLIDE 9

Xamarin T est Cloud

2,000+ devices

Automate your app testing and run them on over 2,000 different real devices. T est everything users do, as well as any performance problems with step-by- step memory and performance tracking.

Real devices, real quality

  • Ensure higher quality by testing on real devices
  • Automate app testing on over 2,000 real devices
  • Use C#, Ruby, or Cucumber to build automated

tests

  • Integrates with any continuous integration system
slide-10
SLIDE 10

Tap Scroll Swipe Pinch Multi finger Text Entry Rotation GPS

Examples of User Interactions

slide-11
SLIDE 11

Visually compare test results against hundreds of devices at a time

  • Zoom in and full screen resolution of all

screens

  • Video playback coming in 2015

Review each step of a test case and compare visual results on all devices

slide-12
SLIDE 12
slide-13
SLIDE 13

Access precise device specifications, full-size screenshots, and the native device log Understand CPU and memory usage during every step

slide-14
SLIDE 14
slide-15
SLIDE 15
slide-16
SLIDE 16

Object-level user interface testing Tests adapt as user interface changes

Tests Adapt to UI Changes

slide-17
SLIDE 17

March 2015

slide-18
SLIDE 18

How does it work?

slide-19
SLIDE 19

Xamarin T est Cloud

  • 1. Create a Xamarin T

est Cloud account

  • 2. Prepare tests
  • 3. Deploy to XTC
  • 4. Integrate with your release pipeline
slide-20
SLIDE 20
  • 1. Create Xamarin T

est Cloud Account

  • free trial

– 30 days – max. 3 concurrent devices – max. 3 testing hours per day

slide-21
SLIDE 21

DEMO Registering XTC account

slide-22
SLIDE 22
  • 2. Prepare tests
  • UI T

ests in a separate project

  • using NUnit
  • can be hand-written
  • can be recorded using T

est Recorder

  • iOS tests cannot be run on Windows
slide-23
SLIDE 23

REPL

  • Read-Eval-Print-Loop
  • useful when defining tests
  • app.Repl()

– stops running test and opens a console window

  • tree

– lists the current view‘s structure

  • copy

– copies all commands to clipboard

slide-24
SLIDE 24

Commands (Methods)

  • app.Flash()

– „blinks“ an element – app.Flash(c => c.Class(„EditT ext“))

  • app.EnterText(c => c.Marked(„creditCardNumberText“), „12345“)

– app.ClearT ext(...)

  • app.Tap(c => c.Marked(„validateButton“))
  • app.WaitForElement(c => c.Marked(„label“).Text(„ABC“))

– 1 minute in test cloud – 15 seconds locally – can be changed with a parameter

slide-25
SLIDE 25
slide-26
SLIDE 26
slide-27
SLIDE 27
slide-28
SLIDE 28
slide-29
SLIDE 29

DEMO Working with Xamarin REPL

slide-30
SLIDE 30

T est Recorder

  • available as a preview extension for Visual Studio
  • https://developer.xamarin.com/guides/testcloud/testrecorder

/visual-studio/

slide-31
SLIDE 31
slide-32
SLIDE 32
slide-33
SLIDE 33
slide-34
SLIDE 34
slide-35
SLIDE 35
  • 3. Deploy to Xamarin T

est Cloud

  • via web portal
  • from Visual Studio / Xamarin

Studio

  • from command line
slide-36
SLIDE 36

DEMO Deploy to XTC from VS

slide-37
SLIDE 37
  • 4. Integrate with your release pipeline
  • Visual Studio T

eam Services

  • Xamarin T

est Cloud as one of the build steps

slide-38
SLIDE 38

DEMO VSTS & Xamarin T est Cloud

slide-39
SLIDE 39

Mobile App T esting with Xamarin T est Cloud

Martin Šimeček martin.simecek@microsoft.com @deeedx