Selenium Camp 2016 - Effective UI tests scaling on Java
-
Upload
sergey-korol -
Category
Education
-
view
1.134 -
download
4
Transcript of Selenium Camp 2016 - Effective UI tests scaling on Java
Effective UI tests scaling on JavaPitfalls and solutions
Speaker’s info: Lead Test Engineer at GlobalLogic Consultant and mentor: http://lessons2.ru/consulting Editor and moderator: http://automated-testing.info Certified ISTQB engineer
Contacts and contributions: Email: [email protected] GitHub: sskorol Blog: http://qa-automation-notes.blogspot.com
Serhii Korol
Static context: friend or enemy?
Custom wheels
Demo time
Threads’ race condition
Accurate nodes’ identification
Accurate nodes’ identification
Demo time
Variety of storages
Annotations are not extendable. Overhead with plain jdbc driver. How to manage sessions across threads? How to access multiple data sources?
Lack of functionality
A wheel has already been invented. Don’t be afraid of annotations. Java 8 is your weapon. Avoid spamming classes with multiple data
providers.
Make me generic
Demo time
Object pool
Libraries: Vibur: http://vibur.org/vibur-object-pool AspectJ: https://eclipse.org/aspectj
Object pool – usage scenario
Still struggling with unstable environment?
Infrastructure
Environment watcher - demo
Infrastructure: screenshots issue
Thread-safe containers save your nerve cells.
CapabilityMatcher is the Lord's Grid’s Eye. 5-lines generic DataProvider protects against
N more specific implementations. Object pool makes test scenarios more
realistic. Environment watcher could be your best
housekeeper.
Let’s keep in mind that…
[email protected]://qa-automation-notes.blogspot.com
http://lessons2.ru/consulting