Four Crucial Tips for Automating Your Web Tests

29
Four Crucial Tips for Web Automation

description

View the webinar here: http://www.eurostarconferences.com/community/member/webinar-archive/webinar-95-four-crucial-tips-for-automating-your-web-tests-with-jim-holmes- Functional testing your web applications can be extraordinarily frustrating. Intermittent failures, lots of rework and tinkering, and too little time spent on creating new value for your customers. In this session Jim Holmes will help you understand a few crucial tips to help you get a successful web automation test suite in place: test the right things, understand good locators, handle asynchronous operations properly, and create a backing infrastructure to help you write better tests. We'll use WebDriver for examples and demos in C#, but we'll discuss how these solutions are applicable to other technologies as well. Take away proven methods for ensuring your functional web tests are more robust, accurate, and maintainable.

Transcript of Four Crucial Tips for Automating Your Web Tests

Page 1: Four Crucial Tips for Automating Your Web Tests

Four Crucial Tips for Web Automation

Page 3: Four Crucial Tips for Automating Your Web Tests

Slides: frazzleddad.com !

Samples: github.com/JimHolmes/SE13

Page 4: Four Crucial Tips for Automating Your Web Tests
Page 5: Four Crucial Tips for Automating Your Web Tests

The Four Tips

Page 6: Four Crucial Tips for Automating Your Web Tests

0) Learn Your Locators

Page 7: Four Crucial Tips for Automating Your Web Tests

1) Learn When to Avoid Locators

Page 8: Four Crucial Tips for Automating Your Web Tests

2) Learn How Async Works in Your System

Page 9: Four Crucial Tips for Automating Your Web Tests

3) Learn to Handle Data and Configuration Effectively

Page 10: Four Crucial Tips for Automating Your Web Tests

Automation Best Practices

Page 11: Four Crucial Tips for Automating Your Web Tests

There’s only one:

Page 12: Four Crucial Tips for Automating Your Web Tests

There are no best practices!

Page 13: Four Crucial Tips for Automating Your Web Tests

Take today’s concepts

Page 14: Four Crucial Tips for Automating Your Web Tests

Learn how to apply in !

YOUR SYSTEMS!

Page 15: Four Crucial Tips for Automating Your Web Tests

0) Locators

Page 16: Four Crucial Tips for Automating Your Web Tests

What’s a DOM?

Page 17: Four Crucial Tips for Automating Your Web Tests

Locator Types IDs CSS Xpath Other Attribs

Page 18: Four Crucial Tips for Automating Your Web Tests

1) Know When to AVOID Locators

Page 19: Four Crucial Tips for Automating Your Web Tests

2) Handling Async Situations

Page 20: Four Crucial Tips for Automating Your Web Tests

Page load lifecycle

Page 21: Four Crucial Tips for Automating Your Web Tests

Along came AJAX

Page 22: Four Crucial Tips for Automating Your Web Tests

And Jquery and backbone and…..

Page 23: Four Crucial Tips for Automating Your Web Tests

Explicit waits

Page 24: Four Crucial Tips for Automating Your Web Tests

Simplify Your Tests via Setup & Teardown

Page 25: Four Crucial Tips for Automating Your Web Tests

Test Oracles

Page 26: Four Crucial Tips for Automating Your Web Tests

System Configuration

Page 27: Four Crucial Tips for Automating Your Web Tests

Learn the concepts

Page 28: Four Crucial Tips for Automating Your Web Tests

Learn how to apply in !

YOUR SYSTEMS