Slide 1

Slide 1 text

Four Crucial Tips for Web Automation

Slide 2

Slide 2 text

Jim Holmes jim@falafel.com @AJimholmes FrazzledDad.com

Slide 3

Slide 3 text

Slides: frazzleddad.com ! Samples: github.com/JimHolmes/SE13

Slide 4

Slide 4 text

No content

Slide 5

Slide 5 text

The Four Tips

Slide 6

Slide 6 text

0) Learn What To Automate

Slide 7

Slide 7 text

(And what NOT to)

Slide 8

Slide 8 text

1) Learn Your Locators

Slide 9

Slide 9 text

(And When to Avoid Them)

Slide 10

Slide 10 text

2) Learn How Async Works in Your System

Slide 11

Slide 11 text

3) Learn to Handle Data and Configuration Effectively

Slide 12

Slide 12 text

Automation Best Practices

Slide 13

Slide 13 text

There’s only one:

Slide 14

Slide 14 text

There are no best practices!

Slide 15

Slide 15 text

Take today’s concepts

Slide 16

Slide 16 text

Learn how to apply in ! YOUR SYSTEMS!

Slide 17

Slide 17 text

Today’s Demos: We’ll test ! The Internet!

Slide 18

Slide 18 text

the-internet.herokuapp.com ! github.com/tourdedave/the-internet

Slide 19

Slide 19 text

0) What to Automate

Slide 20

Slide 20 text

What NOT to

Slide 21

Slide 21 text

1) Locators

Slide 22

Slide 22 text

What’s a DOM?

Slide 23

Slide 23 text

Locator Types IDs CSS Xpath Other Attribs

Slide 24

Slide 24 text

When to AVOID Locators

Slide 25

Slide 25 text

2) Handling Async Situations

Slide 26

Slide 26 text

Page load lifecycle

Slide 27

Slide 27 text

Along came AJAX

Slide 28

Slide 28 text

And Jquery and backbone and…..

Slide 29

Slide 29 text

Explicit waits

Slide 30

Slide 30 text

3) Use backing APIs

Slide 31

Slide 31 text

Simplify Your Tests via Setup & Teardown

Slide 32

Slide 32 text

Test Oracles

Slide 33

Slide 33 text

System Configuration

Slide 34

Slide 34 text

Learn the concepts

Slide 35

Slide 35 text

Learn how to apply in ! YOUR SYSTEMS

Slide 36

Slide 36 text

Jim Holmes jim@falafel.com @AJimholmes FrazzledDad.com