Presentation is loading. Please wait.

Presentation is loading. Please wait.

Leveraging complementing technologies ...

Similar presentations


Presentation on theme: "Leveraging complementing technologies ..."— Presentation transcript:

1 Leveraging complementing technologies ...
Python and WebDriver Leveraging complementing technologies ...

2 Prerequisites WebDriver basics Basics of programming Example code:
Python 2.7 Unittest

3 Python = Simplicity! Minimise Ceremony Ramp up testers quickly
What we need to do before we can do what we want to do Ramp up testers quickly Intuitive syntax (mostly!)

4 Use the power of the shell
Useful to quickly build tests Debug failing tests validate locators

5 Triple A pattern Arrange (& Destroy afterwards) Act Assert

6 Locating Elements BY Selectors Art and Science id name
CSS = I use these where possible even if ‘id’ present for consistency Art and Science

7 Page Objects Refactor tests to reduce maintenance Keep ‘em DRY
Beware copy / paste Locators designed as tuples Locator type Locator value Need to explode tuple to consume it

8 Decorators Functional Programming Functions that
Accept functions Return functions Function Inception Commonly used for logging

9 Descriptors Bind behaviour
Get stuff for free every time you access a variable Complex topic Very powerful Leads to very succinct & DRY code

10 Handling Failure Screenshots Video
grab in the ‘teardown’ only if test failed Video Careful Now! Rerun with a flag on cli to capture video

11 Where Next? Functional Programming Sharpen the saw Docker
Docker grid test servers

12 Resources Read-Eval-Print-Loop

13 Contact Details @colmharrington github.com/windwaker

14 Q & A


Download ppt "Leveraging complementing technologies ..."

Similar presentations


Ads by Google