How does Java 8 exert hidden power on Test Automation?

Post on 03-Mar-2017

235 views 0 download

Transcript of How does Java 8 exert hidden power on Test Automation?

HOW DOES JAVA 8EXERT HIDDEN POWERON TEST AUTOMATION?

WHO AM I?

QAA Geek and Java fan with over seven years experiencein Software Testing. AT.INFO

contributor and editor. Consultant, mentor and

speaker.

• Position: Lead QAA Engineer• Consultant and mentor: http://sdclabs.com• Editor and moderator: http://automated-testing.info• Certified ISTQB engineer

Speaker’s info

• GitHub: sskorol• Blog posts: http://qa-automation-notes.blogspot.com

https://sskorol.github.io

Contributions

• Email: serhii.s.korol@gmail.com• LinkedIn: https://ua.linkedin.com/in/serhiikorol

Contacts ’’Sergey KorolWaverley Software

‘‘

2

3

...and I should care,why?

3

4

...and i should care,why?

4

5

...and i should care,why?

5

TALK’S SCOPE • switch vs if / else vs … ?• Matchers

Pattern matching

• Code duplication cleanup• Explicit waits simplification

Lambda expressions / functional interfaces

• Plain old loops redundancy• Elements transformation and filtering• Collection reduction• Tuples in DataProviders

Streams

6

7

Pattern matching

8

9

LAMBDA EXPRESSIONS /FUNCTIONAL INTERFACES

10

11

12

...and i should care,why?

STREAMS

LOOPSELIMINATION

12

13

Everybody in this countryshould learn to programa computer…

 …because it teaches you how to think

 Steve Jobs14

FIND OUT MORE

LiteratureAuthor

15